00_video_decode example not working with any video tested

I have tried the 00_video_decode example with 2 h264 videos and several h265 videos, none of them display anything and error with a variety of errors.

Is there any .mp4 files or videos known to work with this example that I can test with?

Example error from .mp4 file:

./video_decode H264 /home/nvidia/test.mp4

Set governor to performance before enabling profiler
Creating decoder in blocking mode
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
Setting frame input mode to 1
Starting decoder capture loop thread
FMO streams not supported for T210 onwards
Input file read complete
[ERROR] (NvV4l2Element.cpp:114) Error while DQing event: Invalid argument
Error in dequeueing decoder event
Exiting decoder capture loop thread
[ERROR] (NvV4l2ElementPlane.cpp:178) Output Plane:Error while DQing buffer: Broken pipe
Error DQing buffer at output plane
Decoder is in error
App run failed

The above video tested can be downloaded here: simpsons_movie_1080p_hddvd_trailer.zip - Download The Simpsons Movie - High Definition (1080p, SA-HD-DVD Profile) Theatrical Trailer - dvdloc8.com

This video fails in video_decode but works fine if I play it with ffplay.

Is there any video I can use to test with video_decode? or, is there something I can do to get this video to work?

Thanks

Hi,
The input file has to be h264 or h265 stream. Please try

00_video_decode$ ./video_decode H264 ../../data/Video/sample_outdoor_car_1080p_10fps.h264

Thank you - are there any tools included in the nvidia SDKs that are recommended for parsing the h264/h265 stream out of a .mp4 file?

Hi,
You can run gstreamer command to extract h264 stream:

$ gst-launch-1.0 filesrc location=test.mp4 ! qtdemux ! h264parse ! video/x-h264,stream-format=byte-stream ! filesink location=out.h264

Thanks but the parsing needs to occur in-process, our work flow does not allow for pre-processing one file and storing the stream to a separate file - I need to simply open and play the original .mp4.

Hi,
We don’t have mp4 demuxer in jetson_multimedia_api sample. You would need to refer to 3rdparty code and do implementation.

Or you may try gstreamer commands, or ffmpeg.