batch.php
<?
$filess = `find goshen-2009Dec-dimani-640x480 | grep ".mp4$"`;
$filesc = chop ($filess);
$filesa = explode ("\n", $filesc);
print_r ($filesa);
foreach ($filesa as $file) {
$newfile = "goshen-2009Dec-dimani-320x240".str_replace
("goshen-2009Dec-dimani-640x480", "", $file);
$newfile = str_replace (".640x480.mp4", "-320x240.mp4", $newfile);
$cmd = "echo n | ffmpeg -threads 4 -i $file -r 25 -s 320x240 -vol
2048 -ar 22050 -ab 32k $newfile";
echo $cmd."\n";
`$cmd`;
}
?>
sorry if it looks like a hack. i edit it many times a day depending on
what i'm doing.
http://www.discoveries08.org/schedule/ - Know the future from Bible prophecy
Winelfred G. Pasamba
Adventist University of the Philippines Online Information Systems
On Fri, Jan 8, 2010 at 5:22 PM, eric pareja <[email protected]> wrote:
> where's the script? open source it. ;)
>
> On Fri, Jan 8, 2010 at 4:45 PM, Winelfred G. Pasamba
> <[email protected]> wrote:
>>> i have approximately 130GB or two weeks of MP4 video recorded daily
>> from 4am to 9:30pm this holiday break. the resolution is 640x480.
>> (from up in the aurora province mountains where the generator runs
>> only 4 hours a day, powering the cdrking HD camera with a cdrking 5v
>> usb car charger connected to 3SM car battery {which i carry every
>> other day 20 mins uphill to charge in the van, then back down}).
>>
>> made a php script to convert them all to 320x240 which will run in two
>> machines both 2.5ghz core2quad with 8gb sharing the data using sshfs
>> over a gigabit lan.
>
> --
> eric pareja ([email protected]) LPIC-2 | PGP/GPG Key 0xB82E42D9
> Coordinator for Technology / Senior Linux Trainer
> National Telehealth Center, University of the Philippines Manila
> International Open Source Network - ASEAN+3
> "Ang mundo ay aklat, at iisang pahina lamang ang nababasa ng hindi
> naglalakbay." - San Agustin
> わかよたれぞ つねならむ
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph