FLVDump
From xbe wiki
This script tries to convert FLV to AVI (if local) or dump the flv stream to disk (flv file url needs to be given). Besides, every internet video stream should be dumpable..
First step is to save the flv file to disk and then call the script with the created flv file to convert it to avi. So it can stream it to disk and then convert it to avi.
<?php
set_time_limit(0);
$file = $argv[1];
if(strpos($file, "://")) {
// url mode
echo "DUMPING INTERNET STREAM......\n------------------------\n";
$cmd = "mplayer -dumpstream \"".$file."\" -dumpfile streamdump.out";
}else{
echo "LOCAL FILE TO AVI......\n------------------------\n";
$cmd = "mencoder \"".$file."\" -ovc lavc -oac lavc -o strumdump.out";
}
shell_exec($cmd);
?>