Codify video with ffmpeg

To recodify a video with a different codec you can use ffmpeg with the following sintaxis:

ffmpeg -i inputfile -c:v  -c:a  outputfile

Where and are the codecs for video and audio channel to codify the intpu file.

To see all the available codecs write:

ffmpeg -formats

For example to recodify a video into h.264 for video channel and mp3 for audio:

ffmpeg -i input.AVI -c:v h264 -c:a mp3 output.mp4

To codify in mov:

ffmpeg -i input.AVI -acodec aac -ac 1 -ar 44100 -ab 64k -strict -2 -vcodec libx264 output.mov
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s