Skip to content

Instantly share code, notes, and snippets.

@justinpage
Created May 4, 2021 20:18
Show Gist options
  • Select an option

  • Save justinpage/45025a7e2bfa0727ffcebab4fc99b80d to your computer and use it in GitHub Desktop.

Select an option

Save justinpage/45025a7e2bfa0727ffcebab4fc99b80d to your computer and use it in GitHub Desktop.
#!/bin/bash
in=./audio/
out=./video/
image=./flylo.png
for file in `ls $in`
do
ffmpeg -loop 1 -i $image -i $in/$file -c:a copy -c:v libx264 -shortest $out/${file/mp3/mp4}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment