ffmpeg : mux_cover mka actually has the same format.

This commit is contained in:
Dmitry Voronin 2023-12-04 13:46:41 +03:00
parent b7d4c77088
commit c23c2ee8c3

View file

@ -25,11 +25,11 @@ ffmpeg_mux_cover()
mkdir out
case "${format}" in
"mka"|"mkv")
for file in *.${format}; do
ffmpeg -i "${file}" -attach "${cover}" -map 0 -c copy -metadata:s:t mimetype="image/${cover##*.}" -metadata:s:t:0 filename="cover.${cover##*.}" "./out/${file}" || return 1
done
;;
# "mka"|"mkv")
# for file in *.${format}; do
# ffmpeg -i "${file}" -attach "${cover}" -map 0 -c copy -metadata:s:t mimetype="image/${cover##*.}" -metadata:s:t:0 filename="cover.${cover##*.}" "./out/${file}" || return 1
# done
# ;;
*)
for file in *.${format}; do
ffmpeg -i "${file}" -i "${cover}" -map 0 -map 0:-v? -map 1 -codec copy -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" -disposition:v attached_pic ./out/"${file}" || return 1