[MPlayer-users] Audio AC3 Sync under windows (sigh!)
Michele Costantino M Soccio
michelecostantino at lycos.com
Tue Jun 4 00:24:02 CEST 2002
Hi, I alreay talked about my problem.
If I encode a video with mencoder when I play it in windows (with all players!) and I try to seek to some position or go fast forward the video plays while the audio starts some second after.
I've already modified the mencoder.c file
if(mux_a->h.dwSampleSize){
// CBR - copy 0.5 sec of audio
switch(mux_a->codec){
case ACODEC_COPY: // copy
len=mux_a->wf->nAvgBytesPerSec/2;
len/=mux_a->h.dwSampleSize;if(len<1) len=1;
len*=mux_a->h.dwSampleSize;
len=demux_read_data(sh_audio->ds,mux_a->buffer,len);
break;
to
if(mux_a->h.dwSampleSize){
// CBR - copy 0.5 sec of audio
switch(mux_a->codec){
case ACODEC_COPY: // copy
len=mux_a->wf->nAvgBytesPerSec/12; //LOOK HERE!!
len/=mux_a->h.dwSampleSize;if(len<1) len=1;
len*=mux_a->h.dwSampleSize;
len=demux_read_data(sh_audio->ds,mux_a->buffer,len);
break;
in order to be able to listen to audio (if I just press play everything allright!).
Is there some options that can solve this problem or is this a bug (a windows bug, of course!).
thanks a lot
michele costantino
The attachment is the mencoder output
________________________________________________________
Outgrown your current e-mail service?
Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus
-------------- next part --------------
I used
mencoder -dvd 2 -dvd-device /music/tmp/amelie
-lavcopts vcodec=mpeg4:vbitrate=120:vpass=1: -ovc lavc -oac copy
-vop crop=720:418:-1:-1,
-o /music/tmp/trailers/trailers.avi -noskip -ss 10 -endpos 22
MEncoder CVS-020603-06:00-3.0.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /home/michele/.mplayer/codecs.conf: can't open '/home/michele/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/share/mplayer/codecs.conf: 34 audio & 93 video codecs
File not found: 'frameno.avi'
font: can't open file: /home/michele/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
libdvdread: Device inaccessible, CSS authentication not available.
libdvdread: Using normal filesystem access.
Reading disc structure, please wait...
There are 4 titles on this DVD.
There are 6 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened!
success: format: 0 data: 0x0 - 0xC6FC800
Detected MPEG-PS file format!
VIDEO: MPEG2 720x576 (aspect 2) 25.00 fps 11250.0 kbps (1406.2 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400
Detected audio codec: [a52] drv:14 (AC3-liba52)
Opening audio decoder: [liba52] AC3-liba52
Using 3DNowEx optimized IMDCT transform
AC3: 2.0 (stereo) 48000 Hz 192.0 kbit/s
Using MMX optimized resampler
AUDIO: srate=48000 chans=2 bps=2 sfmt=0x10 ratio: 24000->192000
libavcodec: CPU flags: mmx mmxext 3dnow
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [crop=720:418:-1:-1]
Crop: 720 x 418, -1 ; -1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x418 fourcc=58564944 [DIVX])
Detected video codec: [mpeg12] drv:1 (MPEG 1 or 2)
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 bps=24000 sample=1)
Writing AVI header...
Pos: 22.0s 550f (11%) 12fps Trem: 5min 17mb A-V:0.001 [567:192]]
Writing AVI index...
Fixup AVI header...
Video stream: 567.399 kbit/s (70924 bps) size: 1560346 bytes 22.000 secs 550 frames
Audio stream: 192.000 kbit/s (24000 bps) size: 540000 bytes 22.500 secs
More information about the MPlayer-users
mailing list