Thank you for sharing.
Additional note:
For H264 encoding, seems (at least with R28.2-DP) that you have to set explicitly profile to baseline. Check this.
May be you also know how to get .h264 file at host pc from /dev/video0 with gst?
at jetson I am using
gst-launch-1.0 nvcamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)30/1' ! omxh264enc ! 'video/x-h264,stream-format=(string)byte-stream' ! filesink location="test.h264" -e
but how do I run that at ubuntu host pc?
I am sorting out recording zed camera yuy2 to .h264 file.
Hi Andrey,
I cannot check now, but something like this might work:
<s>gst-launch-1.0 -e v4l2src device=/dev/video1 ! 'video/x-raw,format=YUY2' ! x264enc ! qtmux ! filesink location=test.mp4</s>
[EDIT: x264enc doesn’t accept YUY2 as input, you need to convert:
gst-launch-1.0 -e v4l2src device=/dev/video1 ! 'video/x-raw,format=YUY2' ! <b>videoconvert</b> ! x264enc ! qtmux ! filesink location=test.mp4
]
Does this code still work at your side?
Though it is TX2 code and I am trying it at next generation device. That could be the cause.