Jetpack5.1.1 gstreamer decode H264 error

Hi,
my environment is Jetson Xavier NX ubuntu20.04+jetpack5.1.1,Decoding H264 video stream with gstreamer, error reported. why, may I ask how to solve this?

gst-launch-1.0 filesrc location=H264.mp4 ! h264parse ! nvv4l2decoder enable-frame-type-reporting=1 ! nv3dsink -e
Setting pipeline to PAUSED …
Opening in BLOCKING MODE
Pipeline is PREROLLING …
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
NvMMLiteNVMEDIADecSetAttribute:: Error status reporting set to 1
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: No valid frames decoded before end of stream
Additional debug info:
gstvideodecoder.c(1140): gst_video_decoder_sink_event_default (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
no valid frames found
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to NULL …
Freeing pipeline …

gst-launch-1.0 filesrc location=H264.mp4 ! qtdemux ! queue ! h264parse ! nvv4l2decoder ! nvvidconv ! ‘video/x-raw, format=(string)UYVY’ ! videoconvert ! xvimagesink -e
Setting pipeline to PAUSED …
Opening in BLOCKING MODE
Pipeline is PREROLLING …
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: This file is invalid and cannot be played.
Additional debug info:
qtdemux.c(775): gst_qtdemux_pull_atom (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
atom has bogus size 14265796603424767651
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to NULL …
Freeing pipeline …

Hi,
It looks like the video file is invalid. You may attach the file so that we can check it.


I don’t think so, because this video can be decoded using gstreamer on Ubuntu 18.04 Jetpack 4.6

Hi,
We don’t see any video file being attached. If you need further help, please attach the file.

[UPDATE] We have checked the file and it is invalid. It also cannot be played through VLC player on host PC.