I can convert a video to MP3 using FFmpeg with the following:
ffmpeg -i input -vol %volume% -y -acodec libmp3lame -ab %quality%k output
I have a static image file cover.jpg.
I want to use cover.jpg as album art with the converted audio which can be done by another command:
ffmpeg -i input.mp3 -i cover.jpg -map_metadata 0 -map 0 -map 1 output.mp3
But instead of using two commands, I need to use one command to convert the video to MP3 and embed the cover.jpg as album art.
How can I do this? Perhaps there is a way to do this by libmp3lame
option?
I am lifting my hairs with this, please help.
Thank You.