bugfix for files not containing audios
This commit is contained in:
parent
da4483fd12
commit
43271c64a8
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ for file in **/*.@($extension); do
|
||||||
# array over the bitrates of all streams
|
# array over the bitrates of all streams
|
||||||
readarray -t bitrates <<<"$(ffprobe -v error -select_streams a -show_entries stream=bit_rate -of compact=p=0:nk=1 "$file")"
|
readarray -t bitrates <<<"$(ffprobe -v error -select_streams a -show_entries stream=bit_rate -of compact=p=0:nk=1 "$file")"
|
||||||
|
|
||||||
|
if [[ ${#channels} == 0 ]]; then continue; fi
|
||||||
|
|
||||||
# set a channel dependend bitrate for every audio stream
|
# set a channel dependend bitrate for every audio stream
|
||||||
# to use ffmpegs default just comment out this block
|
# to use ffmpegs default just comment out this block
|
||||||
for ((index=0; index<${#channels[@]};index++)); do
|
for ((index=0; index<${#channels[@]};index++)); do
|
||||||
|
|
Loading…
Reference in a new issue