Here is the command I use… it fails to run when hardware decoder is specified.
GST_DEBUG=3 gst-launch-1.0 filesrc location=CAMERA0_20250109_172501.mp4 ! decodebin ! h264parse ! queue ! v4l2h264dec ! videoconvert ! fakesink
Where can I upload the MP4 files ?
Log file
khadas@Khadas:~/video$ GST_DEBUG=3 gst-launch-1.0 filesrc location=CAMERA0_20250109_172501.mp4 ! decodebin ! h264parse ! queue ! v4l2h264dec ! videoconvert ! fakesink
Setting pipeline to PAUSED ...
0:00:00.053809254 2418 0x55923a7520 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete:<filesrc0> pad not activated yet
Pipeline is PREROLLING ...
0:00:00.068788685 2418 0x5592389f00 WARN qtdemux qtdemux.c:3066:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 1
(gst-launch-1.0:2418): GStreamer-CRITICAL **: 14:49:00.496: gst_value_collect_fraction: assertion 'collect_values[1].v_int != 0' failed
(gst-launch-1.0:2418): GStreamer-CRITICAL **: 14:49:00.497: passed '0' as denominator for `GstFraction'
0:00:00.092611786 2418 0x559238f700 WARN default gst/parse/grammar.y:540:gst_parse_no_more_pads:<decodebin0> warning: Delayed linking failed.
0:00:00.092655244 2418 0x559238f700 WARN default gst/parse/grammar.y:540:gst_parse_no_more_pads:<decodebin0> warning: failed delayed linking some pad of GstDecodeBin named decodebin0 to some pad of GstH264Parse named h264parse0
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Delayed linking failed.
Additional debug info:
gst/parse/grammar.y(540): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
failed delayed linking some pad of GstDecodeBin named decodebin0 to some pad of GstH264Parse named h264parse0
0:00:00.093181442 2418 0x559238f700 WARN v4l2videodec gstv4l2videodec.c:861:gst_v4l2_video_dec_decide_allocation:<v4l2mpeg4dec0> Duration invalid, not setting latency
0:00:00.099890777 2418 0x7f90011de0 WARN v4l2bufferpool gstv4l2bufferpool.c:1288:gst_v4l2_buffer_pool_dqbuf:<v4l2mpeg4dec0:pool0:src> Driver should never set v4l2_buffer.field to ANY
0:00:00.102063570 2418 0x5592389f00 WARN qtdemux qtdemux.c:6545:gst_qtdemux_loop:<qtdemux0> error: Internal data stream error.
0:00:00.102125277 2418 0x5592389f00 WARN qtdemux qtdemux.c:6545:gst_qtdemux_loop:<qtdemux0> error: streaming stopped, reason not-linked (-1)
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0: Internal data stream error.
Additional debug info:
../gst/isomp4/qtdemux.c(6545): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:
streaming stopped, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
khadas@Khadas:~/video$