How to stream hires camera at VGA resolution and simultaneously capture 4k30 to a file
There is a new module under development that allows you to pipe VGA (640x480) video from the hires camera at 30fps via MPA so that it can be streamed with voxl-streamer using RTSP while simultaneously saving 4k HD video at 30fps encoded as h265 into a file, preferably on the SD card on voxl. This module is now available in beta and will be officially released in upcoming releases of the voxl SDK for voxl, rb5-flight, and voxl 2. The beta package is available using
wget https://storage.googleapis.com/modalai_public/modal_packages/archive/voxl-hires-server_0.0.1.ipk. It is meant for use on voxl only and is compatible with voxl platform release 3-3-0-0.5.0-a. In order to use it with voxl-camera-server, reconfigure voxl-camera-server to not use the hires camera. For example, call
voxl-configure-camerasand choose option
1 Tracking + Stereoto allow voxl-camera-server to access the tracking and stereo cameras but not the hires camera. Then you can use voxl-hires-server for the hires camera. Use
voxl-hires-server -hto see the available options. More documentation will be available upon official release of this new package.
Hi @Eric-Katzfey thanks for this update. I tried installing this on a fresh 3-3-0-0.5.0-a installation but got the following error:
voxl:~$ opkg install voxl-hires-server_0.0.1.ipk Not selecting voxl-hires-server 0.0.1 due to incompatible architecture. Unknown package 'voxl-hires-server'. Collected errors: * opkg_install_cmd: Cannot install package voxl-hires-server. voxl:~$
Also is the streaming resolution configurable or is it locked to VGA?
@czarsimon Can you add the line
arch arm64 7to
/etc/opkg/arch.confand try installation again?
@czarsimon All parameters except for the filename are fixed right now. Feel free to modify the source and rebuild to change things. Future versions will allow more things to be configured.
That worked, I'll take a look at the source. Thanks!
There is now an updated version. It is available using
wget https://storage.googleapis.com/modalai_public/modal_packages/archive/voxl-hires-server_0.0.2.ipk. This newer version allows configuration of the camera number and the resolution of the video that gets sent to MPA. It also has a new feature to record JPEG snapshots every second. One should choose either video capture or snapshots but not both simultaneously as it will drop frames in the captured video.
Yet another version is now available with
wget https://storage.googleapis.com/modalai_public/modal_packages/archive/voxl-hires-server_0.0.3.ipk. This has a couple of new command line configuration options to select video capture / jpeg snapshot resolution and video capture frame rate.