Preview thumbnails for videos better previews for videos
$cmd = "ffmpeg -i $flv -vcodec png -vframes 1 -an -f rawvideo -s $res $previewname";
$cmd = "ffmpeg -i $flv -t 00:00:05 -vcodec png -vframes 1 -an -f rawvideo -s $res $previewname";
$cmd = "ffmpeg -i $flv -ss 00:00:05 -vcodec png -vframes 1 -an -f rawvideo -s $res $previewname";
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on Preview thumbnails for videos
Member
Usergroup: Customer
Joined: Feb 04, 2006
Total Topics: 8
Total Comments: 22
Hi guys,
I've been playing with version 4.1.50 and like the video upload option.
While playing around with the script i noticed one issue with the video thumbnails that are being generated.
In most cases the very first frame or few secs of a video is a blank intro screen. which doesn't help describe the video content
as you get a category full of black thumbnails.
Is it possible to allow the script to generate the video thumbnail 30sec into the video clip?
I look forward to your feedback.
regards
Rod
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Should be possible... I'll include it if you test it for me. Open includes/addeditfuncs.php and change to
(I set it to 5 seconds in since a lot of videos aren't 30 seconds long.)
Does that work?
Member
Usergroup: Customer
Joined: Feb 04, 2006
Total Topics: 8
Total Comments: 22
Hi Paul,
I'm at work at the moment, but I'll test it out tonight.
cheers
Rod
Member
Usergroup: Customer
Joined: Feb 04, 2006
Total Topics: 8
Total Comments: 22
Hi Paul,
I tried the code but it doesn't seem to get past the first frame.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
A different google result suggests
Member
Usergroup: Customer
Joined: Feb 04, 2006
Total Topics: 8
Total Comments: 22
you rock!
That worked perfectly.
Thanks