HTML5 video conversion


Convert mp4 into webm
>ffmpeg -i input-file-name.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis ouput-file-name.webm

Convert mp4 into ogv
>ffmpeg -i input-file-name.mp4 -c:v libtheora -c:a libvorbis -q:v 10 -q:a 10 output-file-name.ogv

Create a thumbnail image from video….
>ffmpeg -i input-file-name.mp4 -ss 00:00:12 -f image2 -vframes 1 image-name.jpeg

Convert avi to mp4
>ffmpeg -i input-file-name.avi -acodec libfaac -b:a 128k -vcodec mpeg4 -b:v 1200k -flags +aic+mv4 output-file-name.mp4

Convert mov to mp4
>ffmpeg -i input-file-name.mov -acodec libfaac -b:a 128k -vcodec mpeg4 -b:v 1200k -flags +aic+mv4 output-file-name.mp4

for more info to get images from video. click here.

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 )

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s