Skip to content

Instantly share code, notes, and snippets.

@outsidecontext
Created March 26, 2020 16:23
Show Gist options
  • Select an option

  • Save outsidecontext/599b622566c22ace5ce78271f4148dd8 to your computer and use it in GitHub Desktop.

Select an option

Save outsidecontext/599b622566c22ace5ce78271f4148dd8 to your computer and use it in GitHub Desktop.
#!/bin/zsh
index=0
for f in *(DN);
do
d=`date +%Y%d%m-%H%M%S`
echo "Converting $f to $d.mp4"
ffmpeg -i $f -vcodec h264 -acodec aac -strict -2 $d.mp4
((++index))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment