Log in

View Full Version : (me again) good standalone AC3 > ogg script??


DaveQB
3rd January 2005, 14:23
So DVD::rip failed for i ripped it in Windows and demuxed it to a nice pair of .m2v and .ac3 files.

mencoder did a brilliant job on the .m2v but then the audio

oggenc my usual partner when it comes to audio doesnt like ac3 files i find. So..... i tried lame to an mp3 file (not my favourite audio file) but it created gimmerish.

I thought of using mplayer to dump it to disk in PCM, but isnt there a way to go straight from

AC3 > ogg Vorbis ??

Cheers for any sugestions

PS yeah i spent about an hour on google.

thanx again

frodoontop
3rd January 2005, 14:44
As far as I know there is no straight way. Normally I do the audio like this:

mplayer video.vob -dumpaudio -dumpfile audio.ac3
a52dec -o wav audio.ac3 >> audio.wav
oggenc -q2 audio.wav
vorbisgain audio.ogg (this one isn't necessary, it just normalizes the audio)

DaveQB
3rd January 2005, 15:26
hmmm okee, as suspected.

I wonder how DVD::rip does it ??

i thought of a PCM dump with mplayer, no??
whats a52dec ??

I believe i have that along with ac3dec

mikeX
3rd January 2005, 19:32
DVD::rip is a frontend to transcode, it doesn't use mencoder...
Although I haven't tried it, something like this ought to work with transcode:

transcode -i "your_audio_file" -y null,ogg -m "your_desired_ogg_file" -b 0,1,"your_oggenc_quality"

Optionally you can use -s "value" to increase the volume and -E "value_in_Hz" to resample.

DaveQB
3rd January 2005, 22:41
Bingo! :cool:

Well done mikeX

Appreciate the help :)

six6
30th January 2005, 07:24
I know this thread is a bit old, but I wanted to talk abit about some of the methods mentioned


@DaveQB
a52dec is from here. (http://liba52.sourceforge.net/) It's also available in debian (at least in unstable) as liba52-0.7.4-dev.

@frodoontop
Normalizing via vorbisgain is sometimes not respected by players. You could normalize it @ the wav file stage.
Lastly, it's a picky point, but I don't think you need ">>" but instead ">" in your cmd. At worst, ">" overwrites, and at worst ">>" would concatenate. Therefore, you either overwrote an original audio.wav file but gained a new audio.wav file, or appended audio.wav with new wav data (and thus will have to repeat the a52dec command, since a player will stop after the first wav data ends, and won't play what you concatenated).

shevegen
31st January 2005, 17:30
ya the threads are all a bit old here :)

frodoontop
1st February 2005, 14:00
Well vorbisgain is supported with mplayer in linux and via corevorbis in windows, so it is good enough for me.

About the > and the >> I already discovered the difference :)