ffmpeg : music_meta add year.
This commit is contained in:
parent
ed39fa7be9
commit
2db11c20b0
|
@ -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 "track=${track}" -metadata "title=${title}" ./out/"${file}" || return 1
|
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
|
||||||
done
|
done
|
||||||
|
|
||||||
mv out/* .
|
mv out/* .
|
||||||
|
|
Reference in a new issue