[MEncoder-users] avsync issue with mpeg output

Kyle Schmitt azephrahel at yahoo.com
Mon Mar 7 19:21:19 CET 2005


--- Nico Sabbi <nsabbi at tiscali.it> wrote:
> Kyle Schmitt wrote:
> >   Hi.  I've got an av sync issue with material I
> >caputred from a tv card (using mencoder).
> > Burn the dvd anyway and the video is ok, but the
> >sound pops in and out.
> >   How would can I fix the audio stream so it wont
> >have all of those errors?
> post the full log, please.
> I suspect the audio stream isn't sampled at 48 Khz,
> which would explain
> why dvdauthor complains, but it should be in sync
> anyway
Umm the full log is huge.  This is a log of encoding
the first ten seconds.  The resulting mpeg file plays
fine on a computer, or a computer based dvd player but
doesn't play properly on a dvd player. (and your
right, the audio is in 44 Khz)

I can post what dvd author says also, if that will
help.

Thanks --Kyle
------commandline------

mencoder -oac lavc -ovc lavc -lavcopts
acodec=mp2:abitrate=128:vcodec=mpeg2video:keyint=96:aspect=4/3:vbitrate=7500:mbd=2:threads=2
-fps 24 -ofps 24  -of mpeg -mpegopts format=dvd -o
tape2-episode-3.mpg tape2-episode3.avi -endpos 10

------startlog------

MEncoder dev-CVS-050225-22:06-3.3.3 (C) 2000-2005
MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred
(Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1
SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow
3DNowEx SSE

File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0  data: 0x0 - 0x1bdf454e
AVI file format detected.
VIDEO:  [FMP4]  720x480  24bpp  24.000 fps  3820.1
kbps (466.3 kbyte/s)
[V] filefmt:3  fourcc:0x34504D46  size:720x480 
fps:24.00  ftime:=0.0417
input fps will be interpreted as 24.00 instead
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio
decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00%
(ratio: 176400->176400)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
PACKET SIZE: 2048 bytes
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec
codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg
MPEG-4)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le ->
44100Hz/2ch/s16le...
Writing AVI header...
Limiting audio preload to 0.4s
Increasing audio density to 4
AUDIO FRAME SIZE: 418, DELTA_PTS: 2407680 (0.026)
VDec: vo config request - 720 x 480 (preferred csp:
Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.50:1 - prescaling to correct movie
aspect.
Selected font is fixed-width.
videocodec: libavcodec (720x480 fourcc=3267706d
[mpg2])
High quality encoding selected (non real time)!
Pos:   0.2s      4f ( 0%)   0fps Trem:   0min   0mb 
A-V:0.008 [0:0]
Pos:   0.3s      8f ( 0%)   0fps Trem:   0min   0mb 
A-V:0.020 [0:0]
Pos:   0.5s     11f ( 0%)   0fps Trem:   0min   0mb 
A-V:0.027 [0:0]
Pos:   0.6s     15f ( 0%)   0fps Trem:   4min   0mb 
A-V:0.031 [0:0]
Pos:   0.8s     19f ( 0%)   0fps Trem:   4min   0mb 
A-V:0.035 [0:127]
Pos:   0.9s     22f ( 0%)   0fps Trem:   5min   0mb 
A-V:0.037 [0:128]
Pos:   1.1s     26f ( 0%)   0fps Trem:   5min   0mb 
A-V:0.038 [2593:127]
Pos:   1.2s     29f ( 0%)   0fps Trem:   5min   0mb 
A-V:0.039 [2297:127]
Pos:   1.4s     33f ( 0%)   0fps Trem:   5min   0mb 
A-V:0.040 [2121:127]
Pos:   1.5s     36f ( 0%)   0fps Trem:   6min   0mb 
A-V:0.041 [1935:127]
Pos:   1.7s     40f ( 0%)   0fps Trem:   5min   0mb 
A-V:0.041 [1821:127]
Pos:   1.8s     43f ( 0%)   0fps Trem:   6min   0mb 
A-V:0.041 [1728:127]
Pos:   2.0s     47f ( 0%)   0fps Trem:   6min   0mb 
A-V:0.041 [1611:127]
Pos:   2.1s     50f ( 0%)   0fps Trem:   6min   0mb 
A-V:0.041 [1543:127]
Pos:   2.2s     54f ( 0%)   0fps Trem:   6min   0mb 
A-V:0.041 [1461:127]
Pos:   2.4s     57f ( 0%)   0fps Trem:   7min   0mb 
A-V:0.042 [1402:127]
Pos:   2.5s     60f ( 0%)   0fps Trem:   7min   0mb 
A-V:0.042 [1334:127]
Pos:   2.7s     64f ( 0%)   0fps Trem:   7min   0mb 
A-V:0.042 [1291:127]
Pos:   2.8s     67f ( 0%)  66fps Trem:   7min   0mb 
A-V:0.042 [1249:127]
Pos:   3.0s     71f ( 0%)  66fps Trem:   7min   0mb 
A-V:0.042 [1215:127]
Pos:   3.0s     72f ( 0%)  67fps Trem:   7min   0mb 
A-V:0.042 [1203:127]
1 duplicate frame(s)!
Pos:   3.2s     76f ( 0%)  67fps Trem:   7min   0mb 
A-V:0.042 [1160:127]
Pos:   3.3s     79f ( 0%)  68fps Trem:   7min   0mb 
A-V:0.042 [1120:127]
INITIAL DELAY of 0 frames  68fps Trem:   7min   0mb 
A-V:0.042 [1095:127]
Pos:   3.6s     86f ( 0%)  64fps Trem:   8min 188mb 
A-V:0.042 [1228:127]
Pos:   3.7s     89f ( 0%)  63fps Trem:   7min 155mb 
A-V:0.042 [1553:127]
Pos:   3.9s     93f ( 0%)  62fps Trem:   7min 145mb 
A-V:0.042 [1654:127]
Pos:   4.0s     96f ( 0%)  61fps Trem:   7min 138mb 
A-V:0.042 [1729:127]
Pos:   4.2s    100f ( 0%)  61fps Trem:   6min 126mb 
A-V:0.042 [1830:127]
Pos:   4.3s    103f ( 0%)  60fps Trem:   6min 120mb 
A-V:0.042 [1900:127]
Pos:   4.5s    106f ( 0%)  60fps Trem:   6min 116mb 
A-V:0.042 [1982:127]
Pos:   4.6s    110f ( 0%)  59fps Trem:   6min 106mb 
A-V:0.042 [2056:127]
Pos:   4.7s    113f ( 0%)  59fps Trem:   6min 103mb 
A-V:0.042 [2152:127]
Pos:   4.9s    117f ( 0%)  58fps Trem:   6min 100mb 
A-V:0.042 [2222:127]
Pos:   4.9s    118f ( 0%)  59fps Trem:   6min  97mb 
A-V:0.042 [2240:127]
1 duplicate frame(s)!
Pos:   5.1s    122f ( 0%)  58fps Trem:   6min  95mb 
A-V:0.042 [2285:127]
Pos:   5.2s    125f ( 0%)  58fps Trem:   6min  89mb 
A-V:0.042 [2359:127]
Pos:   5.4s    129f ( 0%)  57fps Trem:   6min  86mb 
A-V:0.042 [2411:127]
Pos:   5.5s    132f ( 0%)  57fps Trem:   6min  83mb 
A-V:0.042 [2461:127]
Pos:   5.7s    136f ( 0%)  56fps Trem:   6min  78mb 
A-V:0.042 [2538:127]
Pos:   5.8s    139f ( 0%)  56fps Trem:   6min  76mb 
A-V:0.042 [2578:127]
Pos:   6.0s    142f ( 0%)  56fps Trem:   6min  74mb 
A-V:0.042 [2635:127]
Pos:   6.1s    146f ( 0%)  56fps Trem:   6min  69mb 
A-V:0.042 [2685:127]
Pos:   6.2s    149f ( 0%)  55fps Trem:   6min  68mb 
A-V:0.042 [2744:127]
Pos:   6.4s    153f ( 0%)  55fps Trem:   6min  66mb 
A-V:0.042 [2782:127]
Pos:   6.5s    156f ( 0%)  55fps Trem:   6min  64mb 
A-V:0.042 [2833:127]
Pos:   6.7s    160f ( 0%)  54fps Trem:   5min  62mb 
A-V:0.042 [2875:127]
Pos:   6.8s    163f ( 0%)  54fps Trem:   5min  60mb 
A-V:0.042 [2913:127]
Pos:   7.0s    167f ( 0%)  54fps Trem:   6min  59mb 
A-V:0.042 [2935:127]
Pos:   7.1s    170f ( 0%)  54fps Trem:   5min  57mb 
A-V:0.042 [2963:127]
Pos:   7.2s    174f ( 0%)  54fps Trem:   5min  56mb 
A-V:0.042 [2994:127]
Pos:   7.4s    177f ( 0%)  54fps Trem:   5min  54mb 
A-V:0.042 [3013:127]
Pos:   7.5s    181f ( 0%)  53fps Trem:   5min 302mb 
A-V:0.042 [3058:127]
Pos:   7.7s    184f ( 0%)  53fps Trem:   5min 291mb 
A-V:0.042 [3060:127]
Pos:   7.8s    187f ( 0%)  53fps Trem:   5min 288mb 
A-V:0.042 [3063:127]
Pos:   8.0s    191f ( 0%)  53fps Trem:   5min 284mb 
A-V:0.042 [3065:127]
Pos:   8.1s    194f ( 1%)  53fps Trem:   5min 275mb 
A-V:0.042 [3072:127]
Pos:   8.2s    198f ( 1%)  53fps Trem:   5min 272mb 
A-V:0.042 [3078:127]
Pos:   8.4s    201f ( 1%)  53fps Trem:   5min 268mb 
A-V:0.042 [3083:127]
Pos:   8.5s    205f ( 1%)  52fps Trem:   6min 265mb 
A-V:0.042 [3091:127]
Pos:   8.7s    208f ( 1%)  52fps Trem:   5min 256mb 
A-V:0.042 [3093:127]
Pos:   8.8s    212f ( 1%)  52fps Trem:   5min 254mb 
A-V:0.042 [3095:127]
Pos:   9.0s    215f ( 1%)  52fps Trem:   6min 250mb 
A-V:0.042 [3103:127]
Pos:   9.1s    219f ( 1%)  52fps Trem:   5min 244mb 
A-V:0.042 [3102:127]
Pos:   9.2s    222f ( 1%)  52fps Trem:   5min 242mb 
A-V:0.000 [3101:127]
Pos:   9.4s    225f ( 1%)  52fps Trem:   6min 240mb 
A-V:0.000 [3102:127]
Pos:   9.5s    229f ( 1%)  52fps Trem:   6min 236mb 
A-V:0.000 [3111:127]
Pos:   9.7s    232f ( 1%)  52fps Trem:   5min 230mb 
A-V:0.000 [3113:127]
Pos:   9.8s    236f ( 1%)  52fps Trem:   6min 228mb 
A-V:0.000 [3110:127]
Pos:   9.9s    239f ( 1%)  52fps Trem:   6min 226mb 
A-V:0.000 [3104:127]
Pos:  10.0s    242f ( 1%)  52fps Trem:   5min 221mb 
A-V:0.000 [3101:127]
Flushing video frames

Writing AVI index...

WARNING: SCR: 717783077, APTS: 810558720, DELTA=1.007
secs, BYTES=738387

WARNING: SCR: 721680007, APTS: 822597120, DELTA=1.095
secs, BYTES=951083

WARNING: SCR: 726010048, APTS: 834635520, DELTA=1.179
secs, BYTES=1152464

WARNING: SCR: 729906978, APTS: 846673920, DELTA=1.267
secs, BYTES=1365160

WARNING: SCR: 733803908, APTS: 856304640, DELTA=1.329
secs, BYTES=1514955

WARNING: SCR: 738133949, APTS: 868343040, DELTA=1.413
secs, BYTES=1716336

WARNING: SCR: 742030879, APTS: 880381440, DELTA=1.501
secs, BYTES=1929032

WARNING: SCR: 746360920, APTS: 892419840, DELTA=1.585
secs, BYTES=2130413

WARNING: SCR: 750690961, APTS: 904458240, DELTA=1.668
secs, BYTES=2331794

WARNING: SCR: 755021002, APTS: 916496640, DELTA=1.752
secs, BYTES=2533175

WARNING: SCR: 758917932, APTS: 926127360, DELTA=1.814
secs, BYTES=2682970

WARNING: SCR: 763681084, APTS: 938165760, DELTA=1.893
secs, BYTES=2873036

WARNING: SCR: 767144903, APTS: 950204160, DELTA=1.986
secs, BYTES=3097047

WARNING: SCR: 771908055, APTS: 962242560, DELTA=2.065
secs, BYTES=3287112

WARNING: SCR: 775804985, APTS: 974280960, DELTA=2.154
secs, BYTES=3499808

Overhead: 1.368% (55484 / 4056900)
Fixing AVI header...

Video stream: 3101.193 kbit/s  (387649 bps)  size:
3892643 bytes  10.042 secs  242 frames

Audio stream:  127.999 kbit/s  (15999 bps)  size:
164257 bytes  10.266 secs



	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/




More information about the MEncoder-users mailing list