This project has moved and is read-only. For the latest updates, please go here.

Help with custom Profile - split one audio track into 2 audio tracks

Feb 5, 2015 at 6:40 PM
Edited Feb 5, 2015 at 9:31 PM
I was hoping someone could help with a custom profile for the following. I have many mkv files that only have 5.1 AC3 audio and I would like to extract that audio file and convert it to AAC stereo at 160k and then remux it with both audio files. If anyone can help I would greatly appreciate it.

Feb 5, 2015 at 9:16 PM
Edited Feb 5, 2015 at 10:21 PM
This should work:
[MKV Custom]
Description=Video pass through with one audio stereo audio AAC and second audio pass through.
ffmpeg-general=-threads 0
ffmpeg-video=-ss 3 -vcodec copy -map 0:v -sn
ffmpeg-audio=-c:a:0 libfdk_aac -b:a:0 160k -c:a:1 copy -cutoff 18000 -map 0:a:0 -map 0:a:0 -ac 2
ffmpeg-audioac3=-c:a:0 libfdk_aac -b:a:0 160k -c:a:1 copy -cutoff 18000 -map 0:a:0 -map 0:a:0 -ac 2
Marked as answer by rboy1 on 2/5/2015 at 1:36 PM
Feb 5, 2015 at 10:00 PM
Edited Feb 5, 2015 at 10:00 PM
Thanks you for your help, I just ran this and it looks like the AAC file is 6 channels. What would need to be changed to make it 2 channels.

Feb 5, 2015 at 10:21 PM
Whoops missed that, fixed it above
Feb 6, 2015 at 3:00 AM
Everything works great but the audio for the AAC stereo file is considerably quieter, would you know of any way to increase the gain or volume?

Feb 6, 2015 at 4:03 AM
Edited Feb 6, 2015 at 4:32 AM
I changed from AAC to AC3 and the audio volume is now the same but unfortunately AC3 is only passthrough with my Roku 3 and my TV won't pass the sound to my sound bar. The whole purpose of doing this was to be able to use directplay on my Roku 3 when streaming through Plex.
Feb 6, 2015 at 4:31 AM
Refer to ffmpeg commands, use the volume command