This project has moved. For the latest updates, please go here.

Optimized Audio Conversion Help

Dec 28, 2015 at 6:51 PM
I am trying to write optimized audio conversions for my files in MCEBuddy.

My goal is a MP4 output file with 1 H.264 video stream and 2 audio streams, the first is 2 channel AAC and the second is 6 channel AC3.

I've successfully accomplished this by editing the audio parameters of the handbrake [MP4 High Quality] profile as follows:

handbrake-audio=-E faac,ffac3 -R auto -B 384
handbrake-audioac3=-E faac,copy:ac3

However, when I have tried to edit the mencoder and ffmpeg audio profiles, I get an error in MCEBuddy and it skips to the handbrake one that works.

Can some one look at my latest mencoder and ffmpeg audio profiles, I am going to try them tonight as I did some editing today Can anyone let me know what I am doing wrong? Here are my latest:

mencoder-audio=-oac faac -faacopts br=192:mpeg=4:tns:object=2 -channels 2 -oac lavc -lavcopts acodec=ac3:abitrate=192 -channels 6
mencoder-audioac3=-oac faac -faacopts br=384:mpeg=4:tns:object=2 -channels 2 -oac copy

ffmpeg-audio=-map 0:a -c:a -acodec libfdk_aac -ab 192k -ac 2 -c:a -acodec ac3 -ab 192k -ac 6
ffmpeg-audioac3=-map 0:a -c:a -acodec libfdk_aac -ab 384k -ac 2 -c:a copy
Dec 28, 2015 at 8:16 PM
You should probably also include a link to your logs showing the error

Jan 2, 2016 at 8:36 PM
Edited Jan 2, 2016 at 8:37 PM
Link to last 4 logs:

My modified MP4/AC3/AAC profile is skipping FFMPEG because it is saying "libfdk_aac: Invalid argument". But the same exact command works fine when using the MP4 HQ profile?

It did complete the conversions using MENCODER but the audio was not how I wanted (2-ch AAC, 6-ch AC3). Instead all for conversions had 4 different results! 1 had 5-ch AC3 only, 1 had 6-ch AAC only, 1 had 10-ch AAC only and another had 12-ch AAC only! Weird, and none of them had 2 audio tracks, just the one.

I wish FFMPEG and MENCODER had better wiki's like HANDBRAKE.
Jan 5, 2016 at 4:39 PM
Could it be this in incorrect:

-map 0:0 -sn -map 0:a

Jan 10, 2016 at 12:59 AM
I am close (67%)!

Summary: I want an mp4 file with stream 1: H.264 video, stream 2: 2-ch AAC audio, stream 3: 6-ch AC3 audio. I am modifying the default MP4 High Quality profile.

Got handbrake working with:
handbrake-audio=-E faac,ffac3 -R auto -B 384
handbrake-audioac3=-E faac,copy:ac3
Got ffmpeg working with:
ffmpeg-audio=-map 0:1 -map 0:1 -c:a:0 libfdk_aac -ab 192k -ac 2 -c:a:1 ac3 -ab 192k
ffmpeg-audioac3=-map 0:1 -map 0:1 -c:a:0 libfdk_aac -ab 384k -ac 2 -c:a:1 copy
Still can't get mencoder to do it. Latest attempt:
mencoder-audio=-oac faac -faacopts br=192:mpeg=4:tns:object=2,-oac lavc -lavcopts acodec=ac3:abitrate=192
mencoder-audioac3=-oac faac -faacopts br=384:mpeg=4:tns:object=2,-oac copy