Opened 5 years ago

Closed 5 years ago

#1120 closed defect (fixed)

CopyTB is not working a documented - asking for a number

Reported by: ramitbhalla Owned by: stefano
Priority: minor Component: documentation
Version: git-master Keywords: copytb
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes

Description

When I try to use copytb while stream copying a file it gives an error saying it was expecting a number.
According to the documentation there isn't any options given.

Is this a bug or is there a number expected. If so what should this number be?

COMMAND:
ffmpeg.exe -i win7_scenic-demoshort_raw.wtv -copytb -vcodec copy -acodec copy -f mpegts test.ts

OUTPUT:

ffmpeg version N-37915-g6cb2085 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb 15 2012 20:47:20 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. 39.100 / 51. 39.100
  libavcodec     54.  3.100 / 54.  3.100
  libavformat    54.  1.100 / 54.  1.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 62.100 /  2. 62.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[mp2 @ 02B15BA0] Header missing
[mpeg2video @ 02B1BC40] mpeg_decode_postinit() failure
    Last message repeated 8 times
Input #0, wtv, from 'win7_scenic-demoshort_raw.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/WMRVEncodeTime:
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 0
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: 0
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: false
    WM/TitleResource: @%SystemRoot%\eHome\ehepgres.dll,-308
    WM/SubTitleDescriptionResource: @%SystemRoot%\eHome\ehepgres.dll,-309
    WM/GenreResource: @%SystemRoot%\eHome\ehepgres.dll,-310
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 1280
    WM/MediaThumbAspectRatioY: 720
    WM/MediaThumbTimeStamp: -4616189618054758400
    Duration        : 633741426452993880
    WM/WMRVEndTime  : 2009-04-01 00:30:45
    WM/WMRVBitrate  : 0.000000
    WM/WMRVKeepUntil: -1
    WM/WMRVActualSoftPrePadding: 3658
    WM/WMRVActualSoftPostPadding: -1754
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : true
  Duration: 00:00:09.09, start: 24.423378, bitrate: 8529 kb/s
    Stream #0:0[0x1e9]: Audio: mp2 (P[0][0][0] / 0x0050), 44100 Hz, stereo, 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
Expected number for copytb but found: -vcodec

Change History (11)

comment:1 Changed 5 years ago by ramitbhalla

FYI this is a regression ticket: this functionality was working fine in a previous version of the ffmpeg SVN-r26359. Please see the output below:

COMMAND:
ffmpeg.exe -i win7_scenic-demoshort_raw.wtv -copytb -vcodec copy -acodec copy -f mpegts test.ts

OUTPUT:

FFmpeg version SVN-r26359, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan 15 2011 04:13:41 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.73. 1 /  1.73. 1
  libswscale     0.12. 0 /  0.12. 0
[mp2 @ 02812190] Header missing
[mpeg2video @ 02812770] mpeg_decode_postinit() failure
    Last message repeated 8 times
[wtv @ 0160bf50] 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 'win7_scenic-demoshort_raw.wtv':
  Duration: 00:00:10.09, start: 24.423381, bitrate: 7687 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 @ 02900050] muxrate VBR, pcr every 1000000 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'test.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=  263 fps=  0 q=-1.0 Lsize=    8823kB time=9.13 bitrate=7915.4kbits/s
video:8014kB audio:142kB global headers:0kB muxing overhead 8.175152%}}}
Last edited 5 years ago by ramitbhalla (previous) (diff)

comment:2 in reply to: ↑ description Changed 5 years ago by cehoyos

  • Component changed from undetermined to documentation
  • Keywords copytb added
  • Owner set to stefano

Replying to ramitbhalla:

When I try to use copytb while stream copying a file it gives an error saying it was expecting a number.
According to the documentation there isn't any options given.

Where is this documentation?
ffmpeg -help|grep copytb
clearly explains that a number has to be given to the option to work.

comment:3 Changed 5 years ago by ramitbhalla

the FFMPEG documentation page (http://ffmpeg.org/ffmpeg.html) states:
-copytb

The FFPMEG -h output mentions this:
-copytb source

The older version works fine with -copytb

Assuming the latest version required a 'source' (in which case the documentation needs to be updated),

what is source? It asks for a integer.

comment:4 Changed 5 years ago by cehoyos

  • Priority changed from normal to minor
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:5 follow-up: Changed 5 years ago by ramitbhalla

I tried putting 0 (assuming that its the input filenumber). the conversion fails. Should I raise a separate ticket for that?

comment:6 in reply to: ↑ 5 Changed 5 years ago by cehoyos

Replying to ramitbhalla:

I tried putting 0 (assuming that its the input filenumber). the conversion fails.

Minimal command line and complete, uncut console output missing.

comment:7 Changed 5 years ago by ramitbhalla

Okay, I'll post it here. This appears to be a regression bug:

The last working build of FFMPEG that I can find:

COMMAND:

ffmpeg.exe -i h264.wtv -copytb -vcodec copy -acodec copy -f mpegts test.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 @ 02432770] non-existing PPS referenced
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] no frame!
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS referenced
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] no frame!
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS referenced
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] no frame!
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS referenced
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] no frame!
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS referenced
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] no frame!
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS referenced
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] no frame!
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS referenced
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] no frame!
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS referenced
[h264 @ 02432770] non-existing SPS 0 referenced in buffering period
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] non-existing PPS 0 referenced
[h264 @ 02432770] decode_slice_header error
[h264 @ 02432770] no frame!
[wtv @ 0170bef0] max_analyze_duration reached
[wtv @ 0170bef0] Estimating duration from bitrate, this may be inaccurate
Input #0, wtv, from 'h264.wtv':
  Duration: 01:08:16.96, start: 2.289534, bitrate: 191 kb/s
    Stream #0.0[0x63](spa): Subtitle: dvbsub
    Stream #0.1[0x64]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 26.43 fps, 25 tbr, 10000k tbn, 50 tbc
    Stream #0.2[0x67](spa): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
[mpegts @ 035fb080] muxrate VBR, pcr every 1000000 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'test.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= 4627 fps=1286 q=-1.0 Lsize=   93093kB time=303.68 bitrate=2511.3kbits/s
video:82622kB audio:3360kB global headers:0kB muxing overhead 8.270173%

The latest version fails with the following error. For that matter I've even tried the oldest available build on Zeranoe (ffmpeg-git-1aeb88b-win32-static.7z) which fails with the same error. This bug appears to have been introduced somewhere in between the SVN-r26400 build and (ffmpeg-git-1aeb88b-win32-static.7z) build.

COMMAND:

ffmpeg.exe -i h264.wtv -copytb 0 -vcodec copy -acodec copy -f mpegts test.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 @ 02A6BC60] non-existing PPS referenced
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] no frame!
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS referenced
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] no frame!
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS referenced
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] no frame!
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS referenced
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] no frame!
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS referenced
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] no frame!
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS referenced
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] no frame!
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS referenced
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] no frame!
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS referenced
[h264 @ 02A6BC60] non-existing SPS 0 referenced in buffering period
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] non-existing PPS 0 referenced
[h264 @ 02A6BC60] decode_slice_header error
[h264 @ 02A6BC60] no frame!
[h264 @ 02A6BC60] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 02A6BC60] Increasing reorder buffer to 1
[h264 @ 02A6BC60] Increasing reorder buffer to 2
[h264 @ 02A6BC60] Increasing reorder buffer to 3
[h264 @ 02A6BC60] 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: 6070 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 @ 02AA2CE0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'test.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 @ 02AA2CE0] pts < dts in stream 0
av_interleaved_write_frame(): Invalid argument

comment:8 follow-up: Changed 5 years ago by ramitbhalla

cehoyos any thoughts on this?

this is the most important feature of the entire program being able to standardize the videos' into a single format before processing.

I hate to use other crappy tools, FFMPEG is a great tool and I'd love to see this basic functionailty restored.

Can it be done please? (it to work beautifully in the past) - I'd hate to revert to an old version, everything is built around FFMPEG's new format and commands.

thanks,

comment:9 Changed 5 years ago by cehoyos

How is "ffmpeg.exe -i h264.wtv -copytb 0 -vcodec copy -acodec copy -f mpegts test.ts" related to "CopyTB is not working as documented"?

If you believe you found a regression, please

  • find the version introducing the problem with git bisect
  • open a new ticket
  • add the command line and the complete, uncut console output and
  • (most important) add a sample

(But note that you may have found a duplicate of ticket #1032)

comment:10 in reply to: ↑ 8 Changed 5 years ago by saste

  • Analyzed by developer set

Replying to ramitbhalla:

cehoyos any thoughts on this?

this is the most important feature of the entire program being able to standardize the videos' into a single format before processing.

I hate to use other crappy tools, FFMPEG is a great tool and I'd love to see this basic functionailty restored.

Can it be done please? (it to work beautifully in the past) - I'd hate to revert to an old version, everything is built around FFMPEG's new format and commands.

-copytb syntax was changed in commit 6e96ad8215a6950b4d303e784ca35860ba765478, now it is tri-state.
The equivalent of the old option -copytb is -copytb 1 (or any positive value).

Sending a patch for updating docs.

comment:11 Changed 5 years ago by saste

  • Resolution set to fixed
  • Status changed from open to closed

Should be fixed in:

commit 99bb88c588ea9a46a06b966b9014394385ebe1c3
Author: Stefano Sabatini <stefasab@gmail.com>
Date:   Sat Mar 24 16:11:46 2012 +0100

    doc/ffmpeg: update and extend documentation for -copytb
    
    Address trac ticket #1120.
Note: See TracTickets for help on using tickets.