The way I can obtain ac3 audio with mencoder/mplayer is:
1 - Create a frameno.avi:
Code:
Mencoder -quiet -aid 1 -a52drc 1 -ac a52, -af format=2:float,resample=48000:0:2,channels=6:6:0:0:1:2:2:3:3:4:4:1:5:5,volume=6,delay=100:100:100:100:100:100 -channels 6 -srate 48000 -noskip -ovc frameno -oac lavc -lavcopts acodec=ac3:abitrate=384 "My.vob" -o "MyFrameno.avi
-aid: Number of audio stream. It changes related to source. This one can to be avi, vob or whatelse mencoder can manage. See docs, please.
-a52drc: Dynamic range compression level. Between 0 and 1.
,channels: As you can see, it switchs 1 to 2, 2 to 3, 3 to 4 and 4 to 1 channels. I did need that change as later, managed soundstretch with BeSweet, and in this way I obtained the correct output. I think that you don't need to switch channels for a straight test, BUT CHECK IT.
volume: in db. I think 6, duplicates volumen, as I read something about from Kwag a time ago. It can take values between -200 and 60.
delay: You need to add it for each individual channel. (I don't remember if this option works fine)
2 - Extact audio from frameno.avi:
Code:
MPlayer -quiet -ao null -vo null -benchmark -dumpaudio -dumpfile "My.ac3" "MyFrameno.avi"
Well, it is all I can say you about this thread. I don't know if from when I investigate this until now, there is any change. I hope you can test it.
It is interesting that you can manage dynamic compression and volume, isn't it.
Really it is not so tricky if you do a batch file.
Something about delay. Incredible said me once, that dvd2avi delay is related to loss of frames that this program does. But I answer him, if you process a vob straight with BeSweet, it find delay in vob file as you can see in log file. I don't know how manage mencoder that delay or if delay switch is necessary.
BTW @Inc do you foun out something about that natural delay?