Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1166 closed defect (fixed)

CopyTB broken in new FFMPEG builds

Reported by: ramitbhalla Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: copytb copyts wtv mpeg2video
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

the copytb option used to work great in some older build of FFMPEG (please see the working output below).

This may be different from #1032 since that is limited to H264 while this fails to work on MPEG2 as well.

The working version of FFMPEG below (SVN-r26400) works on BOTH H264 and MPEG2.
This is the last working version of FFMPEG that I could find.
Any version after breaks (output given below).

WORKING OUTPUT:
Command:

ffmpeg -i MPEG2.wtv -vcodec copy -acodec copy -copytb mpeg2.ts

Output:

FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan 18 2011 04:07:05 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb
--enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-cpudetect --enable-libxvid --enable-libx264 --enabl
e-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --enable-w32threads --
cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 1 /  0.16. 1
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.93. 0 / 52.93. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.74. 0 /  1.74. 0
  libswscale     0.12. 0 /  0.12. 0
[mp2 @ 02902190] Header missing
[mpeg2video @ 02902770] mpeg_decode_postinit() failure
    Last message repeated 8 times
[wtv @ 0193bec0] Estimating duration from bitrate, this may be inaccurate

Seems stream 1 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (60000/2002)
Input #0, wtv, from 'MPEG2.wtv':
  Duration: 00:00:02.51, start: 24.423381, bitrate: 7482 kb/s
    Stream #0.0[0x1e9]: Audio: mp2, 44100 Hz, 2 channels, s16, 256 kb/s
    Stream #0.1[0x1eb]: Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 7500 kb/s, 44.96 fps, 29.97 tbr, 10000k
 tbn, 59.94 tbc
[mpegts @ 029f0050] muxrate VBR, pcr every 1000000 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'mpeg2.ts':
  Metadata:
    encoder         : Lavf52.93.0
    Stream #0.0: Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 7500 kb/s, 90k tbn, 10000k tbc
    Stream #0.1: Audio: mp2, 44100 Hz, 2 channels, 256 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
frame=   54 fps=  0 q=-1.0 Lsize=    1801kB time=2.16 bitrate=6837.4kbits/s
video:1629kB audio:36kB global headers:0kB muxing overhead 8.183981%

COMMAND:

ffmpeg -i H264.wtv -vcodec copy -acodec copy -copytb h264.ts

Output:

FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan 18 2011 04:07:05 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb
--enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-cpudetect --enable-libxvid --enable-libx264 --enabl
e-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --enable-w32threads --
cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 1 /  0.16. 1
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.93. 0 / 52.93. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.74. 0 /  1.74. 0
  libswscale     0.12. 0 /  0.12. 0
[h264 @ 02562770] non-existing PPS referenced
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] no frame!
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS referenced
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] no frame!
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS referenced
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] no frame!
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS referenced
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] no frame!
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS referenced
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] no frame!
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS referenced
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] no frame!
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS referenced
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] no frame!
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS referenced
[h264 @ 02562770] non-existing SPS 0 referenced in buffering period
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] non-existing PPS 0 referenced
[h264 @ 02562770] decode_slice_header error
[h264 @ 02562770] no frame!
[wtv @ 0194beb0] Estimating duration from bitrate, this may be inaccurate
Input #0, wtv, from 'H264.wtv':
  Duration: 00:01:39.10, start: 2.289534, bitrate: 190 kb/s
    Stream #0.0[0x63](spa): Subtitle: dvbsub
    Stream #0.1[0x64]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 28.80 fps, 25 tbr, 10000k tbn, 50 tbc
    Stream #0.2[0x67](spa): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
[mpegts @ 033ffd20] muxrate VBR, pcr every 1000000 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'h264.ts':
  Metadata:
    encoder         : Lavf52.93.0
    Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 10000k tbc
    Stream #0.1(spa): Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.2 -> #0.1
Press [q] to stop encoding
frame=   47 fps=  0 q=-1.0 Lsize=    1868kB time=5.34 bitrate=2867.6kbits/s
video:1673kB audio:55kB global headers:0kB muxing overhead 8.108572%

BROKEN FFMPEG (LATEST VERSION)
Command:

ffmpeg -i MPEG2.wtv -vcodec copy -acodec copy -copytb -1 mpeg2.ts

Output:

ffmpeg version N-38938-ge01f478 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 19 2012 23:16:52 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --en
able-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 42.100 / 51. 42.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.101 /  2. 65.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg2video @ 02E9BC40] mpeg_decode_postinit() failure
    Last message repeated 8 times
Input #0, wtv, from 'MPEG2.wtv':
  Metadata:
    WM/MediaThumbType: 2
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74b
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000e
    Title           : Landscapes
    WM/SubTitleDescription: A sample TV program that shows scenery, mountain-bike riding, and rafting. Produced by Small
 World Productions, Tourism New Zealand.
    genre           : General;Movies
    service_provider: WMC
    service_name    : Windows Media Center
    WM/MediaOriginalChannel: 7
    WM/MediaOriginalChannelSubNumber: 7
    WM/MediaOriginalRunTime: 100000000
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/VideoClosedCaptioning: false
    WM/WMRVEnc      : 0
  Duration: 00:00:09.09, start: 24.423378, bitrate: 2071 kb/s
    Stream #0:0[0x1e9]: Audio: mp2 (P[0][0][0] / 0x0050), 44100 Hz, 2 channels, s16, 128 kb/s
    Stream #0:1[0x1eb]: Video: mpeg2video (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 7500 kb/s, 44.96 fps, 29.97 tbr,
 10000k tbn, 59.94 tbc
    Stream #0:2[0x0]: Attachment: mjpeg
    Metadata:
      title           : TV Thumbnail
[mpegts @ 0306BCE0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'mpeg2.ts':
  Metadata:
    WM/MediaThumbType: 2
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74b
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000e
    Title           : Landscapes
    WM/SubTitleDescription: A sample TV program that shows scenery, mountain-bike riding, and rafting. Produced by Small
 World Productions, Tourism New Zealand.
    genre           : General;Movies
    service_provider: WMC
    service_name    : Windows Media Center
    WM/MediaOriginalChannel: 7
    WM/MediaOriginalChannelSubNumber: 7
    WM/MediaOriginalRunTime: 100000000
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/VideoClosedCaptioning: false
    WM/WMRVEnc      : 0
    encoder         : Lavf54.2.100
    Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 7500 kb/s, 44.96 fps, 90k tbn, 29.97 t
bc
    Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 44100 Hz, 2 channels, 128 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
DTS 219589, next:122070 st:1 invalid droping
DTS 553256, next:155436 st:1 invalid droping
DTS 553256, next:188802 st:1 invalid droping
DTS 1220589, next:222168 st:1 invalid droping
DTS 1554256, next:255534 st:1 invalid droping
DTS 1888034, next:288900 st:1 invalid droping
DTS 2221589, next:322266 st:1 invalid droping
DTS 2555256, next:355632 st:1 invalid droping
DTS 2889034, next:388998 st:1 invalid droping
DTS 3222589, next:422365 st:1 invalid droping
[mpegts @ 0306BCE0] pts < dts in stream 0
av_interleaved_write_frame(): Invalid argument

Command:

ffmpeg -i H264.wtv -vcodec copy -acodec copy -copytb -1 h264.ts

Output:

ffmpeg version N-38938-ge01f478 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 19 2012 23:16:52 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --en
able-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 42.100 / 51. 42.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.101 /  2. 65.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
[h264 @ 01E4BC20] non-existing PPS referenced
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] no frame!
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS referenced
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] no frame!
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS referenced
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] no frame!
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS referenced
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] no frame!
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS referenced
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] no frame!
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS referenced
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] no frame!
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS referenced
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] no frame!
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS referenced
[h264 @ 01E4BC20] non-existing SPS 0 referenced in buffering period
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] non-existing PPS 0 referenced
[h264 @ 01E4BC20] decode_slice_header error
[h264 @ 01E4BC20] no frame!
[h264 @ 01E4BC20] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 01E4BC20] Increasing reorder buffer to 1
[h264 @ 01E4BC20] Increasing reorder buffer to 2
[h264 @ 01E4BC20] Increasing reorder buffer to 3
[h264 @ 01E4BC20] mmco: unref short failure
Input #0, wtv, from 'H264.wtv':
  Metadata:
    Tuner ID        : 716453EF-7443-4F94-9E30-ED10F1C5788D
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74bD
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000eD
    Title           : Mis tardes con Margueritte
    WM/SubTitleDescription: Un parque de una peque├▒a ciudad sirve de lugar de encuentro para Germain, un carpintero de
algo más de cincuenta años y casi analfabeto, y Margueritte, una frágil anciana apasionada por la lectura. Margueritt
e empieza a leerle extractos de novelas, ha
    genre           : Cine;Comedia
    WM/OriginalReleaseTime: 2010
    WM/MediaCredits : Gérard Depardieu/Gisèle Casadesus/François-Xavier Demaison/Maurane/Gérard Depardieu/Gisèle Ca
sadesus/François-Xavier Demaison/Maurane/Gérard Depardieu/Gisèle Casadesus/François-Xavier Demaison/Maurane/Gérard
Depardieu/Gisèle Casadesus/François
    service_provider: Canal+ Comedia HD
    service_name    : Canal+ Comedia HD
    WM/MediaNetworkAffiliation: dvblink
    WM/MediaOriginalChannel: 15
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 12066576831
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : true
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: false
    WM/WMRVEncodeTime: 2012-01-30 18:28:53
    WM/WMRVServiceID: !Generated!5457f0224618436e93271f066a788808
    WM/WMRVProgramID: !MCProgram!8162774331456992!canal+ comedia hd!1327943400
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 5027
    WM/WMRVOriginalSoftPostPadding: 900
    WM/WMRVHardPrePadding: -4727
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    Duration        : 1303804573
    WM/WMRVEndTime  : 2012-01-30 18:31:03
    WM/WMRVBitrate  : 3.014656
    WM/WMRVKeepUntil: -1
    WM/WMRVActualSoftPrePadding: 4721
    WM/WMRVActualSoftPostPadding: -176
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : true
  Duration: 00:02:09.54, start: 2.289534, bitrate: 145 kb/s
    Stream #0:0[0x63](spa): Subtitle: dvb_subtitle
    Stream #0:1[0x64]: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 34.72 fps, 25 tbr, 10000k tbn, 50 tbc
    Stream #0:2[0x65](dos): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:3[0x66](esl): Subtitle: dvb_subtitle (hearing impaired)
    Stream #0:4[0x67](spa): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
[mpegts @ 0365B460] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'h264.ts':
  Metadata:
    Tuner ID        : 716453EF-7443-4F94-9E30-ED10F1C5788D
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74bD
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000eD
    Title           : Mis tardes con Margueritte
    WM/SubTitleDescription: Un parque de una peque├▒a ciudad sirve de lugar de encuentro para Germain, un carpintero de
algo más de cincuenta años y casi analfabeto, y Margueritte, una frágil anciana apasionada por la lectura. Margueritt
e empieza a leerle extractos de novelas, ha
    genre           : Cine;Comedia
    WM/OriginalReleaseTime: 2010
    WM/MediaCredits : Gérard Depardieu/Gisèle Casadesus/François-Xavier Demaison/Maurane/Gérard Depardieu/Gisèle Ca
sadesus/François-Xavier Demaison/Maurane/Gérard Depardieu/Gisèle Casadesus/François-Xavier Demaison/Maurane/Gérard
Depardieu/Gisèle Casadesus/François
    service_provider: Canal+ Comedia HD
    service_name    : Canal+ Comedia HD
    WM/MediaNetworkAffiliation: dvblink
    WM/MediaOriginalChannel: 15
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 12066576831
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : true
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: false
    WM/WMRVEncodeTime: 2012-01-30 18:28:53
    WM/WMRVServiceID: !Generated!5457f0224618436e93271f066a788808
    WM/WMRVProgramID: !MCProgram!8162774331456992!canal+ comedia hd!1327943400
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 5027
    WM/WMRVOriginalSoftPostPadding: 900
    WM/WMRVHardPrePadding: -4727
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    Duration        : 1303804573
    WM/WMRVEndTime  : 2012-01-30 18:31:03
    WM/WMRVBitrate  : 3.014656
    WM/WMRVKeepUntil: -1
    WM/WMRVActualSoftPrePadding: 4721
    WM/WMRVActualSoftPostPadding: -176
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : true
    encoder         : Lavf54.2.100
    Stream #0:0: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 34.72 fps, 90k tbn, 25 tbc
    Stream #0:1(dos): Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
DTS 8866777, next:1006678 st:1 invalid droping
DTS 8466777, next:1046678 st:1 invalid droping
DTS 9266777, next:1086678 st:1 invalid droping
DTS 10466777, next:1126678 st:1 invalid droping
DTS 10066777, next:1166678 st:1 invalid droping
DTS 10866777, next:1206678 st:1 invalid droping
DTS 12866777, next:1486678 st:1 invalid droping
[mpegts @ 0365B460] pts < dts in stream 0
av_interleaved_write_frame(): Invalid argument

I've even tried the very first version of the new zeronae build (ffmpeg-git-1aeb88b-win32-static.7z) and it is broken in exactly the same way as above.

Somewhere between SVN-r26400 and git-1aeb88b copytb broke. Can anyone please help fix this. It's creating havoc with wtv and dvr-ms conversions.

Attachments (2)

MPEG2.wtv (2.2 MB) - added by ramitbhalla 7 years ago.
H264.wtv (2.2 MB) - added by ramitbhalla 7 years ago.

Change History (11)

comment:1 Changed 7 years ago by cehoyos

Don't you get the same error without -copytb?

Changed 7 years ago by ramitbhalla

Changed 7 years ago by ramitbhalla

comment:2 Changed 7 years ago by ramitbhalla

Yes I do (in both the old working and latest version).
I'm ucing CopyTB to avoid the error but that's broken in the newer versions.

comment:3 Changed 7 years ago by michael

  • Keywords copyts added
  • Priority changed from important to normal
  • Reproduced by developer set
  • Status changed from new to open

works fine with -copyts
i leave this open as i think it would be nice if we can get it working by default without -copyts

comment:4 follow-up: Changed 7 years ago by ramitbhalla

Which version is it working with?

comment:5 in reply to: ↑ 4 Changed 7 years ago by michael

Replying to ramitbhalla:

Which version is it working with?

git master, but note -copyTS not copyTB

comment:6 Changed 7 years ago by ramitbhalla

Right - but copyTS doesn't solve the WTV stream copy problem copyTB does.
Any idea how to fix the copyTB and where it broke?

comment:7 Changed 7 years ago by pross

This appears to be fixed. I am able to generate valid ts files *without* using -copyts. e.g.

./ffmpeg -i ../wtv-bugs/MPEG2.wtv -acodec copy -vcodec copy out.ts

comment:8 Changed 7 years ago by cehoyos

  • Keywords wtv mpeg2video added
  • Resolution set to fixed
  • Status changed from open to closed

Thank you for testing these samples!

comment:9 Changed 7 years ago by ramitbhalla

pross which build are you using?

Note: See TracTickets for help on using tickets.