2012-02-22 13:26:09

Abel Gancsos
use ffmpeg to convert videos

OGG/Theora

ffmpeg -i input.mov \
-acodec libvorbis -ac 2 -ab 96k -ar 44100 \
-b 345k -s 640x360 output.ogv

WebM/vp8

ffmpeg -i input.mov \
-acodec libvorbis -ac 2 -ab 96k -ar 44100 \
-b 345k -s 640x360 output.webm

MP4/h264

ffmpeg -i input.mov \
-acodec libfaac -ab 96k \
-vcodec libx264 -vpre slower -vpre main \
-level 21 -refs 2 -b 345k -bt 345k \
-threads 0 -s 640x360 output.mp4





TIP: REPLACE [] WITH STANDARD HYPERTEXT PROTOCOL.
TIP: REPLACE WHATEVER IS BETWEEN THE [] WITH YOUR INFORMATION.



Hope that helps!