From a42ee24aba3c4415742abecfe49fa91be128cfef Mon Sep 17 00:00:00 2001 From: Luke Tidd Date: Sat, 20 May 2023 11:52:07 -0400 Subject: [PATCH] dont use original comments or pictures from flac -> opus --- encode_all | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/encode_all b/encode_all index 3057825..8ec85ff 100755 --- a/encode_all +++ b/encode_all @@ -1,6 +1,7 @@ #!/bin/bash # encode_all encodes the whole library into specified format # +ulimit -n "$(ulimit -Hn)" . env_parallel.bash src_library="${HOME}/flac" @@ -43,12 +44,12 @@ function encode() { [[ -d "$final_dir" ]] || mkdir -p "$final_dir" if [[ -n "${tags[DISK]}" ]]; then - err="$(opusenc --quiet \ + err="$(opusenc --quiet --discard-comments --discard-pictures \ --title "${tags[TITLE]}" --artist "${tags[ARTIST]}" \ --album "${tags[ALBUM]}" --tracknumber "${tags[TRACKNUMBER]}" \ --date "${tags[DATE]}" --comment "DISK=${tags[DISK]}" "$file" "$final_opus" 2>&1)" else - err="$(opusenc --quiet \ + err="$(opusenc --quiet --discard-comments --discard-pictures \ --title "${tags[TITLE]}" --artist "${tags[ARTIST]}" \ --album "${tags[ALBUM]}" --tracknumber "${tags[TRACKNUMBER]}" \ --date "${tags[DATE]}" "$file" "$final_opus" 2>&1)"