Panopticon
06-03-2016, 01:42 PM
So I have this game which is fine to upload, but the files are in mp3 and mp4 (two versions) and I've tried for over an hour to find a way to convert them (all at once) into seperate videos of course (with a still image) to no avail.

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.

nx666
06-04-2016, 03:02 AM
I'm using ffmpeg (https://ffmpeg.org) and the following batch file for this purpose:

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 1280x720 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

Panopticon
06-04-2016, 09:45 AM
Thank you very much, I'll check it out asap :)

Edit: Worked like a charm!