Created
May 19, 2015 06:28
-
-
Save icecreammatt/0b9b96c2a5416cf401a7 to your computer and use it in GitHub Desktop.
ffmpeg mpeg to h264 conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The files this script ran on were incorrectly named .mp4 instead of mpeg2 which is why its is .mp4 to .mov