Batch encode - variable number of audio tracks in the source
Posted: Mon Dec 05, 2011 6:03 am
Hi,
When batch encoding different source material, the individual source files might have multiple audio and subtitle tracks.
using cli:
... -a 1,2,3 -E copy,copy,copy -s 1,2,3,4,5,6,7,8,9,10
Subtitels scan fine. If a subtitle track does not exists a warning is printed and handbrake-cli skips that track but proceeds properly
"Warning: Could not find subtitle track 2, skipped"
However, if there are less audio tracks than specified on the CLI (e.g. -a 1,2,3) but track 3 does not exist and error is thrown and handbrake quits:
"ERROR: Invalid audio input track '3', exiting."
This behaviour was introduced in changeset 1681 (https://trac.handbrake.fr/changeset/1681).
This prevents from batch encoding files while passing through multiple variable audiotracks.
I was wondering about the reason for the changeset 1681. Can it be reversed to allow for the same behaviour as for the subtitles (auto-skip)?
best regards,
Oliver.
When batch encoding different source material, the individual source files might have multiple audio and subtitle tracks.
using cli:
... -a 1,2,3 -E copy,copy,copy -s 1,2,3,4,5,6,7,8,9,10
Subtitels scan fine. If a subtitle track does not exists a warning is printed and handbrake-cli skips that track but proceeds properly
"Warning: Could not find subtitle track 2, skipped"
However, if there are less audio tracks than specified on the CLI (e.g. -a 1,2,3) but track 3 does not exist and error is thrown and handbrake quits:
"ERROR: Invalid audio input track '3', exiting."
This behaviour was introduced in changeset 1681 (https://trac.handbrake.fr/changeset/1681).
This prevents from batch encoding files while passing through multiple variable audiotracks.
I was wondering about the reason for the changeset 1681. Can it be reversed to allow for the same behaviour as for the subtitles (auto-skip)?
best regards,
Oliver.