

"C:\ffmpeg\bin\ffmpeg.exe" -i "%%a" -an -y -vcodec copy "E:\songgs\%%~na.jpg" mp3 files ffmpeg -i input.mp3 -an -vcodec copy cover.jpg This is the code for extracting album art from. I want ffmpeg to automatically extract the album art from each audio file and then convert it to video in batch.

This works great except I have to manually put the album art each time.

If not just substitute with the full path to your ffmpeg binary. These examples assume ffmpeg is in your PATH. Older examples may use -vcodec copy -acodec copy which does the same thing. With ffmpeg this can be achieved with -c copy. The main factor is disk read/write speed. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. Converting mkv to mp4 with ffmpeg Essentially just copy the existing video and audio stream as is into a new container, no funny business!
