Skip to content

autovideodecoder: select the right video decoder and also the video parser if needed automatically.

elliot chen requested to merge elliot_chen/gstreamer:autovideodecoder into main
  1. There are various types video decoders such as v4l2 decoder(v4l2h265dec, v4l2h264dec, v4l2vp8dec, etc), software decoder (avdec_h264, avdec_mpeg4). And different platforms have different vpu and support different video formats. Currently, application need select the right decoder manually without uridecodebin or uridecodebin3.
  2. For some cases, application may need construct their own decoding pipeline. The autovideodecoder can select the right video decoder and also the video parser if needed by caps in order of rank from highest to lowest.
  3. For example, The VPU of one platform may support h265 while another one don't support. We may need change the pipeline accordingly. But we can use the below same pipeline. gst-launch-1.0 filesrc location=HEVC_3840x2160_3969Kbps_25fps_AACLC_48Khz_125Kbps_2ch.avi ! video/quicktime ! qtdemux! autovideodecoder ! queue ! videoconvert ! waylandsink
Edited by elliot chen

Merge request reports