mirror of
https://github.com/levogevo/ffmpeg-builder.git
synced 2026-01-15 19:06:17 +00:00
two small fixes for encode
This commit is contained in:
@@ -22,7 +22,11 @@ set_audio_params() {
|
|||||||
videoLang="$(get_stream_lang "${file}" 'v:0')" || return 1
|
videoLang="$(get_stream_lang "${file}" 'v:0')" || return 1
|
||||||
for stream in $(get_num_streams "${file}" 'a'); do
|
for stream in $(get_num_streams "${file}" 'a'); do
|
||||||
local numChannels codec lang
|
local numChannels codec lang
|
||||||
numChannels="$(get_num_audio_channels "${file}" "a:${stream}")" || return 1
|
numChannels="$(get_num_audio_channels "${file}" "${stream}")" || return 1
|
||||||
|
if [[ ${numChannels} == '' ]]; then
|
||||||
|
echo_fail "could not obtain channel count for stream ${stream}"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
local channelBitrate=$((numChannels * 64))
|
local channelBitrate=$((numChannels * 64))
|
||||||
codec="$(get_stream_codec "${file}" "${stream}")" || return 1
|
codec="$(get_stream_codec "${file}" "${stream}")" || return 1
|
||||||
lang="$(get_stream_lang "${file}" "${stream}")" || return 1
|
lang="$(get_stream_lang "${file}" "${stream}")" || return 1
|
||||||
@@ -429,8 +433,8 @@ gen_encode_script() {
|
|||||||
if [[ ${FILE_EXT} == 'mkv' ]]; then
|
if [[ ${FILE_EXT} == 'mkv' ]]; then
|
||||||
{
|
{
|
||||||
echo
|
echo
|
||||||
echo "mkvpropedit \"${OUTPUT}\" --add-track-statistics-tags"
|
echo 'mkvpropedit "${OUTPUT}" --add-track-statistics-tags'
|
||||||
echo "mkvpropedit \"${OUTPUT}\" --edit info --set \"title=\""
|
echo 'mkvpropedit "${OUTPUT}" --edit info --set "title="'
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user