Skip to content

Instantly share code, notes, and snippets.

@xdannyrobertsx
Created January 15, 2022 20:44
Show Gist options
  • Select an option

  • Save xdannyrobertsx/a47026984039ed673aa99a9c75be1676 to your computer and use it in GitHub Desktop.

Select an option

Save xdannyrobertsx/a47026984039ed673aa99a9c75be1676 to your computer and use it in GitHub Desktop.
uses bash to create .mkv videos for youtube from audio files and album cover
#!/bin/bash
for name in *.wav; do
ffmpeg -loop 1 -framerate 2 -i cover.jpg -i "$name" -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p "${name%.*}.mkv"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment