Skip to content

Instantly share code, notes, and snippets.

@jangid
Created February 24, 2015 05:58
Show Gist options
  • Save jangid/c700857a30bca51edcd5 to your computer and use it in GitHub Desktop.
Save jangid/c700857a30bca51edcd5 to your computer and use it in GitHub Desktop.
ffmpeg options I learned
1. To convert *.MOV file to *.MP4 i.e. changing the container format keeping the video encoding same and changing audio to aac
For single file
ffmpeg -i file.MOV -vcodec copy -acodec aac -strict experimental -b:a 256k file.MP4
For multiple files
for i in *.MOV ; do ffmpeg -i $i -vcodec copy -acodec aac -strict experimental -b:a 256k ${i%.MOV}.MP4; done
@jangid
Copy link
Author

jangid commented Feb 24, 2015

First commit

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