Skip to content

Instantly share code, notes, and snippets.

@timakin
Last active November 15, 2017 15:07
Show Gist options
  • Save timakin/dc682f7130c357c0795fc0d952e08a45 to your computer and use it in GitHub Desktop.
Save timakin/dc682f7130c357c0795fc0d952e08a45 to your computer and use it in GitHub Desktop.
files="./*.mp4"
for filepath in $files; do
fname_ext="${filepath##*/}"
fname="${fname_ext%.*}"
echo $fname
ffmpeg -i "${fname}.mp4" -vcodec h264 -acodec aac "${fname}_comp.mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment