Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::ffmpeg_ez_3.0.bat
- ::This script takes a folder of mp3s and converts them into videos for youtube using album artwork
- ::To use this script just copy it into a compiled album folder (that is tagged with all the artwork) with ffmpeg.exe (https://www.ffmpeg.org/) and then run it. Don't have to do nothing else.
- ::Sorry I'm such a brainlet and didn't think of using the mp3tags before. Also sorry I'm such a brainlet who doesn't know windows batch scripting (but then again who does?) . Just sorry in general.
- ::This makes a folder if it's not already there
- mkdir videos
- ::One thiccc assed loop to do all the shit
- for %%a in ("*.mp3") do (
- ::This extracts the cover from the tagged mp3
- ffmpeg -i "%%a" -an -vcodec copy cover.jpg
- ::This makes the video
- ffmpeg -loop 1 -i "cover.jpg" -i "%%a" -c:v libx264 -tune stillimage -vf scale=-2:720 -acodec copy -pix_fmt yuv420p -shortest "videos\%%~na.mkv"
- ::This cleans up the cover file
- del cover.jpg
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement