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

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

Feb 5, 2015 at 5:40 PM
Edited Feb 5, 2015 at 8: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.

Thanks,
-Brandon
Coordinator
Feb 5, 2015 at 8:16 PM
Edited Feb 5, 2015 at 9:21 PM
This should work:
[MKV Custom]
Description=Video pass through with one audio stereo audio AAC and second audio pass through.
order=ffmpeg
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
ffmpeg-ext=.mkv
ffmpeg-audiodelay=skip
PreConversionCommercialRemover=true
ffmpeg-AudioOptimized=true
ffmpeg-VideoOptimized=true
Marked as answer by rboy1 on 2/5/2015 at 1:36 PM
Feb 5, 2015 at 9:00 PM
Edited Feb 5, 2015 at 9: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.

Thanks,
-Brandon
Coordinator
Feb 5, 2015 at 9:21 PM
Whoops missed that, fixed it above
Feb 6, 2015 at 2: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?

Thanks,
-Brandon
Feb 6, 2015 at 3:03 AM
Edited Feb 6, 2015 at 3: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.
Coordinator
Feb 6, 2015 at 3:31 AM
Refer to ffmpeg commands, use the volume command