Here is an example of getting video from a GK7205V300 board using only HiMPP low level API.
This example is configured and tested on an IP camera using IMX335 image sensor. If your module has another sensor, you need to adjust board configuration profile in the source code. This example includes profiles for most popular sensors.
Video output format is H.264 over UDP with NAL fragmentation like in RTP, although NAL prefixes are omitted. Keep in mind that this is not a valid RTP stream! To receive and display video stream extra coding is needed. The NAL defragmentation algorithm is described in vdec-sample.c.
Build script usage:
./build.sh venc-goke
./build.sh venc-hisi
./build.sh vdec
Upload the compiled binary onto your camera:
scp -O venc/venc [email protected]:/tmp
Stop majestic (pre-packaged streamer) and start venc:
killall majestic
/tmp/venc