# Sending Recorded Video Though Camera Server on VOXL2

Source: https://forum.modalai.com/topic/3706/sending-recorded-video-though-camera-server-on-voxl2
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2024-08-07 17:29:56 UTC by reber34
Replies: 1 · Views: 668

## reber34 · 2024-08-07 17:29:56 UTC

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!

## Reply by Alex Kushleyev (ModalAI staff) · 2024-08-07 19:01:08 UTC

@reber34 , perhaps this approach can work for you:
- record a video encoded at high bit rate (using `voxl-camera-server` and `voxl-record-video` . Please note that the output of `voxl-record-video` will 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-launch` which 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 sink` for testing) and then use that pipeline with `gst-rtsp-launch` which will take the encoded frames and serve them over rtsp stream.
- 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 (using `voxl-streamer`, which uses gstreamer under the hood)

Another alternative is to use `voxl-record-raw-image` to save raw YUVs coming from `voxl-camera-server` and then use `voxl-replay` and `voxl-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
