Nvv4l2decoder connot decode H264 GDR file

gstreamer

  1. no yuv output
    gst-launch-1.0 filesrc location=gdr.m300.h264 ! h264parse ! nvv4l2decoder ! fakesink dump=true

  2. change nvv4l2decoder to avdec_h264, then yuv output
    gst-launch-1.0 filesrc location=gdr.m300.h264 ! h264parse ! avdec_h264 ! fakesink dump=true

jetson_multimedia_api/samples/00_video_decode

  1. cannot play
    ./video_decode H264 gdr.m300.h264

  2. can play
    ./video_decode H264 --report-input-metadata gdr.m300.h264

Hi,
Please attach the h264 stream so that we can do further investigation, and share the release version( $ head -1 /etc/nv_tegra_release ) you are using.

https://1drv.ms/u/s!AtcnNSjUJHaDlyv6737MjlGz0ry8?e=4TfCXg

R32 (release), REVISION: 4.2, GCID: 20074772, BOARD: t186ref, EABI: aarch64, DATE: Thu Apr 9 01:26:40 UTC 2020

Hi,
Since r32.4.2 is not production release, please upgrade to r32.4.3 and try again.

same result

R32 (release), REVISION: 4.3, GCID: 21589087, BOARD: t186ref, EABI: aarch64, DATE: Fri Jun 26 04:34:27 UTC 2020

workaround: ... ! nvv4l2decoder enable-frame-type-reporting=true ! ...

Hi,
The stream looks invalid. Try to decode it with ffmpeg and fails.

nvidia@nvidia-desktop:~$ ffmpeg -i gdr.m300.h264 a.yuv
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[h264 @ 0x55a975e5b0] Missing reference picture, default is 0
[h264 @ 0x55a975e5b0] decode_slice_header error
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1048 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1048 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a975d600] Stream #0: not enough frames to estimate rate; consider increasing probesize
[h264 @ 0x55a975d600] decoding for stream 0 failed
Input #0, h264, from 'gdr.m300.h264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1440, 30 fps, 30 tbr, 1200k tbn, 60 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
Press [q] to stop, [?] for help
[h264 @ 0x55a97aea60] Missing reference picture, default is 0
[h264 @ 0x55a97aea60] decode_slice_header error
[h264 @ 0x55a97aba50] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a9761740] SEI type 1 size 1040 truncated at 832
(...skip)
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kb[h264 @ 0x55a97aba50] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a9761740] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a9800ae0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a9d4b6f0] SEI type 1 size 1040 truncated at 832
(...skip)
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kb[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9d4b6f0] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
    Last message repeated 1 times
[h264 @ 0x55a97aea60] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a97aba50] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9761740] SEI type 1 size 1040 truncated at 832
(...skip)
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kb[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
(...skip)
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kb[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9d4b6f0] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
    Last message repeated 1 times
[h264 @ 0x55a97aea60] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a97aba50] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
(...skip)
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kb[NULL @ 0x55a975e5b0] SEI type 1 size 1048 truncated at 848
[h264 @ 0x55a97aba50] SEI type 1 size 1048 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
(...skip)
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kb[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9761740] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9800ae0] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
(...skip)
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kb[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9800ae0] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9d4b6f0] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a97aea60] SEI type 1 size 1040 truncated at 832
(...skip)
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kb[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9d4b6f0] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a97aea60] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
(...skip)
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a97aea60] SEI type 1 size 1040 truncated at 832
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kb[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a97aba50] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9761740] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9800ae0] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
    Last message repeated 1 times
[h264 @ 0x55a9d4b6f0] SEI type 1 size 1040 truncated at 832
[h264 @ 0x55a97aea60] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a97aba50] SEI type 1 size 1040 truncated at 832
[NULL @ 0x55a975e5b0] SEI type 1 size 1040 truncated at 848
[h264 @ 0x55a9761740] SEI type 1 size 1040 truncated at 832
Finishing stream 0:0 without any data written to it.
Output #0, rawvideo, to 'a.yuv':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1440, q=2-31, 995328 kb/s, 30 fps, 30 tbn, 30 tbc
    Metadata:
      encoder         : Lavc57.107.100 rawvideo
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
nvidia@nvidia-desktop:~$ ls -all a.yuv
-rw-rw-r-- 1 nvidia nvidia 0  九  17 15:07 a.yuv

Looks like it contains many invalid SEIs and no valid video frame(s).

Try again with this option: ffmpeg -flags2 showall -i gdr.m300.h264 a.yuv

Hi,
We can get valid YUV file by adding -flags2 showall. Could you give more information about the option? We don’t know much about it and more information shoud be helpful. Thanks.

Forget ffmpeg. Just use /usr/src/jetson_multimedia_api/samples/00_video_decode.

  1. cannot display: ./video_decode H264 gdr.m300.h264
  2. can display: ./video_decode H264 –report-input-metadata gdr.m300.h264
    • ctx.dec->enableMetadataReporting(); in video_decode_main.cpp
      • control.id = V4L2_CID_MPEG_VIDEO_ERROR_REPORTING; in NvVideoDecoder.cpp
      • CHECK_V4L2_RETURN(setExtControls(ctrls), in NvVideoDecoder.cpp
        • v4l2_ioctl(fd, VIDIOC_S_EXT_CTRLS, &ctl); in NvV4l2Element.cpp

Hi,
Since ffmpeg is reference software decoder. Would be great to understand more about how it works and then check the hardware decoder. Are you able to help on this?

I use this cmd to convert H264 to MP4: ffmpeg -flags2 showall -i gdr.m300.h264 output.mp4.
The option means “Show all frames before the first keyframe”.
My ffmpeg version is 4.3.1 for Windows or 3.4.8-0ubuntu0.2 for Ubuntu:18.04.

Hi,
Looks like reference frame number is not correct in the h264 stream. We will check further and update. The quick solution looks fine. You may use it for this sort of h264 stream.

Hi,
We have checked and confirmed it is obligatory to enable error report in decoding H264/H265 GDR streams. So it is expected that we have to set –report-input-metadata in running 00_video_decoder and set enable-frame-type-reporting=true to nvv4l2decoder.

1 Like