From 4dc0b7f648e8995eadd0301535c52e8d4d9a8dcc Mon Sep 17 00:00:00 2001 From: esche Date: Thu, 18 May 2023 15:18:10 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eto=5Fopus.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- to_opus.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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