[MPlayer-users] libdv and mplayer

Steven M. Schultz sms at 2BSD.COM
Thu Aug 8 07:55:02 CEST 2002


>From: Arpi <arpi at thot.banki.hu>
>> 	It's "--format dv2" though.
>
>hmm i need raw .dv streams, not dv-in-avi

	Did you fix something today?  :)

	The dv-in-avi is almost working!

	The resulting output has audio that races ahead of the video - but
	the A-V column from mplayer says that everything is supposedly in sync.

	Good picture quality though ;)

mencoder -o foo.divx -vop scale=640:480 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2500:vhq:keyint=200 -oac mp3lame -lameopts vbr=3:br=128:q=4 niv1995001.avi >& foo

	Gives:

MEncoder CVS-020807-16:31-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Reading /users/sms/.mplayer/codecs.conf: can't open '/users/sms/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/share/mplayer/codecs.conf: 38 audio & 104 video codecs
File not found: 'frameno.avi'
font: can't open file: /users/sms/.mplayer/font/font.desc
Detected AVI file format!
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 0  data: 0x0 - 0x3429EE9C
VIDEO:  [dvsd]  720x480  24bpp  29.97 fps  28780.1 kbps (3513.2 kbyte/s)
[V] filefmt:3  fourcc:0x64737664  size:720x480  fps:29.97  ftime:=0.0334
Detected audio codec: [pcm] drv:2 (Uncompressed PCM)
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 192000->192000
Opening video filter: [expand=-1:-1:-1:-1:1]
libavcodec: CPU flags: mmx mmxext sse
Opening video filter: [scale=640:480]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Requested video codec family [qdv] (vfm=4) not available (enable it at compile time!)
Opening video decoder: [libdv] Raw DV Video Decoder
VDec: vo config request - 720 x 480 (preferred csp: Packed YUY2)  
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from Packed YUY2 to Planar YV12 using MMX2
Detected video codec: [libdv] drv:29 (Raw DV decoder using libdv)
videocodec: libavcodec (640x480 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
==========================================================================

	If I manually extract the audio and downsample to 44100 the A/V sync 
	is perfect.

	It would appear that the 48000Hz audio from a DV file is causing
	problems.   Almost as if there is a 44100 value somewhere that 
	is not being overridden by the input's 48000 rate.   

	Adding "-srate 48000" to the mencoder command has no effect.

	All in all the situation is vastly better than it was just a couple
	days ago.   Thanks!

	Steven Schultz
	sms at 2bsd.com




More information about the MPlayer-users mailing list