Advertisement
Guest User

Untitled

a guest
Oct 20th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.96 KB | None | 0 0
  1. ::ffmpeg_ez_3.0.bat
  2. ::This script takes a folder of mp3s and converts them into videos for youtube using album artwork
  3.  
  4. ::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.
  5.  
  6. ::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.
  7.  
  8. ::This makes a folder if it's not already there
  9. mkdir videos
  10.  
  11. ::One thiccc assed loop to do all the shit
  12. for %%a in ("*.mp3") do (
  13.  
  14.     ::This extracts the cover from the tagged mp3
  15.     ffmpeg -i "%%a" -an -vcodec copy cover.jpg
  16.    
  17.     ::This makes the video
  18.     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"
  19.    
  20.     ::This cleans up the cover file
  21.     del cover.jpg
  22. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement