There’s no way I’m doing this one by one, and there’s gotta be some way be it in Sony Vegas or something. Since I’ve seen music rips out there with 100+ "videos" / tracks.
create_avi_batch.bat
FOR %%i IN (.\_input\*.mp3) DO .\bin\ffmpeg -loop 1 -r 2 -i image.png -i ".\_input\%%~ni.mp3" -vf scale=1280:720 -c:v libx264 -preset slow -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p -threads 0 "%%~ni.avi"
pause
You then need to create this folder structure:
_input
bin
create_avi_batch.bat
image.png
"_input" is the the folder that contains all your mp3 files
"bin" put ffmpeg.exe in this folder
"create_avi_batch.bat" the batch file from above
"image.png" the image that you want to use for your videos
Starting the batch script will create one avi file for every mp3 in the "_input" folder.
Some notes:
– This works for me with mp3 files and 1280×720 png images. Pictures of a different size should work, but other audio encoders require changes to the script.
– The ffmpeg version I’m using is N-79075-ga7b8a6e
Edit: Worked like a charm!