Friday, January 01, 2010

Embedding flash player setup wizard

Embedding flash player setup wizard

HOWTO: Easily enable MP3, MPEG4, AAC, and other restricted encoding in FFmpeg

Batch Convert mov files to flv files

adopted from here Using FFMpeg to Convert mpg or mov to flv

I am using the code mentioned in the article to batch convert the mov files I took with my HD Camcorder to flv for streaming it online.

Here is the modified code to suit my needs:

if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && strpos($file, "MOV") !== false) {
$new_filename = str_replace(" ", "_", strtolower(str_replace("MOV", "flv", $file)));
$file = str_replace(" ", "\ ", $file);
exec("ffmpeg -i $file -s 640x360 -deinterlace -ar 44100 -r 25 -qmin 3 -qmax 8 $new_filename");

I change the display ratio to half of the 720P.