Welcome Guest, Not a member yet? Register   Sign In
hi folks i need your help......for thumb nail
#1

[eluser]praveens[/eluser]
hi folks i need your help......


i don't know much about thumb nails, any body can explain how to do it thumb nails for videos .....


thanks in advance
#2

[eluser]xwero[/eluser]
the way i make thumbnails for videos is open it in vlc and take a screenshot with the build in command.
#3

[eluser]Sawariya[/eluser]
$config['image_library'] = 'GD';
$config['source_image'] = '/path/to/image/mypic.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 50;

$this->load->library('image_lib', $config);

$this->image_lib->resize();

dont copy this... change this code as per your requirement...
it will work properly
#4

[eluser]manish[/eluser]
can we create thumbnail of video by using php code ?
#5

[eluser]Mantas M[/eluser]
Yes. Use mod_ffmpeg or execute ffmpeg command via shell_exec() Wink
#6

[eluser]manish[/eluser]
Mantas ,please give me link where i will get example of this !!!!!!!!!!!!!!!!
#7

[eluser]Mantas M[/eluser]
I use following code:

Code:
shell_exec("ffmpeg -i cache/$filename -s 160x120 -vframes 1 -f mjpeg thumbs/160/$filename.jpg ");

It creates 160x120 screenshot of 1st frame of cache/$filename and saves it to thumbs/160/$filename.
#8

[eluser]manish[/eluser]
ok
i will try it !!!!!!!!!!!!
i am using Shell_exec first time is there need to make any extra setting in php
#9

[eluser]manish[/eluser]
Hi Mantas it will not work for me i am using OS Windows XP
do ypu ahve any thing for window or i am missing something
#10

[eluser]Mantas M[/eluser]
Ah, this works on *nix only.

Try to run

Code:
system("/path/to/ffmpeg.exe -i cache/$filename -s 160x120 -vframes 1 -f mjpeg thumbs/160/$filename.jpg");




Theme © iAndrew 2016 - Forum software by © MyBB