4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: bgnm2000 on March 09, 2006, 04:05:01 AM

Title: Video thumbnailer?
Post 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
Title: Re: Video thumbnailer?
Post by: trez on March 09, 2006, 05:24:28 AM
its possible, here is a sample

Code: [Select]
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/
Title: Re: Video thumbnailer?
Post by: bgnm2000 on March 10, 2006, 05:18:10 PM
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.
Title: Re: Video thumbnailer?
Post by: IcEcReaM on March 10, 2006, 10:00:25 PM
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?
Title: Re: Video thumbnailer?
Post by: WeZ on March 27, 2006, 08:08:47 PM
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

Code: [Select]
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
Title: Re: Video thumbnailer?
Post by: potyka on March 31, 2006, 08:47:28 PM
Hi!
May settle how so that the vidoknál also are indices images so as the images?
Title: Re: Video thumbnailer?
Post by: jamiefrancis on October 21, 2007, 06:47:48 PM
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

Code: [Select]
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;
}

Title: Re: Video thumbnailer?
Post by: thunderstrike on October 21, 2007, 06:56:37 PM
Quote
system($command);

Note: Some host disable this command.