Skip to content

Instantly share code, notes, and snippets.

@psenough
Last active January 15, 2019 15:02
Show Gist options
  • Save psenough/25c2f54b2eadca5a79174e83b4d6e659 to your computer and use it in GitHub Desktop.
Save psenough/25c2f54b2eadca5a79174e83b4d6e659 to your computer and use it in GitHub Desktop.
batch script to use ffmpeg to concat all mp3s in the directory and create a video using 00_1425.jpg single frame image as visuals
(for %%i in (*.mp3) do @echo file '%%i') > temp_list.txt
ffmpeg -f concat -i temp_list.txt -c copy temp_audio.wav
del temp_list.txt
ffmpeg -loop 1 -i 00_1425.jpg -i temp_audio.wav -shortest -vf scale=-2:480 video.mp4
del temp_audio.wav
node "C:\Users\Filipe Cruz\Documents\tracklist_from_directory_with_mp3s\app.js" "%cd%\\" >> temp_tracklist.txt
pause
@psenough
Copy link
Author

add tracklist generation script call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment