Encode input 3840×2160 4:2:0 8-bit (NV12) YUV file to H.264.
gst-launch-1.0 filesrc location="input-file.yuv" ! rawvideoparse format=nv12 width=3840 height=2160 framerate=30/1 ! omxh264enc ! filesink location="output.h264"
Encoding 3840×2160 4:2:2 8-bit (NV16) YUV file to H.264.
gst-launch-1.0 filesrc location="input-file.yuv" ! rawvideoparse format=nv16 width=3840 height=2160 framerate=30/1 ! omxh264enc ! filesink location="output.h264"
Encoding 3840×2160 4:2:0 10-bit (NV12_10LE32) YUV file to H.264.
gst-launch-1.0 filesrc location="input-file.yuv" ! rawvideoparse format=nv12-10le32 width=3840 height=2160 framerate=30/1 ! omxh264enc ! filesink location="output.h264"
Encoding 3840×2160 4:2:2 10-bit (NV16_10LE32) YUV file to H.264.
gst-launch-1.0 filesrc location="input-file.yuv" ! rawvideoparse format=nv16-10le32 width=3840 height=2160 framerate=30/1 ! omxh264enc ! filesink location="output.h264"