[FFmpeg-trac] #2530(avformat:new): Seeking in transport stream spams decoder error messages
FFmpeg
trac at avcodec.org
Sat May 4 12:51:48 CEST 2013
#2530: Seeking in transport stream spams decoder error messages
----------------------------------+---------------------------------------
Reporter: gjdfgh | Type: defect
Status: new | Priority: normal
Component: avformat | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
Summary of the bug:
Seeking in a transport stream (taken from a bluray) causes the h264
decoder to spam error messages.
How to reproduce:
Download the x264 demo disk http://x264.nl/x264_Demo_Blu-ray.torrent
Mount the iso, mount x264\ Blu-ray.iso /mnt/temp should be enough.
Run ffplay on one of the m2ts files, and seek in the file.
Example:
{{{
% ffplay /mnt/temp/BDMV/STREAM/00000.m2ts
ffplay version 1.0.6 Copyright (c) 2003-2013 the FFmpeg developers
built on Mar 25 2013 16:52:47 with gcc 4.7 (Debian 4.7.2-5)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-
ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-
libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-
pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-
x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-
nonfree --disable-stripping --enable-libvpx --enable-libschroedinger
--disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg
--enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-
aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus
--libdir=/usr/lib/i386-linux-gnu --disable-vda --enable-libbluray
--enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl
--enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394
--enable-libfdk-aac --disable-altivec --disab libavutil 51. 73.101 /
51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mpegts, from '/mnt/temp/BDMV/STREAM/00000.m2ts':
Duration: 00:05:43.90, start: 599.966656, bitrate: 14462 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0:1[0x1100]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086),
48000 Hz, 5.1(side), s16, 1536 kb/s
Frame changed from size:0x0 to size:1280x720KB vq= 0KB sq= 0B f=0/0
[dca @ 0x80e6540] Not a valid DCA framevq= 0KB sq= 0B f=0/0 f=0/0
[h264 @ 0x80e57a0] Missing reference picture, default is 0
[h264 @ 0x80e57a0] decode_slice_header error
[h264 @ 0x80e57a0] Missing reference picture, default is 0
[h264 @ 0x80e57a0] decode_slice_header error
[h264 @ 0x80e57a0] Missing reference picture, default is 0
[h264 @ 0x80e57a0] decode_slice_header error
[h264 @ 0x80e57a0] Missing reference picture, default is 0
[h264 @ 0x80e57a0] decode_slice_header error
[h264 @ 0x80e9d20] Missing reference picture, default is 65684
Last message repeated 2 times
[h264 @ 0x80ea0e0] reference picture missing during reorder
Last message repeated 3 times
[h264 @ 0x80ea0e0] Missing reference picture, default is 65684
Last message repeated 3 times
[h264 @ 0x80e57a0] Missing reference picture, default is 65692
Last message repeated 2 times
[h264 @ 0x80ea0e0] reference picture missing during reorder
Last message repeated 3 times
[h264 @ 0x80ea0e0] Missing reference picture, default is 65684
Last message repeated 3 times
[h264 @ 0x80e57a0] Missing reference picture, default is 65692
Last message repeated 2 times
[h264 @ 0x80ea0e0] reference picture missing during reorder
Last message repeated 3 times
[h264 @ 0x80ea0e0] Missing reference picture, default is 65684
[h264 @ 0x80ea0e0] Missing reference picture, default is 65684
[h264 @ 0x80e9d20] Missing reference picture, default is 65684
Last message repeated 2 times
[h264 @ 0x80e9d20] Missing reference picture, default is 65684
Last message repeated 1 times 8KB vq= 0KB sq= 0B f=0/0
[h264 @ 0x80e57a0] Missing reference picture, default is 65692
Last message repeated 2 times
[h264 @ 0x80e9d20] Missing reference picture, default is 65684
Last message repeated 5 times
[h264 @ 0x80ea0e0] reference picture missing during reorder
...
}}}
I cut the ffplay output at a random point. At least in this case, decoding
quickly resumes and you never see a broken picture. But it looks
suspicious anyway. Normal decoding (without doing any seeking) never
prints error messages in this case.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2530>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list