Hello!
I’m using ROCK 5A with Radxa 4k camera, video preview looks great using the following gst-launch-1.0 command:
gst-launch-1.0 v4l2src device=/dev/video11 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink
The issue is when I’m trying to capture video and save it as .mp4 file - Video comes out glitchy and cut off, the command I used is:
gst-launch-1.0 v4l2src num-buffers=512 device=/dev/video11 io-mode=4 ! videoconvert ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/radxa/file.name.mp4
To me it looks like an encoding issue, I would love if someone can point me to the right direction regarding video encoding for v4l2 devices.