[MPlayer-users] dvd audio encoding issue -- causing Too many audio buffer -- a possible solution

Mudit Wahal mwahal at yahoo.com
Fri Oct 7 19:16:35 CEST 2005


An update to the issue.

I used DVD Shrink to just backup the VTS_01 (title 1) and only keep the AC3 sound (it did show
both 2.0 and 5.1). When I play the vob in the Power DVD player, it shows me its AC 5.1 from the
first screen shot.

But when I play it in mplayer, it "samples" it as AC 2.0 and allocates buffers based on that. So,
no wonder, it runs out of audio buffer as soon as the 5.1 stream starts.

I've been using mencoder on windows and linux exclusively to convert DVDs and Mpeg2-TS streams to
xvid. This is the first time I've having issues.

Should I resend this to the developers list ?

Thanks

Mudit

--- Mudit Wahal <mwahal at yahoo.com> wrote:

> Hi,
> 
> I'm trying to encode Hitch dvd and after 5 mins of first pass, I get Too many audio buffer
> errors.
> I'm using the sept 28 cvs version. After couple of attempts, I did find the problem with the dvd
> audio encoding. This might have exposed an issue with the mplayer.
> 
> The audio at the beginning of the dvd (first 4 mins or so) is AC3 2.0 (dolby digital 2.0). Then
> after that it switches to AC3 5.1. Thats when mplayer starts giving the Too many audio buffer
> messages.
> 
> My guess is that mplayer may be allocating audio buffers based on the first sample it reads from
> the file. When the audio changed from 2.0 to 5.1, it caused audio buffer overflow.
> 
> I'm running the mpeg (vob) file in power dvd player. I see mpeg rate of .17mbs to .20mbs and DD
> at
> 32kbps. At about 4:05 mins, it switches to the 5.1 (448kbps) and 2-4mbps. Probably thats where
> the
> mplayer chokes.
> 
> Hope this info helps.
> 
> Please let me know if I can anything else from the output.
> 
> Thanks
> 
> Mudit
> 
> MPlayer dev-CVS-050928-16:38-3.4.2 (C) 2000-2005 MPlayer Team
> CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
> Detected cache-line size is 64 bytes
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
> Compiled with runtime CPU detection - WARNING - this is not optimal!
> To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
> 
> ======= my script =========
> mencoder -aid 128  -oac copy -o %2  -ovc xvid -xvidencopts
>
pass=1:bitrate=2000:chroma_me:max_bframes=3:vhq=1:min_iquant=1:max_iquant=31:min_pquant=1:max_pquant=31:min_bquant=1:max_bquant=31:turbo
> %1
> mencoder  -aid 128  -oac copy -o %2  -ovc xvid -xvidencopts
>
pass=2:bitrate=2000:chroma_me:max_bframes=3:vhq=1:min_iquant=1:max_iquant=31:min_pquant=1:max_pquant=31:min_bquant=1:max_bquant=31
> %1
> 
> 
> 		
> __________________________________ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> 
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
> 



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com




More information about the MPlayer-users mailing list