Encoding versus Passthru CLI Question

Discussion of the HandBrake command line interface (CLI)
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.
Post Reply
lagman
Posts: 2
Joined: Thu Dec 01, 2011 6:07 pm

Encoding versus Passthru CLI Question

Post by lagman »

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.
Kebast
Posts: 33
Joined: Wed Jul 28, 2010 2:44 pm

Re: Encoding versus Passthru CLI Question

Post by Kebast »

Have you tried the --audio-copy-mask and --audio-failback commands?
Deleted User 11865

Re: Encoding versus Passthru CLI Question

Post by Deleted User 11865 »

Kebast wrote:Have you tried the --audio-copy-mask and --audio-failback commands?
More specifically, you need to use the nightly build (see the announcement at the top of every subforum):

Code: Select all

--aencoder copy --audio-copy-mask ac3,aac --audio-fallback faac
lagman
Posts: 2
Joined: Thu Dec 01, 2011 6:07 pm

Re: Encoding versus Passthru CLI Question

Post by lagman »

fallback.. yes! that works! I've been spinning my wheels on this for two weeks. Thanks!
Post Reply