Help me do some Linux AC3 encoding

Here’s the situation: I’m using a MythTV system with a Hauppage PVR-350 capture device which creates MPEG-2 files with MP2 audio. I would like to format these files for DVD playback and as such need to transcode the MP2 audio to AC3. Originally I was moving the files to a Windows system and using BeLight (BeSweet) to do this which works fine but I’d like to keep it all on the linux side. I was able to make this work with the mpegdemux, ffmpeg and mplex tools but the volume of the resulting AC3 audio is too low. In BeLight I am able to apply OTA “HybridGain” and Azid “Dynamic Compression” to fix this problem but have been unable to find a way to do this in Linux. Is anyone aware of a solution for boosting AC3 gain in Linux? Please post any help you can give in the comments section of this post or email ben@franske.com

The Linux commands I’m using now are:
ffmpeg -i orig.mpg -ab 256 -ar 48000 -ac 2 -acodec ac3 -y ffmpeg.ac3
mpegdemux -d -s 0xe0 orig.mpg video.m2v
mplex -f 8 -o final_ac3.mpg video.m2v ffmpeg.ac3

Where orig.mpg is the original file with MP2 audio and final_ac3.mpg is the finished video file with AC3 audio.

Thanks for any help! I’ve put a few feelers out on this, If I hear anything useful back I’ll be sure to post.

Comments are closed.