[MEncoder-users] Sound sync issues FLV to DVD
Yama
chips at lospescadores.org
Fri Aug 1 23:28:25 CEST 2008
I am trying to build a DVD with choral music FLVs
So far so good for the sound, the quality is great. The video looks
awesome also, actually better than the original FLV at the same size,
yet seems to surge ahead faster, out of sync with the sound, I guess the
duplicate frames are dropped and thus make the video shorter?
Result is that the song is still going by the time the video is done.
I have harddup, also tried -noskip...
Mplayer gives the same problem when playing the original FLVs.
Yet they play just fine using VLC (which, alas, doesn't encode properly
the MPGs)
Any ideas?
Thank you
Yama
yama at yamachine:~/Documents/videosandbox$ mencoder -oac lavc -ovc lavc
-of mpeg -mpegopts format=dvd -vf scale=720:480,harddup -srate 48000 -af
lavcresample=48000 -lavcopts
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=18:aspect=16/9:acodec=ac3:abitrate=192
-ofps 30000/1001 -o away7.mpg Away.flv
MEncoder 2:1.0~rc2-0ubuntu13 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.40GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x50350b
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [FLV1] 320x240 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x31564C46 size:320x240 fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 8.0 kbit/1.13% (ratio: 1000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 43885
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=720 h=480]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
Limiting audio preload to 0.4s.
Increasing audio density to 4.
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
[swscaler @ 0x880f730]SwScaler: BICUBIC scaler, from yuv420p to yuv420p
using MMX2
[swscaler @ 0x880f730]SwScaler: using 4-tap MMX scaler for horizontal
luminance scaling
[swscaler @ 0x880f730]SwScaler: using 4-tap MMX scaler for horizontal
chrominance scaling
[swscaler @ 0x880f730]SwScaler: using n-tap MMX scaler for vertical
scaling (YV12 like)
[swscaler @ 0x880f730]SwScaler: 320x240 -> 720x480
videocodec: libavcodec (720x480 fourcc=3267706d [mpg2])
Writing header...
INITV: 0.200, 0.167, fps: 29.970
Pos: 0.7s 22f ( 1%) 0.00fps Trem: 1min 13mb A-V:0.069 [0:191]
Skipping frame!
Pos: 2.2s 66f ( 1%) 36.01fps Trem: 1min 20mb A-V:-0.068 [1432:192]
1 duplicate frame(s)!
Pos: 2.5s 76f ( 1%) 35.32fps Trem: 1min 27mb A-V:-0.068 [1538:192]
1 duplicate frame(s)!
Pos: 2.9s 86f ( 1%) 34.52fps Trem: 2min 27mb A-V:-0.068 [1424:192]
1 duplicate frame(s)!
.......
Pos: 145.3s 3966f (99%) 19.59fps Trem: 0min 40mb A-V:-0.068 [2099:192]
1 duplicate frame(s)!
Pos: 145.7s 3976f (100%) 19.60fps Trem: 0min 40mb A-V:-0.068
[2100:192]
1 duplicate frame(s)!
Pos: 145.9s 3981f (100%) 19.60fps Trem: 0min 40mb A-V:-0.051
[2099:192]
Flushing video frames.
Writing index...
Overhead: 2.970% (1240984 / 41787496)
Writing header...
Video stream: 2099.918 kbit/s (262489 B/s) size: 38291752 bytes
145.879 secs 3981 frames
Audio stream: 192.000 kbit/s (23999 B/s) size: 3511296 bytes 146.304
secs
More information about the MEncoder-users
mailing list