Video Metadata

You need to be logged in to post messages in the forums. New users may register here.

Bruce Morrison

Member since:
09 January 2008

Posts: 37

Wednesday 06 February 2008 7:32:23 pm

Hi Damien

I've noticed that the ffmpeg-php API[1] allows the retrieval of a bunch of metadata about the video. One attribute that is particularity useful is the duration and i know that some projects I have worked on would be interested in author, copyright etc.

What are your thoughts on storing this information as part of eZVideoFLV, so it's accessible from templates? I was thinking that you'd add a metadata attribute to eZVideoFLV, retrieve as much as you could and store it as XML. There's be a functional attribute that converted the XML to an array to it could be easily used in templates.

Again, happy to contribute and do the work but would like your input/blessing :)

Cheers
Bruce

[1] http://ffmpeg-php.sourceforge.net/doc/api/ffmpeg_movie.php
Up

Damien Pobel

Member since:
09 January 2008

Posts: 28

Thursday 07 February 2008 8:52:05 am

Hi Bruce,

This feature is in my TODO list. I also thought about using textual informations (title, comment, ...) in eZVideoFLVType::metaData() to have videos indexed by the search engine.
Feel free to implement it.

Cheers,

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://ez.no/certification/verify/308412
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Up

Bruce Morrison

Member since:
09 January 2008

Posts: 37

Thursday 06 March 2008 9:42:48 pm

Hi Damien

Added some commits today that store the metadata as a serialised array. To do this I :
+ appended a column, 'serialized_metadata' to the ezvideoflv table (updated the sql in sql/ezvideoflv.sql)
+ added attribute 'serialized_metadata' & function attributes 'metadata' & 'duration' to datatypes/ezvideoflv/ezvideoflv.php
+ updated datatypes/ezvideoflv/ezvideoflvtype.php to store metadata
+ updated design/standard/templates/content/datatype/edit/ezvideoflv.tpl so that duration is displayed in edit interface.

Happy to discuss, modify, revert...

Cheers
Bruce
Up

You need to be logged in to post messages in the forums. New users may register here.