[MEncoder-users] Re: Audio/Video out-of-sync when using the "-noskip -mc 0"
Jon Drukman
jsd at cluttered.com
Mon Jul 10 20:11:43 CEST 2006
RC wrote:
> Run mplayer on the file first (you can use -identify -vo null
> -benchmark, etc), and read the output to determine how long the video is
> (exactly) and how many frames it has.
>
> Divide the total number of frames by the length (in seconds) of the
> video, to get the framerate in FPS.
>
> You can either use that as your "-ofps" value, OR you can decide which
> _normal_ fps value the video is closest to (24, 25, 30, etc) and use
> that instead. You'll still get some warnings, but far fewer.
mplayer won't tell you how many frames are in a .wmv file. unless you
can find it in this output somewhere. (i thought it might be 2107 but
that doesn't work with any of the reported lengths. the file is 29.97fps)
Playing toole_tests/169_ff13_test.wmv.
ASF file format detected.
ID_AUDIO_ID=1
ID_VIDEO_ID=2
VIDEO: [WMV3] 1280x720 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=toole_tests/169_ff13_test.wmv
ID_DEMUXER=asf
ID_VIDEO_FORMAT=WMV3
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=720
ID_VIDEO_FPS=1000.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=353
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=72.00
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0 size:2764800 align:1
StreamCount r=0x0 1 1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555
RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 1280 x 720 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 1280x720 => 1280x720 Planar YV12
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
ID_VIDEO_CODEC=wmv9dmo
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16002->192000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or
directory
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 72.9 V: 73.3 A-V: -0.413 ct: 0.413 2107/2107 26% 0% 1.2% 0 0 $<50>
BENCHMARKs: VC: 18.940s VO: 0.004s A: 0.853s Sys: 51.732s = 71.530s
BENCHMARK%: VC: 26.4785% VO: 0.0061% A: 1.1931% Sys: 72.3223% = 100.0000%
More information about the MEncoder-users
mailing list