cancel
Showing results for 
Search instead for 
Did you mean: 

Metadata Extractor for Video files

csyoong
Champ in-the-making
Champ in-the-making
I am working on extracting and storing metadata of various video files, there does not seems to have any out of the box metadata extractors that deal specifically with videos. Any guidance that can help?
3 REPLIES 3

kaynezhang
World-Class Innovator
World-Class Innovator
I'm afraid there are not any  out-of-the-box video metadata extractors ,you should add your own one.
I think ffmpeg might be a good option

csyoong
Champ in-the-making
Champ in-the-making
Then is there any reference material to incorporate the ffmpeg as the extractors?

kaynezhang
World-Class Innovator
World-Class Innovator
Here is a brief introdcution on how to do it

You should custom a new  declare a new extractor ,for example its is called My Extracter,below is how you configur it.

  <bean id="com.company.MyExtracter" class="com.company.MyExtracter" parent="baseMetadataExtracter" />

In your custom extracter class ,you can call org.alfresco.util.exec.RuntimeExec,this class is used to execute a command ,the command that will be executed to extract metatdata is like below

ffmpeg -i input_video -f ffmetadata metadata.txt

Then you can parse the metadata.txt and assembe metadata properties.

For detail information on how to declare and cconfigure  a new extractor
You can refer to http://wiki.alfresco.com/wiki/Metadata_Extraction