From 72496aae5f9c9c9f4af28caf719a27da702a5cc3 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 3 Jul 2022 18:35:23 +0200 Subject: [PATCH] Fix cover.jpg path --- arch-config/scripts/pieces/music-multi-ffmpeg.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch-config/scripts/pieces/music-multi-ffmpeg.sh b/arch-config/scripts/pieces/music-multi-ffmpeg.sh index e880b358..1d36ac1d 100755 --- a/arch-config/scripts/pieces/music-multi-ffmpeg.sh +++ b/arch-config/scripts/pieces/music-multi-ffmpeg.sh @@ -77,7 +77,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" -i cover.jpg -c:a libopus -b:a 384k "${pathname}/transcode/$opusfile" & + ffmpeg -nostdin -i "$flac" -i "${pathname}/cover.jpg" -c:a libopus -b:a 384k "${pathname}/transcode/$opusfile" & done # wait for previous jobs to finish @@ -134,7 +134,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" -i cover.jpg -c:a libopus -b:a 192k "${pathname}/transcode/$opusfile" & + ffmpeg -nostdin -i "$mp3" -i "${pathname}/cover.jpg" -c:a libopus -b:a 192k "${pathname}/transcode/$opusfile" & done # wait for previous jobs to finish @@ -191,7 +191,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" -i cover.jpg -c:a libopus -b:a 384k "${pathname}/transcode/$opusfile" & + ffmpeg -nostdin -i "$wav" -i "${pathname}/cover.jpg" -c:a libopus -b:a 384k "${pathname}/transcode/$opusfile" & done # wait for previous jobs to finish