Quote:
Originally Posted by SmokeyTheBear
if you want to do every flv in a directory at once try this
<?php
foreach (glob("*.flv") as $filename) {
echo exec("/usr/local/bin/ffmpeg -i /home/account/public_html/video/$filename -an -ss 1 -t 00:00:01 -r 1 -y -s qcif -f mjpeg /home/account/public_html/snapshot/$filename.jpg");
}
?>
drop the php file in the folder with the flv's
p.s. change the paths to your paths of course
|
he wants it to do it via the flash player, that will do a directory.
plus you could do it easier via a shell script
Code:
for i in *.flv; do ffmpeg -an -y -t 00:00:01 -i "$i" -f image2 "`echo $i |sed 's/.flv$/.jpg/'`" ;done