I'm writing a generic script to transcode my videos so they will play on my Roku. I've been able to get everything working perfectly except audio. I'd like to do something similar to this:
IF source audio format is ac3 or faac
passthru audio
ELSE
transcode to faac
Is this possible via the CLI? I've tried copy:ac3 and that works if the source is ac3 but if it is anything else the audio doesn't get encoded.
Thanks,
Dan
Just an update, I decided to always pass through ac3 on track 1 and always mixdown to faac on track 2. It takes more processing power and results in a larger file if the source has an ac3 track but it does the job.
Encoding versus Passthru CLI Question
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Re: Encoding versus Passthru CLI Question
Have you tried the --audio-copy-mask and --audio-failback commands?
Re: Encoding versus Passthru CLI Question
More specifically, you need to use the nightly build (see the announcement at the top of every subforum):Kebast wrote:Have you tried the --audio-copy-mask and --audio-failback commands?
Code: Select all
--aencoder copy --audio-copy-mask ac3,aac --audio-fallback faac
Re: Encoding versus Passthru CLI Question
fallback.. yes! that works! I've been spinning my wheels on this for two weeks. Thanks!