Forums / Developer / .flv video screenshot

.flv video screenshot

Author Message

Lo' F.

Monday 18 October 2010 4:18:53 am

..Nice Monday everyone!

I have a video-content class where I can upload .flv files rendered through Flowplayer.

Now I have to create a page where to gather all these video objects.

The thing which I need to implement in this page is a screenshot of each listed video.

I though of adding an image attribute to the class where to upload the picture but in this way I can't think of nothing for generating the video's screenshot automatically and having to make it manually it's not really handy.

I found this ezvideoflv but, even though I have had trouble installing it (so haven't installed yet), I was wondering if this can really help me to achieve what I want to do.

Any suggestion would be highly appreciated.

Thanks!

loredanaebook.it

Gaetano Giunta

Monday 18 October 2010 4:52:53 am

If you're not afraid to dive in php code:

- add an image attribute to your video class

- install ffmpeg

- create a custom event with a post-publish workflow that will take a snaphsot out of your flv video and upload it to the image attribute

The caveat is that generally editors prefer to be able to specify the thumbnail of the video, as the very 1st frame might not be very telling

Principal Consultant International Business
Member of the Community Project Board

Lo' F.

Monday 18 October 2010 6:02:00 am

Thank you, Gaetano, for your fast reply!

"

- add an image attribute to your video class

"

..ok

"

- install ffmpeg

"

.. tried to install but couldn't succeed.. I'll have to try again..

"

- create a custom event with a post-publish workflow that will take a snaphsot out of your flv video and upload it to the image attribute

"

... This is going to take me a while..!

"

The caveat is that generally editors prefer to be able to specify the thumbnail of the video, as the very 1st frame might not be very telling

"

.. Maybe you're right.. especially if it starts with a black frame..

...

loredanaebook.it

Marko Žmak

Tuesday 19 October 2010 1:30:33 pm

Hi Lo.

I have used ezvideoflv extension, and found it very useful. And yes, it can extract a screenshoot from the uploaded video. It can also convert videos to flv from almost every popular format (like for example quicktime and wmv). It also works great when combined with the multiupload extension

As for the trouble with installing it, try to post your problem here so maybe I can help.

And just a note, the extension has some bugs, which I reported here:

http://projects.ez.no/ezvideoflv/forum/general

and I fixed them on my installation of ezvideoflv. So if you have problems with bugs, contact me and I can send you my fixed version.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Lo' F.

Saturday 23 October 2010 2:21:51 am

"

As for the trouble with installing it, try to post your problem here so maybe I can help.

"

Hi Marko, thank you so much for your reply.

ezvideoflv is definitely in my list.. I'll get back to this topic soon (..currently I am just a little busy dealing with some other issues..) and sure I might need your help should things go wrong again!

loredanaebook.it

eZ debug

Timing: Jan 18 2025 20:58:05
Script start
Timing: Jan 18 2025 20:58:05
Module start 'content'
Timing: Jan 18 2025 20:58:06
Module end 'content'
Timing: Jan 18 2025 20:58:06
Script end

Main resources:

Total runtime0.6977 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.6094180.8516
Module start 'content' 0.00550.6865 768.4609630.2422
Module end 'content' 0.69210.0055 1,398.703150.1328
Script end 0.6976  1,448.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4117140.0002
Check MTime0.00130.1860140.0001
Mysql Total
Database connection0.00050.078510.0005
Mysqli_queries0.636591.2290670.0095
Looping result0.00070.1009650.0000
Template Total0.667595.720.3338
Template load0.00180.263620.0009
Template processing0.665795.409620.3328
Template load and register function0.00020.028210.0002
states
state_id_array0.00120.171410.0012
state_identifier_array0.00100.136220.0005
Override
Cache load0.00170.2467500.0000
Sytem overhead
Fetch class attribute can translate value0.00070.098430.0002
Fetch class attribute name0.00150.208980.0002
XML
Image XML parsing0.00350.501330.0012
class_abstraction
Instantiating content class attribute0.00000.0027100.0000
General
dbfile0.00470.6785320.0001
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs