[FFmpeg-trac] #3513(undetermined:new): non-existing PPS %d referenced in trans code one ts file
FFmpeg
trac at avcodec.org
Tue Apr 1 23:24:18 CEST 2014
#3513: non-existing PPS %d referenced in trans code one ts file
-------------------------------------+-------------------------------------
Reporter: scbb | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* version: 2.2 => git-master
Old description:
> Summary of the bug:
> How to reproduce:
> {{{
> % ffmpeg.exe -i 96.ts -loglevel debug 96tsout.mpeg
> ffmpeg version:ffmpeg-20140331
> built on ...
> }}}
>
> D:\DevTools\ffmpeg-20140331-git-e818ee0-win32-static\bin>ffmpeg.exe -i
> 96.ts -lo
> glevel debug 96tsout.mpeg
> ffmpeg version N-61967-ge818ee0 Copyright (c) 2000-2014 the FFmpeg
> developers
> built on Mar 30 2014 22:01:46 with gcc 4.8.2 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-av
> isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
> --enab
> le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-
> libfreetyp
> e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-
> libmp3lame --ena
> ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
> --enable-l
> ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
> --enable-libsp
> eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-
> libvo-aa
> cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-
> libwavp
> ack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
> --enable
> -zlib
> libavutil 52. 70.100 / 52. 70.100
> libavcodec 55. 55.106 / 55. 55.106
> libavformat 55. 36.100 / 55. 36.100
> libavdevice 55. 11.100 / 55. 11.100
> libavfilter 4. 3.100 / 4. 3.100
> libswscale 2. 5.102 / 2. 5.102
> libswresample 0. 18.100 / 0. 18.100
> libpostproc 52. 3.100 / 52. 3.100
> Splitting the commandline.
> Reading option '-i' ... matched as input file with argument '96.ts'.
> Reading option '-loglevel' ... matched as option 'loglevel' (set logging
> level)
> with argument 'debug'.
> Reading option '96tsout.mpeg' ... matched as output file.
> Finished splitting the commandline.
> Parsing a group of options: global .
> Applying option loglevel (set logging level) with argument debug.
> Successfully parsed a group of options.
> Parsing a group of options: input file 96.ts.
> Successfully parsed a group of options.
> Opening an input file: 96.ts.
> [mpegts @ 0035c7e0] Format mpegts probed with size=2048 and score=100
> [mpegts @ 0035c7e0] stream=0 stream_type=1b pid=100 prog_reg_desc=
> [mpegts @ 0035c7e0] Before avformat_find_stream_info() pos: 0 bytes
> read:32768 s
> eeks:0
> [h264 @ 0287f780] Current profile doesn't provide more RBSP data in PPS,
> skippin
> g
> [h264 @ 0287f780] unknown SEI type 229
> Last message repeated 1 times
> [h264 @ 0287f780] non-existing PPS 5 referenced
> [h264 @ 0287f780] decode_slice_header error
> [h264 @ 0287f780] illegal short term buffer state detected
> [h264 @ 0287f780] Cannot use next picture in error concealment
> [h264 @ 0287f780] concealing 89 DC, 89 AC, 89 MV errors in P frame
> [mpegts @ 0035c7e0] All programs have pmt, headers found
> [mpegts @ 0035c7e0] All info found
> rfps: 21.500000 0.000325
> Last message repeated 1 times
> rfps: 21.583333 0.001257
> Last message repeated 1 times
> rfps: 21.666667 0.002865
> rfps: 21.750000 0.005149
> Last message repeated 1 times
> rfps: 21.833333 0.008109
> Last message repeated 1 times
> rfps: 21.916667 0.011745
> rfps: 22.000000 0.016058
> rfps: 42.250000 0.017988
> rfps: 42.333333 0.013429
> rfps: 42.416667 0.009547
> rfps: 42.500000 0.006340
> Last message repeated 1 times
> rfps: 42.583333 0.003810
> rfps: 42.666667 0.001956
> rfps: 42.750000 0.000777
> Last message repeated 1 times
> rfps: 42.833333 0.000275
> Last message repeated 1 times
> rfps: 42.916667 0.000449
> Last message repeated 1 times
> rfps: 43.000000 0.001299
> rfps: 43.083333 0.002825
> Last message repeated 1 times
> rfps: 43.166667 0.005027
> Last message repeated 1 times
> rfps: 43.250000 0.007905
> rfps: 43.333333 0.011459
> rfps: 43.416667 0.015689
> Last message repeated 1 times
> [mpegts @ 0035c7e0] After avformat_find_stream_info() pos: 0 bytes
> read:334864 s
> eeks:2 frames:22
> Input #0, mpegts, from '96.ts':
> Duration: 00:00:01.83, start: 178.008067, bitrate: 891 kb/s
> Program 1
> Metadata:
> service_name : Service01
> service_provider: FFmpeg
> Stream #0:0[0x100], 22, 1/90000: Video: h264 (Constrained Baseline)
> ([27][0]
> [0][0] / 0x001B), yuv420p, 1920x1080, 1/180000, 42.83 tbr, 90k tbn, 180k
> tbc
> Successfully opened the file.
> Parsing a group of options: output file 96tsout.mpeg.
> Successfully parsed a group of options.
> Opening an output file: 96tsout.mpeg.
> Successfully opened the file.
> detected 4 logical cores
> [graph 0 input from stream 0:0 @ 04cb0c80] Setting 'video_size' to value
> '1920x1
> 080'
> [graph 0 input from stream 0:0 @ 04cb0c80] Setting 'pix_fmt' to value '0'
> [graph 0 input from stream 0:0 @ 04cb0c80] Setting 'time_base' to value
> '1/90000
> '
> [graph 0 input from stream 0:0 @ 04cb0c80] Setting 'pixel_aspect' to
> value '0/1'
>
> [graph 0 input from stream 0:0 @ 04cb0c80] Setting 'sws_param' to value
> 'flags=2
> '
> [graph 0 input from stream 0:0 @ 04cb0c80] Setting 'frame_rate' to value
> '257/6'
>
> [graph 0 input from stream 0:0 @ 04cb0c80] w:1920 h:1080 pixfmt:yuv420p
> tb:1/900
> 00 fr:257/6 sar:0/1 sws_param:flags=2
> [format @ 0295eee0] compat: called with args=[yuv420p]
> [format @ 0295eee0] Setting 'pix_fmts' to value 'yuv420p'
> [AVFilterGraph @ 0287fc40] query_formats: 4 queried, 3 merged, 0 already
> done, 0
> delayed
> [mpeg1video @ 04cb05c0] intra_quant_bias = 96 inter_quant_bias = 0
> [mpeg @ 04cb0060] VBV buffer size not set, muxing may fail
> Output #0, mpeg, to '96tsout.mpeg':
> Metadata:
> encoder : Lavf55.36.100
> Stream #0:0, 0, 1/90000: Video: mpeg1video, yuv420p, 1920x1080, 1/50,
> q=2-31
> , 200 kb/s, 90k tbn, 50 tbc
> Stream mapping:
> Stream #0:0 -> #0:0 (h264 -> mpeg1video)
> Press [q] to stop, [?] for help
> [h264 @ 0287f780] Current profile doesn't provide more RBSP data in PPS,
> skippin
> g
> [h264 @ 0287f780] unknown SEI type 229
> [h264 @ 04e92000] unknown SEI type 229
> [h264 @ 04e93400] non-existing PPS 5 referenced
> [h264 @ 04e93400] decode_slice_header error
> [h264 @ 04e93800] illegal short term buffer state detected
> [h264 @ 04e93800] negative number of zero coeffs at 79 67
> [h264 @ 04e93800] error while decoding MB 79 67
> [h264 @ 04e93800] Cannot use next picture in error concealment
> [h264 @ 04e93800] concealing 90 DC, 90 AC, 90 MV errors in P frame
> [mpeg @ 04cb0060] First SCR: 0 First DTS: 45000
> *** 3 dup!
> *** 1 dup!
> Last message repeated 2 times
> *** 2 dup!
> *** 1 dup!
> Last message repeated 1 times
> *** 2 dup!
> *** 1 dup!
> *** 2 dup!
> *** 1 dup!
> *** 2 dup!
> *** 1 dup!
> Last message repeated 4 times
> *** 2 dup!
> *** 1 dup!
> *** 2 dup!
> *** 1 dup!
> *** 2 dup!
> *** 1 dup!
> Last message repeated 2 times
> [h264 @ 04e92000] non-existing PPS 5 referenced
> [h264 @ 04e92000] decode_slice_header error
> [h264 @ 04e92be0] illegal short term buffer state detected
> *** 1 dup!
> [h264 @ 04e92be0] Cannot use next picture in error concealment
> [h264 @ 04e92be0] concealing 64 DC, 64 AC, 64 MV errors in P frame
> *** 1 dup!
> *** 2 dup!
> [output stream 0:0 @ 04cb0ea0] EOF on sink link output stream
> 0:0:default.
> *** 2 dup!
> No more output streams to write to, finishing.
> frame= 92 fps=0.0 q=31.0 Lsize= 438kB time=00:00:01.82
> bitrate=1971.5kbits
> /s dup=40 drop=0
> video:436kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> muxing o
> verhead: 0.499909%
> Input file #0 (96.ts):
> Input stream #0:0 (video): 52 packets read (183298 bytes); 52 frames
> decoded;
>
> Total: 52 packets (183298 bytes) demuxed
> Output file #0 (96tsout.mpeg):
> Output stream #0:0 (video): 92 frames encoded; 92 packets muxed (446281
> bytes)
> ;
> Total: 92 packets (446281 bytes) muxed
> 56 frames successfully decoded, 0 decoding errors
> [AVIOContext @ 0287fb80] Statistics: 0 seeks, 219 writeouts
> [AVIOContext @ 0035cd40] Statistics: 538656 bytes read, 2 seeks
>
> D:\DevTools\ffmpeg-20140331-git-e818ee0-win32-static\bin>
New description:
{{{
D:\DevTools\ffmpeg-20140331-git-e818ee0-win32-static\bin>ffmpeg.exe -i
96.ts -lo
glevel debug 96tsout.mpeg
ffmpeg version N-61967-ge818ee0 Copyright (c) 2000-2014 the FFmpeg
developers
built on Mar 30 2014 22:01:46 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-
libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-
libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-
libwavp
ack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable
-zlib
libavutil 52. 70.100 / 52. 70.100
libavcodec 55. 55.106 / 55. 55.106
libavformat 55. 36.100 / 55. 36.100
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument '96.ts'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level)
with argument 'debug'.
Reading option '96tsout.mpeg' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file 96.ts.
Successfully parsed a group of options.
Opening an input file: 96.ts.
[mpegts @ 0035c7e0] Format mpegts probed with size=2048 and score=100
[mpegts @ 0035c7e0] stream=0 stream_type=1b pid=100 prog_reg_desc=
[mpegts @ 0035c7e0] Before avformat_find_stream_info() pos: 0 bytes
read:32768 s
eeks:0
[h264 @ 0287f780] Current profile doesn't provide more RBSP data in PPS,
skippin
g
[h264 @ 0287f780] unknown SEI type 229
Last message repeated 1 times
[h264 @ 0287f780] non-existing PPS 5 referenced
[h264 @ 0287f780] decode_slice_header error
[h264 @ 0287f780] illegal short term buffer state detected
[h264 @ 0287f780] Cannot use next picture in error concealment
[h264 @ 0287f780] concealing 89 DC, 89 AC, 89 MV errors in P frame
[mpegts @ 0035c7e0] All programs have pmt, headers found
[mpegts @ 0035c7e0] All info found
rfps: 21.500000 0.000325
Last message repeated 1 times
rfps: 21.583333 0.001257
Last message repeated 1 times
rfps: 21.666667 0.002865
rfps: 21.750000 0.005149
Last message repeated 1 times
rfps: 21.833333 0.008109
Last message repeated 1 times
rfps: 21.916667 0.011745
rfps: 22.000000 0.016058
rfps: 42.250000 0.017988
rfps: 42.333333 0.013429
rfps: 42.416667 0.009547
rfps: 42.500000 0.006340
Last message repeated 1 times
rfps: 42.583333 0.003810
rfps: 42.666667 0.001956
rfps: 42.750000 0.000777
Last message repeated 1 times
rfps: 42.833333 0.000275
Last message repeated 1 times
rfps: 42.916667 0.000449
Last message repeated 1 times
rfps: 43.000000 0.001299
rfps: 43.083333 0.002825
Last message repeated 1 times
rfps: 43.166667 0.005027
Last message repeated 1 times
rfps: 43.250000 0.007905
rfps: 43.333333 0.011459
rfps: 43.416667 0.015689
Last message repeated 1 times
[mpegts @ 0035c7e0] After avformat_find_stream_info() pos: 0 bytes
read:334864 s
eeks:2 frames:22
Input #0, mpegts, from '96.ts':
Duration: 00:00:01.83, start: 178.008067, bitrate: 891 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100], 22, 1/90000: Video: h264 (Constrained Baseline)
([27][0]
[0][0] / 0x001B), yuv420p, 1920x1080, 1/180000, 42.83 tbr, 90k tbn, 180k
tbc
Successfully opened the file.
Parsing a group of options: output file 96tsout.mpeg.
Successfully parsed a group of options.
Opening an output file: 96tsout.mpeg.
Successfully opened the file.
detected 4 logical cores
[graph 0 input from stream 0:0 @ 04cb0c80] Setting 'video_size' to value
'1920x1
080'
[graph 0 input from stream 0:0 @ 04cb0c80] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 04cb0c80] Setting 'time_base' to value
'1/90000
'
[graph 0 input from stream 0:0 @ 04cb0c80] Setting 'pixel_aspect' to value
'0/1'
[graph 0 input from stream 0:0 @ 04cb0c80] Setting 'sws_param' to value
'flags=2
'
[graph 0 input from stream 0:0 @ 04cb0c80] Setting 'frame_rate' to value
'257/6'
[graph 0 input from stream 0:0 @ 04cb0c80] w:1920 h:1080 pixfmt:yuv420p
tb:1/900
00 fr:257/6 sar:0/1 sws_param:flags=2
[format @ 0295eee0] compat: called with args=[yuv420p]
[format @ 0295eee0] Setting 'pix_fmts' to value 'yuv420p'
[AVFilterGraph @ 0287fc40] query_formats: 4 queried, 3 merged, 0 already
done, 0
delayed
[mpeg1video @ 04cb05c0] intra_quant_bias = 96 inter_quant_bias = 0
[mpeg @ 04cb0060] VBV buffer size not set, muxing may fail
Output #0, mpeg, to '96tsout.mpeg':
Metadata:
encoder : Lavf55.36.100
Stream #0:0, 0, 1/90000: Video: mpeg1video, yuv420p, 1920x1080, 1/50,
q=2-31
, 200 kb/s, 90k tbn, 50 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg1video)
Press [q] to stop, [?] for help
[h264 @ 0287f780] Current profile doesn't provide more RBSP data in PPS,
skippin
g
[h264 @ 0287f780] unknown SEI type 229
[h264 @ 04e92000] unknown SEI type 229
[h264 @ 04e93400] non-existing PPS 5 referenced
[h264 @ 04e93400] decode_slice_header error
[h264 @ 04e93800] illegal short term buffer state detected
[h264 @ 04e93800] negative number of zero coeffs at 79 67
[h264 @ 04e93800] error while decoding MB 79 67
[h264 @ 04e93800] Cannot use next picture in error concealment
[h264 @ 04e93800] concealing 90 DC, 90 AC, 90 MV errors in P frame
[mpeg @ 04cb0060] First SCR: 0 First DTS: 45000
*** 3 dup!
*** 1 dup!
Last message repeated 2 times
*** 2 dup!
*** 1 dup!
Last message repeated 1 times
*** 2 dup!
*** 1 dup!
*** 2 dup!
*** 1 dup!
*** 2 dup!
*** 1 dup!
Last message repeated 4 times
*** 2 dup!
*** 1 dup!
*** 2 dup!
*** 1 dup!
*** 2 dup!
*** 1 dup!
Last message repeated 2 times
[h264 @ 04e92000] non-existing PPS 5 referenced
[h264 @ 04e92000] decode_slice_header error
[h264 @ 04e92be0] illegal short term buffer state detected
*** 1 dup!
[h264 @ 04e92be0] Cannot use next picture in error concealment
[h264 @ 04e92be0] concealing 64 DC, 64 AC, 64 MV errors in P frame
*** 1 dup!
*** 2 dup!
[output stream 0:0 @ 04cb0ea0] EOF on sink link output stream 0:0:default.
*** 2 dup!
No more output streams to write to, finishing.
frame= 92 fps=0.0 q=31.0 Lsize= 438kB time=00:00:01.82
bitrate=1971.5kbits
/s dup=40 drop=0
video:436kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing o
verhead: 0.499909%
Input file #0 (96.ts):
Input stream #0:0 (video): 52 packets read (183298 bytes); 52 frames
decoded;
Total: 52 packets (183298 bytes) demuxed
Output file #0 (96tsout.mpeg):
Output stream #0:0 (video): 92 frames encoded; 92 packets muxed (446281
bytes)
;
Total: 92 packets (446281 bytes) muxed
56 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0287fb80] Statistics: 0 seeks, 219 writeouts
[AVIOContext @ 0035cd40] Statistics: 538656 bytes read, 2 seeks
D:\DevTools\ffmpeg-20140331-git-e818ee0-win32-static\bin>
}}}
--
Comment:
Could you explain what problem do you see with your transcoding process?
Is 96tsout.mpeg unplayable? Or does it contain artefacts that are not
visible for the input file?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3513#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list