Add cover.jpg and specify opus as format

This commit is contained in:
RealStickman 2022-07-03 18:02:41 +02:00
parent 4bacc0f340
commit 6f5c963886

View File

@ -101,7 +101,7 @@ for flac in "${flacfiles[@]}"; do
# convert to opus in transcode directory
# TODO include cover picture (prefer file picture, cover.jpg second preference)
ffmpeg -nostdin -i "$flac" -b:a 384k "${pathname}/transcode/$opusfile" &
ffmpeg -nostdin -i "$flac" -i cover.jpg -c:a libopus -b:a 384k "${pathname}/transcode/$opusfile" &
#done < flacfiles
done
@ -168,7 +168,7 @@ for mp3 in "${mp3files[@]}"; do
# convert to opus in transcode directory
# TODO include cover picture (prefer file picture, cover.jpg second preference)
ffmpeg -nostdin -i "$mp3" -b:a 192k "${pathname}/transcode/$opusfile" &
ffmpeg -nostdin -i "$mp3" -i cover.jpg -c:a libopus -b:a 192k "${pathname}/transcode/$opusfile" &
#done < mp3files
done
@ -235,7 +235,7 @@ for wav in "${wavfiles[@]}"; do
# convert to opus in transcode directory
# TODO include cover picture (prefer file picture, cover.jpg second preference)
ffmpeg -nostdin -i "$wav" -b:a 384k "${pathname}/transcode/$opusfile" &
ffmpeg -nostdin -i "$wav" -i cover.jpg -c:a libopus -b:a 384k "${pathname}/transcode/$opusfile" &
#done < wavfiles
done