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)"