Sending Recorded Video Though Camera Server on VOXL2
-
Hi all!
I would like to send a prerecorded video though the camera server to better understand how camera server configurations effect video quality at different transmission distances. I would like to do this so I can have consistent video for each of my tests vs different video outputted by the camera for each test. Does anyone know how someone would configure the voxl 2 to be able to do this?
Thanks!
-
Hi all!
I would like to send a prerecorded video though the camera server to better understand how camera server configurations effect video quality at different transmission distances. I would like to do this so I can have consistent video for each of my tests vs different video outputted by the camera for each test. Does anyone know how someone would configure the voxl 2 to be able to do this?
Thanks!
@reber34 , perhaps this approach can work for you:
- record a video encoded at high bit rate (using
voxl-camera-serverandvoxl-record-video. Please note that the output ofvoxl-record-videowill not be in a standard container (such as mp4, etc), but you can fix it with ffpeg :ffmpeg -r 30 -i voxl-record-video.h264 -codec copy videofile.mp4 - re-encode the video offline with desired codecs / bit rates / resolutions
- install
gst-rtsp-launchwhich uses gstreamer to set up an RTSP stream https://github.com/sfalexrog/gst-rtsp-launch/- you will first need to figure out what gstreamer pipeline to use on voxl2 that will load your video and parse the h264/h265 frames (can use
null sinkfor testing) and then use that pipeline withgst-rtsp-launchwhich will take the encoded frames and serve them over rtsp stream.
- you will first need to figure out what gstreamer pipeline to use on voxl2 that will load your video and parse the h264/h265 frames (can use
- gstreamer may be more flexible for tuning the encoding parameters of h264/h265 (compared to
voxl-camera-server) and you can also use it in real time later (usingvoxl-streamer, which uses gstreamer under the hood)
Another alternative is to use
voxl-record-raw-imageto save raw YUVs coming fromvoxl-camera-serverand then usevoxl-replayandvoxl-streamer- the latter will accept YUVs from the MPA pipe and encode them using the bit rate that you want. Note that depending on the image resolution, YUV images will take a lot more space than encoded video, but maybe that is also OK since VOXL2 has lots of storage.Alex
- record a video encoded at high bit rate (using
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login