[FFmpeg-trac] #8465(undetermined:new): avformat_find_stream_info does not fill MPEG2-TS/HEVC resolution with HEVC decoder disabled

FFmpeg trac at avcodec.org
Wed Jan 8 17:43:37 EET 2020


#8465: avformat_find_stream_info does not fill MPEG2-TS/HEVC resolution with HEVC
decoder disabled
-------------------------------------+-------------------------------------
             Reporter:  ddyndo       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  hevc         |               Blocked By:
  mpeg2ts mpegts metadata            |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by ddyndo):

 I've also collected logs from another built-from-scratch (this time
 standalone) ffmpeg/ffprobe:

 {{{
 ~/Desktop/ffmpeg-git-20190521-amd64-static$ ./ffprobe -v 50
 -codec_whitelist h265 ../h1.ts
 ffprobe version N-48905-ge45e6005ce-static
 https://johnvansickle.com/ffmpeg/  Copyright (c) 2007-2019 the FFmpeg
 developers
   built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
 --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-
 gmp --enable-gray --enable-libaom --enable-libfribidi --enable-libass
 --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-librubberband --enable-libsoxr --enable-libspeex --enable-
 libvorbis --enable-libopus --enable-libtheora --enable-libvidstab
 --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid
 --enable-libzvbi --enable-libzimg
   libavutil      56. 28.100 / 56. 28.100
   libavcodec     58. 52.102 / 58. 52.102
   libavformat    58. 27.103 / 58. 27.103
   libavdevice    58.  7.100 / 58.  7.100
   libavfilter     7. 53.101 /  7. 53.101
   libswscale      5.  4.101 /  5.  4.101
   libswresample   3.  4.100 /  3.  4.100
   libpostproc    55.  4.100 / 55.  4.100
 Routing option codec_whitelist to both codec and muxer layer
 [NULL @ 0x6e6fd00] Opening '../h1.ts' for reading
 [file @ 0x6e70500] Setting default whitelist 'file,crypto'
 [mpegts @ 0x6e6fd00] Format mpegts probed with size=2048 and score=50
 [mpegts @ 0x6e6fd00] stream=0 stream_type=6 pid=12d prog_reg_desc=
 [mpegts @ 0x6e6fd00] Before avformat_find_stream_info() pos: 0 bytes
 read:32768 seeks:0 nb_streams:1
 [NULL @ 0x6e747c0] Codec (hevc) not on whitelist 'h265'
 [mpegts @ 0x6e6fd00] Failed to open codec in avformat_find_stream_info
 [NULL @ 0x6e747c0] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
 [NULL @ 0x6e747c0] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
 [NULL @ 0x6e747c0] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
 [NULL @ 0x6e747c0] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0,
 temporal_id: 0
 [NULL @ 0x6e747c0] Decoding VPS
 [NULL @ 0x6e747c0] Unknown HEVC profile: 0
 [NULL @ 0x6e747c0] Decoding SPS
 [NULL @ 0x6e747c0] Unknown HEVC profile: 0
 [NULL @ 0x6e747c0] Decoding PPS
 [AVBSFContext @ 0x6ece680] nal_unit_type: 32(VPS), nuh_layer_id: 0,
 temporal_id: 0
 [AVBSFContext @ 0x6ece680] nal_unit_type: 33(SPS), nuh_layer_id: 0,
 temporal_id: 0
 [AVBSFContext @ 0x6ece680] nal_unit_type: 34(PPS), nuh_layer_id: 0,
 temporal_id: 0
 [AVBSFContext @ 0x6ece680] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0,
 temporal_id: 0
 [NULL @ 0x6e747c0] Codec (hevc) not on whitelist 'h265'
 [NULL @ 0x6e747c0] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
 [NULL @ 0x6e747c0] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
 [NULL @ 0x6e747c0] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
 [NULL @ 0x6e747c0] Decoding VPS
 [NULL @ 0x6e747c0] Unknown HEVC profile: 0
 [NULL @ 0x6e747c0] Decoding SPS
 [NULL @ 0x6e747c0] Unknown HEVC profile: 0
 [NULL @ 0x6e747c0] Decoding PPS
 [NULL @ 0x6e747c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0,
 temporal_id: 0
     Last message repeated 169 times
 [mpegts @ 0x6e6fd00] max_analyze_duration 7000000 reached at 7008756
 microseconds st:0
 [mpegts @ 0x6e6fd00] rfps: 23.916667 0.015181
 [mpegts @ 0x6e6fd00] rfps: 24.000000 0.007151
 [mpegts @ 0x6e6fd00] rfps: 23.976024 0.003566
 [mpegts @ 0x6e6fd00] rfps: 47.952048 0.014265
 [mpegts @ 0x6e6fd00] Could not find codec parameters for stream 0 (Video:
 hevc, 1 reference frame (HEVC / 0x43564548), none): unspecified size
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [mpegts @ 0x6e6fd00] After avformat_find_stream_info() pos: 0 bytes
 read:561932 seeks:1 frames:170
 Input #0, mpegts, from '../h1.ts':
   Duration: 00:00:12.64, start: 0.080000, bitrate: 355 kb/s
   Program 1
     Stream #0:0[0x12d], 170, 1/90000: Video: hevc, 1 reference frame (HEVC
 / 0x43564548), none, 23.98 tbr, 90k tbn, 90k tbc
 [hevc @ 0x6eceb80] Codec (hevc) not on whitelist 'h265'
 Could not open codec for input stream 0
 }}}

 This shows that a lot of metadata is not parsed/propagated correctly if
 FFmpeg's HEVC decoder is disabled/compiled-out.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8465#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list