4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: bgnm2000 on March 09, 2006, 04:05:01 AM
-
I think an awesome mod would be one that can capture the first frame of the video to make a thumbnail, and maybe go the extra step to make it flash. Like on youtube.com
-
its possible, here is a sample
mplayer {inputFilename} -ss 240 -nosound -vo jpeg:outdir={outputPath} -frames 1
then:
convert -sample 100x100 {mplayer's output path}/00000002.jpg
maybe part of that code can be used in the media/avi.html , but an expirienced user than me has to do it. There are much more scripts like this
this link is maybe very usefull for your request: http://vv.carleton.ca/~cat/album/
-
does anyone experienced with making mods or programming think they could give it a shot? I have no idea where to begin lookin at all the code.
-
I think most coders here are making mods cause they need it also for their own gallery,
and this request is might be a little bit too special?
-
Hi Ice,
I Understand what you say, but it is something quite soughtafter and IMHO quite needed.
I Just need to find out where to place the code
ffmpeg -i sourcevideo.mpg -f singlejpeg -t 0.001 outputthumb.jpg
and then 4Images will handle video just as good as Images :-)
If this interests you maybe follow the mod i requested @ http://www.4homepages.de/forum/index.php?topic=12272.0
-
Hi!
May settle how so that the vidoknál also are indices images so as the images?
-
Hi Ice,
I Understand what you say, but it is something quite soughtafter and IMHO quite needed.
I Just need to find out where to place the code
ffmpeg -i sourcevideo.mpg -f singlejpeg -t 0.001 outputthumb.jpg
and then 4Images will handle video just as good as Images :-)
If this interests you maybe follow the mod i requested @ http://www.4homepages.de/forum/index.php?topic=12272.0
put it on your image_utils.php
}
function Generate_VideoThumb($src, $dest) {
global $convert_options;
$command = "/usr/bin/ffmpeg -i ".$src." -f mjpeg -t 0.02 -s 90x90 ".$dest;
echo ($command);
system($command);
return (file_exists($dest)) ? 1 : 0;
}
-
system($command);
Note: Some host disable this command.