Add cover.jpg and specify opus as format
This commit is contained in:
parent
02204f990d
commit
149c17b198
@ -101,7 +101,7 @@ for flac in "${flacfiles[@]}"; do
|
|||||||
|
|
||||||
# convert to opus in transcode directory
|
# convert to opus in transcode directory
|
||||||
# TODO include cover picture (prefer file picture, cover.jpg second preference)
|
# 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 < flacfiles
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ for mp3 in "${mp3files[@]}"; do
|
|||||||
|
|
||||||
# convert to opus in transcode directory
|
# convert to opus in transcode directory
|
||||||
# TODO include cover picture (prefer file picture, cover.jpg second preference)
|
# 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 < mp3files
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ for wav in "${wavfiles[@]}"; do
|
|||||||
|
|
||||||
# convert to opus in transcode directory
|
# convert to opus in transcode directory
|
||||||
# TODO include cover picture (prefer file picture, cover.jpg second preference)
|
# 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 < wavfiles
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user