[MEncoder-users] Time line is interupted at 3051 times.

Owen Williams williams at dmu.ac.uk
Tue Oct 6 13:29:13 CEST 2009


Hello,
  Can you help me?

Sometimes I need to run this on a MPG:

ffmpeg -y -i ../1013_20090818205400.mpg -sameq -vcodec copy -acodec copy copy2.mpg

but it can create a MPG with bad time stamps:

$ mpginfo copy2.mpg
copy2.mpg
  Mpeg 2 Program Stream File [Video/Audio]
  Muxrate : 440.61 Mbps
  Estimated Duration: 01:13:58.25s
  Checking all time stamps (This may take a while.) ...
        Time stamps jumped from 50704.832322 to 50704.571256 at position 2a000
        Time stamps jumped from 50705.192322 to 50704.931256 at position ad000
        Time stamps jumped from 50705.564322 to 50705.303256 at position 118000
        Time stamps jumped from 50705.924322 to 50705.663256 at position 186000
        Time stamps jumped from 50706.284322 to 50706.023256 at position 1d3800
.
.
.
        Time stamps jumped from 51812.396322 to 51812.129256 at position 514e5000
        Time stamps jumped from 51812.756322 to 51812.489256 at position 51550800
        Time stamps jumped from 51813.122322 to 51812.861256 at position 515ae800
        Time stamps jumped from 51813.482322 to 51813.221256 at position 51607000
        Time stamps jumped from 51813.842322 to 51813.581256 at position 5165d800
        Time stamps jumped from 51814.214322 to 51813.947256 at position 516c3800
  Time line is interupted at 3051 times.
  That means at these points the time stamp is earlier than the previous one.
  You may have problems in joining and splitting this file, sorry.
  Aspect ratio 16/9 (large TV)
  Interlaced, chroma format: 4:2:0
  Size [544 x 576]     25.00 fps    10.00 Mbps

User Data:
------------
DTG1A�
      ------------

  Audio : Mpeg 1 layer 2
  192 kbps  48000 Hz
  Stereo,  No emphasis

When I remux to an avi with copy for both video and audio I lose audio sync.

I'm running:

$ ffmpeg -y -i ../1013_20090818205400.mpg -sameq -vcodec copy -
acodec copy copy2.mpg
FFmpeg version SVN-r20169, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Oct  5 2009 16:04:48 with gcc 4.1.2 20080704 (Red Hat 4.1.2-44)
  configuration: --prefix=/usr/local --enable-shared --enable-nonfree --disable-
ffserver --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libgsm --enable-li
bmp3lame --enable-libnut --enable-libnut --enable-libopenjpeg --enable-libschroe
dinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 
--enable-libxvid --enable-zlib --enable-pic --enable-gpl --enable-version3 --ext
ra-cflags=-I/usr/include/gsm
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.36. 0 / 52.36. 0
  libavformat   52.39. 0 / 52.39. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
[mp2 @ 0xbdaf610]Header missing
[mp2 @ 0xbdad550]Header missing
[mpegts @ 0xbd90590]max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) 
-> 25.00 (25/1)
Input #0, mpegts, from '../1013_20090818205400.mpg':
  Duration: 01:13:58.70, start: 46045.408522, bitrate: 3726 kb/s
  Program 1 
    Stream #0.0[0x300]: Video: mpeg2video, yuv420p, 544x576 [PAR 32:17 DAR 16:9]
, 10000 kb/s, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x301](eng): Audio: mp2, 48000 Hz, 2 channels, s16, 192 kb/s
    Stream #0.2[0x303](eng): Subtitle: dvbsub
    Stream #0.3[0x8cc]: Data: 0x000b
    Stream #0.4[0x8cb]: Data: 0x000b
    Stream #0.5[0x302](eng): Audio: mp2, 48000 Hz, 1 channels, s16, 64 kb/s
    Stream #0.6[0x809]: Data: 0x000b
Output #0, mpeg, to 'copy2.mpg':
    Stream #0.0: Video: mpeg2video, yuv420p, 544x576 [PAR 32:17 DAR 16:9], q=2-3
1, 10000 kb/s, 90k tbn, 25 tbc
    Stream #0.1(eng): Audio: mp2, 48000 Hz, 2 channels, s16, 192 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=12433 fps=12426 q=-1.0 size=  150480kB time=497.65 bitrate=2477.1kbits/s  
frame=18893 fps=12590 q=-1.0 size=  226372kB time=756.27 bitrate=2452.1kbits/s  
frame=25189 fps=12591 q=-1.0 size=  303614kB time=1007.29 bitrate=2469.2kbits/s 
frame=31785 fps=12711 q=-1.0 size=  378202kB time=1271.79 bitrate=2436.1kbits/s 
frame=37793 fps=12595 q=-1.0 size=  457044kB time=1512.30 bitrate=2475.8kbits/s frame=43687 fps=12480 q=-1.0 size=  535384kB time=1747.74 bitrate=2509.5kbits/s frame=49628 fps=12405 q=-1.0 size=  614550kB time=1985.24 bitrate=2535.9kbits/s frame=56215 fps=12490 q=-1.0 size=  689620kB time=2248.74 bitrate=2512.2kbits/s frame=62894 fps=12577 q=-1.0 size=  764926kB time=2516.15 bitrate=2490.4kbits/s frame=69133 fps=12568 q=-1.0 size=  841894kB time=2765.94 bitrate=2493.5kbits/s frame=75125 fps=12519 q=-1.0 size=  919522kB time=3005.24 bitrate=2506.5kbits/s frame=81583 fps=12550 q=-1.0 size=  995656kB time=3263.36 bitrate=2499.4kbits/s frame=88033 fps=12575 q=-1.0 size= 1071466kB time=3521.58 bitrate=2492.5kbits/s frame=94183 fps=12556 q=-1.0 size= 1147946kB time=3767.46 bitrate=2496.1kbits/s frame=101040 fps=12629 q=-1.0 size= 1220744kB time=4041.66 bitrate=2474.3kbits/sframe=107507 fps=12647 q=-1.0 size= 1295438kB time=4300.43 bitrate=2467.7kbits/sframe=110943 fps=12662 q=-1.0 Lsize= 1334096kB time=4438.16 bitrate=2462.5kbits/s    
video:1223021kB audio:104012kB global headers:0kB muxing overhead 0.532207%

Any help much appreciated,

Owen.




More information about the MEncoder-users mailing list