Skip to content

Instantly share code, notes, and snippets.

@yuraloginoff
Created October 16, 2022 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuraloginoff/a51cb61d0d3114fddd7fd128de3b9d6b to your computer and use it in GitHub Desktop.
Save yuraloginoff/a51cb61d0d3114fddd7fd128de3b9d6b to your computer and use it in GitHub Desktop.
Make video using many mp3 and single image
foreach ($i in Get-ChildItem .\*.mp3) {echo "file '$i'" >> mylist.txt}
ffmpeg -f concat -safe 0 -i mylist.txt -c copy disk.mp3
ffmpeg -loop 1 -i cover.png -i disk.mp3 -framerate 24 -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest out.mp4
@yuraloginoff
Copy link
Author

foreach ($i in Get-ChildItem .\*.mp3 -name) {ffmpeg -loop 1 -i cover.png -i $i -framerate 24 -c:v libx264 -pix_fmt yuv420p -c:a copy -movflags +faststart -preset ultrafast -tune stillimage -shortest "$i.mp4"}

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