[FFmpeg-trac] #3179(undetermined:open): Transcoding a transport stream with a timestamp wrap does not work with -copyts (was: Transcoding a "concatenated" video stream with -copyts does not work)

FFmpeg trac at avcodec.org
Sun Dec 1 11:43:25 CET 2013


#3179: Transcoding a transport stream with a timestamp wrap does not work with
-copyts
-------------------------------------+-------------------------------------
             Reporter:  aurelien     |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  copyts       |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  1
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * status:  new => open
 * component:  FFmpeg => undetermined
 * reproduced:  0 => 1


Comment:

 I uploaded a sample to http://samples.ffmpeg.org/ffmpeg-
 bugs/trac/ticket3179/
 Transcoding drops the beginning of the video, leading to massive A/V
 desync.
 {{{
 $ ffmpeg -copyts -i wrap.ts -qscale 10 out.ts
 ffmpeg version N-58684-gf068aed Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Dec  1 2013 11:25:37 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      52. 56.100 / 52. 56.100
   libavcodec     55. 44.100 / 55. 44.100
   libavformat    55. 21.102 / 55. 21.102
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 91.100 /  3. 91.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 [mpeg2video @ 0x2e0cdc0] Invalid frame dimensions 0x0.
     Last message repeated 13 times
 [NULL @ 0x2e15560] start time is not set in estimate_timings_from_pts
 [NULL @ 0x2e16fa0] start time is not set in estimate_timings_from_pts
 [mpegts @ 0x2de7900] PES packet size mismatch
     Last message repeated 3 times
 [mpegts @ 0x2de7900] Could not find codec parameters for stream 5
 (Unknown: none ([6][0][0][0] / 0x0006)): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [mpegts @ 0x2de7900] Could not find codec parameters for stream 6
 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 Input #0, mpegts, from 'wrap.ts':
   Duration: 00:00:35.32, start: -21.053622, bitrate: 4750 kb/s
   Program 1001
     Stream #0:0[0x7d1]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 3500 kb/s, 25 fps, 25 tbr,
 90k tbn, 50 tbc
     Stream #0:1[0x7db](ger): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
 stereo, s16p, 160 kb/s (clean effects)
     Stream #0:2[0x7dc](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
 stereo, s16p, 160 kb/s (clean effects)
     Stream #0:3[0x7f9](ger): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz,
 stereo, fltp, 448 kb/s (clean effects)
     Stream #0:4[0x835](ger): Subtitle: dvb_teletext ([6][0][0][0] /
 0x0006)
     Stream #0:5[0x836]: Unknown: none ([6][0][0][0] / 0x0006)
     Stream #0:6[0x1f41]: Unknown: none ([5][0][0][0] / 0x0005)
   Program 1002
   Program 1003
   Program 1004
   Program 1005
   Program 1006
   Program 1007
   Program 1008
   Program 1009
   Program 1011
   Program 1012
   Program 1101
   Program 1102
   Program 1103
   Program 1105
   Program 1010
 Please use -q:a or -q:v, -qscale is ambiguous
 Output #0, mpegts, to 'out.ts':
   Metadata:
     encoder         : Lavf55.21.102
     Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9],
 q=2-31, 200 kb/s, 90k tbn, 25 tbc
     Stream #0:1(ger): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s (clean
 effects)
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video)
   Stream #0:1 -> #0:1 (mp2 -> mp2)
 Press [q] to stop, [?] for help
 [mpegts @ 0x2de7900] PES packet size mismatchme=00:00:07.88
 bitrate=2109.2kbits/s dup=0 drop=495
 [mpeg2video @ 0x2e0cdc0] invalid cbp -1 at 25 12
 [mpeg2video @ 0x2e0cdc0] Warning MVs not available
 [mpeg2video @ 0x2e0cdc0] concealing 1080 DC, 1080 AC, 1080 MV errors in B
 frame
 [mp2 @ 0x2e0e840] incomplete frame
 Error while decoding stream #0:1: Invalid data found when processing input
 frame=  360 fps=0.0 q=10.0 Lsize=    3766kB time=00:00:14.36
 bitrate=2148.2kbits/s dup=0 drop=495
 video:2891kB audio:543kB subtitle:0 global headers:0kB muxing overhead
 9.658197%
 }}}
 I cannot reproduce the problem with a bigger sample.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3179#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list