This is something that I wouldn't know where to start with. Does anyone know any resources that could help me with this? Has anyone tried anything before?
Basically I need to make a thumbnail of a .flv video (like what youtube and all these video sites use). Other languages can be used, even a command line program would be suitable.
Thanks for any help.
UPDATE: I found out about a command line program called FFMPEG. I also found out there was a handy PHP library for it. This is exactly what I was looking for.
Screen capturing a .flv video.
Moderator: General Moderators
Use ffmpeg. For small and medium projects it will fit your needs.
To fetch a thumbnail use this (tried and works on one of webs i wrote):
To fetch a thumbnail use this (tried and works on one of webs i wrote):
Code: Select all
exec("/usr/bin/ffmpeg -an -y -i $outputdir$outputfile -f mjpeg -t 0:0:5.000 -vframes 1 -ss 0:0:5.000 $outputdir$outputframe");