Skip to content

Instantly share code, notes, and snippets.

@icecreammatt
Created May 19, 2015 06:28
Show Gist options
  • Save icecreammatt/0b9b96c2a5416cf401a7 to your computer and use it in GitHub Desktop.
Save icecreammatt/0b9b96c2a5416cf401a7 to your computer and use it in GitHub Desktop.
ffmpeg mpeg to h264 conversion
#!/bin/bash
# For each .mp4 file convert and rename to .mov
for x in *.mp4; do
ffmpeg -i $x -c:v libx264 -acodec aac -ab 192k -strict -2 -ac 2 -qp 0 ${x/.mp4/.mov};
done
@icecreammatt
Copy link
Author

The files this script ran on were incorrectly named .mp4 instead of mpeg2 which is why its is .mp4 to .mov

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