ffmpeg : fix missing streams for cover mux and music metadata.,
This commit is contained in:
parent
3f28585d50
commit
9084647898
|
@ -25,7 +25,7 @@ ffmpeg_mux_cover()
|
||||||
mkdir out
|
mkdir out
|
||||||
|
|
||||||
for file in *.${format}; do
|
for file in *.${format}; do
|
||||||
ffmpeg -i "${file}" -i "${cover}" -map 0:a -map 1 -codec copy -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" -disposition:v attached_pic ./out/"${file}" || return 1
|
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
|
||||||
done
|
done
|
||||||
|
|
||||||
mv out/* .
|
mv out/* .
|
||||||
|
@ -56,7 +56,7 @@ ffmpeg_music_meta()
|
||||||
local title="${file#*_}"; title="${title%.*}"; title="${title//_/ }"
|
local title="${file#*_}"; title="${title%.*}"; title="${title//_/ }"
|
||||||
|
|
||||||
# echo "${artist}; ${album}; ${year}; ${track}; ${title}"
|
# echo "${artist}; ${album}; ${year}; ${track}; ${title}"
|
||||||
ffmpeg -i "${file}" -c copy -metadata "artist=${artist}" -metadata "album_artist=${artist}" -metadata "album=${album}" -metadata "date=${year}" -metadata "year=${year}" -metadata "track=${track}" -metadata "title=${title}" ./out/"${file}" || return 1
|
ffmpeg -i "${file}" -map 0 -c copy -metadata "artist=${artist}" -metadata "album_artist=${artist}" -metadata "album=${album}" -metadata "date=${year}" -metadata "year=${year}" -metadata "track=${track}" -metadata "title=${title}" ./out/"${file}" || return 1
|
||||||
done
|
done
|
||||||
|
|
||||||
mv out/* .
|
mv out/* .
|
||||||
|
|
Reference in a new issue