dont use original comments or pictures from flac -> opus

This commit is contained in:
Luke Tidd 2023-05-20 11:52:07 -04:00
parent fb39957c34
commit a42ee24aba
Signed by: luke
GPG Key ID: 75D6600BEF4E8E8F

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
# encode_all encodes the whole library into specified format # encode_all encodes the whole library into specified format
# #
ulimit -n "$(ulimit -Hn)"
. env_parallel.bash . env_parallel.bash
src_library="${HOME}/flac" src_library="${HOME}/flac"
@ -43,12 +44,12 @@ function encode() {
[[ -d "$final_dir" ]] || mkdir -p "$final_dir" [[ -d "$final_dir" ]] || mkdir -p "$final_dir"
if [[ -n "${tags[DISK]}" ]]; then if [[ -n "${tags[DISK]}" ]]; then
err="$(opusenc --quiet \ err="$(opusenc --quiet --discard-comments --discard-pictures \
--title "${tags[TITLE]}" --artist "${tags[ARTIST]}" \ --title "${tags[TITLE]}" --artist "${tags[ARTIST]}" \
--album "${tags[ALBUM]}" --tracknumber "${tags[TRACKNUMBER]}" \ --album "${tags[ALBUM]}" --tracknumber "${tags[TRACKNUMBER]}" \
--date "${tags[DATE]}" --comment "DISK=${tags[DISK]}" "$file" "$final_opus" 2>&1)" --date "${tags[DATE]}" --comment "DISK=${tags[DISK]}" "$file" "$final_opus" 2>&1)"
else else
err="$(opusenc --quiet \ err="$(opusenc --quiet --discard-comments --discard-pictures \
--title "${tags[TITLE]}" --artist "${tags[ARTIST]}" \ --title "${tags[TITLE]}" --artist "${tags[ARTIST]}" \
--album "${tags[ALBUM]}" --tracknumber "${tags[TRACKNUMBER]}" \ --album "${tags[ALBUM]}" --tracknumber "${tags[TRACKNUMBER]}" \
--date "${tags[DATE]}" "$file" "$final_opus" 2>&1)" --date "${tags[DATE]}" "$file" "$final_opus" 2>&1)"