Will GStreamer support H265 in YUY2 format

Whether Orin GStreamer version and subsequent versions support H265 compression in YUY2 format

Not sure I really understand your case.

No, gstreamer accelerated plugin nvv4l2h265enc doesn’t support YUY2 as input format:

gst-inspect-1.0 nvv4l2h265enc
...
Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      video/x-raw(memory:NVMM)
                  width: [ 1, 2147483647 ]
                 height: [ 1, 2147483647 ]
                 format: { (string)I420, (string)NV12, (string)P010_10LE, (string)NV24 }
              framerate: [ 0/1, 2147483647/1 ]
...

However you can easily convert with HW VIC from YUY2 into NV12, such as (here encoding and decoding YUY2->H265-YUY2):

gst-launch-1.0 videotestsrc ! video/x-raw,format=YUY2 ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' !  nvv4l2h265enc ! h265parse ! nvv4l2decoder ! 'video/x-raw(memory:NVMM),format=NV12' ! nvvidconv ! video/x-raw,format=YUY2 ! xvimagesink

# Or simply:
gst-launch-1.0 videotestsrc ! video/x-raw,format=YUY2 ! nvvidconv ! nvv4l2h265enc ! h265parse ! nvv4l2decoder ! nvvidconv ! video/x-raw,format=YUY2 ! xvimagesink
1 Like

Hi,
Hardware encoder does ot support YUV422(like YUY2, UYVY) formats. Please try Honey Patouceul’s suggestion to convert YUY2 to NV12/I420 and then feed to encoder.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.