diff --git a/to_opus.sh b/to_opus.sh index a8de54c..3a25ef5 100644 --- a/to_opus.sh +++ b/to_opus.sh @@ -32,7 +32,7 @@ for file in **/*.@($extension); do awk -v file="$file" -v file_output="${file%.*}.opus" ' BEGIN{ ORS=" "; - print "ffmpeg -threads 4 -i \""file"\" -map 0:a -c:a libopus" + print "ffmpeg -i \""file"\" -map 0:a -c:a libopus" } { # https://wiki.xiph.org/Opus_Recommended_Settings if($1==1) print $2>=64000 ? "-b:a:"NR-1" 128k" : "-b:a:"NR-1" "$2 @@ -45,12 +45,12 @@ for file in **/*.@($extension); do }') - is_video=$(ffprobe "$file" -v 0 -show_entries stream=codec_type -of compact=p=0:nk=1:s="\ " | grep video) - if [[ -n "$is_video" ]]; then + #is_video=$(ffprobe "$file" -v 0 -show_entries stream=codec_type -of compact=p=0:nk=1:s="\ " | grep video) + #if [[ -n "$is_video" ]]; then eval "$command" - else + #else #eval "$command" && rm "$file" - fi + #fi done