Hi everyone. I am trying to encode a video file, but I seem to get encoding issues. The output video comes out green!
To record the video I am using
gst-launch-1.0 v4l2src extra-controls=s,exposure=147434 device=/dev/video0 ! video/x-raw,format=BGRx ! filesink location = tester_2.mp4 -e
and then, to encode I use:
gst-launch-1.0 filesrc location=tester_2.mp4 ! videoparse ! videoconvert ! omxh265enc preset-level=0 temporal-tradeoff=0 ! qtmux ! filesink location = test.mp4 -e
I know it looks counter-intuitive to capture in BGRx, convert to YUV then convert back to be able to encode, but I am running some benchmarks, and need the intermediate step.
I am also able to capture video using v4l2-ctl with the following command:
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1456,height=1088,pixelformat=VYUY --set-ctrl bypass_mode=0 --stream-mmap --stream-count=10 --stream-to=test.raw
but I get the same issue when attempting to encode the video.
For reference, when encoding, the output looks like this:
Is my encoding pipeline wrong?