[FFmpeg-trac] #9412(avformat:new): HEVC fails to seek on keyframe

FFmpeg trac at avcodec.org
Wed Sep 8 13:30:53 EEST 2021


#9412: HEVC fails to seek on keyframe
-----------------------------------+--------------------------------------
             Reporter:  SuRGeoNix  |                     Type:  defect
               Status:  new        |                 Priority:  important
            Component:  avformat   |                  Version:  git-master
             Keywords:  hevc seek  |               Blocked By:
             Blocking:             |  Reproduced by developer:  0
Analyzed by developer:  0          |
-----------------------------------+--------------------------------------
 I'm using av_seek_frame and even if it returns 0 pb will not be at an
 actual keyframe. The issues seems to happen with any HEVC/mpeg-ts format
 container.

 [Format  ] MPEG-TS (MPEG-2 Transport Stream)/mpegts
 [Video #0] hevc yuv420p10le 3840x2160 @ 59,94
 [Audio #1-eng] aac fltp at 0 48KHz stereo

 I've tested also with ffplay which fails as well with the following output


 {{{
 C:\Users\Owner\Downloads\ffmpegmb\bin>ffplay.exe -ss 00:01:00
 -analyzeduration 100000000000 -probesize 100000000000
 "c:\root\down\samples\hd\LG Chess 4K Demo.ts"
 ffplay version N-103543-gc655a734b1-20210907 Copyright (c) 2003-2021 the
 FFmpeg developers
   built with gcc 10-win32 (GCC) 20210408
   configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
 --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64
 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug
 --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2
 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp
 --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl
 --enable-libvmaf --enable-vulkan --disable-libxcb --disable-xlib --enable-
 amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2
 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r
 --enable-libglslang --enable-libgme --enable-libass --enable-libbluray
 --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx
 --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e
 --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr
 --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d
 --disable-libdrm --disable-vaapi --enable-libvidstab --enable-libx264
 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg
 --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags=
 --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-
 version=20210907
   libavutil      57.  4.101 / 57.  4.101
   libavcodec     59.  7.102 / 59.  7.102
   libavformat    59.  5.100 / 59.  5.100
   libavdevice    59.  0.101 / 59.  0.101
   libavfilter     8.  7.101 /  8.  7.101
   libswscale      6.  1.100 /  6.  1.100
   libswresample   4.  0.100 /  4.  0.100
   libpostproc    56.  0.100 / 56.  0.100
 [mpegts @ 00000282a0400480] stream 0 : no PTS found at end of file,
 duration not set
 Input #0, mpegts, from 'c:\root\down\samples\hd\LG Chess 4K Demo.ts':
   Duration: 00:01:52.92, start: 1.066722, bitrate: 62572 kb/s
   Program 1
   Stream #0:0[0x101]: Video: hevc (Main 10) ([36][0][0][0] / 0x0024),
 yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9],
 59.94 fps, 59.94 tbr, 90k tbn
   Stream #0:1[0x102](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000
 Hz, stereo, fltp, 383 kb/s
 [aac @ 00000282a5beb040] channel element 0.0 is not allocated
 [hevc @ 00000282a8b2d040] Could not find ref with POC 15 0B f=0/0
 [hevc @ 00000282a8b2d040] Could not find ref with POC 13
 [hevc @ 00000282a8b2d040] Could not find ref with POC 17
 [hevc @ 00000282a8b2d040] Could not find ref with POC 21
 [hevc @ 00000282a8b2d040] Could not find ref with POC 28 0B f=0/0
   62.26 A-V: -0.025 fd=   3 aq=   47KB vq=11446KB sq=    0B f=0/0
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9412>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list