Desired behaviour is to set handbrakes audio encoding options based on whether BD_LPCM of not (BD_LPCM) not able to be passed through in the handbrakes filter. Issue is with this logic here:
if [[ ! -z $bdlpcm_track_list ]]; then
audio_options="-a $selected_audio_track -E flac24 --mixdown 5point1"
else
audio_options="-a $selected_audio_track -E copy --audio-copy-mask dtshd,truehd,dts,flac"
fi
This is essentially saying that if the $bdlpcm_track_list array has content choose the flac encoding line. The problem becomes if both bdlpcm_track_list has content and so does $dtshd_track_list flac will be chosen and not pass thru.
Solution would be to look at the chosen audio from:
Desired behaviour is to set handbrakes audio encoding options based on whether BD_LPCM of not (BD_LPCM) not able to be passed through in the handbrakes filter. Issue is with this logic here:
This is essentially saying that if the
$bdlpcm_track_list
array has content choose the flac encoding line. The problem becomes if bothbdlpcm_track_list
has content and so does$dtshd_track_list
flac will be chosen and not pass thru.Solution would be to look at the chosen audio from:
And potentially alter test to look at one of these options?