Webmastersite.net
Register Log In

Preview thumbnails for videos
better previews for videos

Comments on Preview thumbnails for videos

FirstByteMedia
Member

Usergroup: Customer
Joined: Feb 04, 2006

Total Topics: 8
Total Comments: 22
Posted Jul 06, 2008 - 9:37 AM:

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
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 07, 2008 - 4:36 PM:

Should be possible... I'll include it if you test it for me. Open includes/addeditfuncs.php and change
    $cmd = "ffmpeg -i $flv -vcodec png -vframes 1 -an -f rawvideo -s $res $previewname";
to
    $cmd = "ffmpeg -i $flv -t 00:00:05 -vcodec png -vframes 1 -an -f rawvideo -s $res $previewname";


(I set it to 5 seconds in since a lot of videos aren't 30 seconds long.)

Does that work?
FirstByteMedia
Member

Usergroup: Customer
Joined: Feb 04, 2006

Total Topics: 8
Total Comments: 22
Posted Jul 07, 2008 - 11:43 PM:

Hi Paul,

I'm at work at the moment, but I'll test it out tonight.

cheers

Rod


FirstByteMedia
Member

Usergroup: Customer
Joined: Feb 04, 2006

Total Topics: 8
Total Comments: 22
Posted Jul 08, 2008 - 8:04 AM:

Hi Paul,

I tried the code but it doesn't seem to get past the first frame.


Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 08, 2008 - 5:58 PM:

A different google result suggests
 $cmd = "ffmpeg -i $flv -ss 00:00:05 -vcodec png -vframes 1 -an -f rawvideo -s $res $previewname";
FirstByteMedia
Member

Usergroup: Customer
Joined: Feb 04, 2006

Total Topics: 8
Total Comments: 22
Posted Jul 09, 2008 - 6:04 AM:

nod you rock!

That worked perfectly.

Thanks



Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.