use ffmpeg/getid3 if available to get flv dimensions

yched - January 24, 2008 - 13:15
Project:Asset
Version:5.x-1.x-dev
Component:Asset Bonus
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

It seems the swfheader library used to parse info from swf files does not handle flv movies, and thus can't extract video dimensions.

I'm not sure there is a lightweitght php lib that would do that, but ffmpeg does - would be cool to use it if available ?

#1

yched - January 24, 2008 - 13:27
Title:use ffmpeg if available to get flv dimensions» use ffmpeg/getid3 if available to get flv dimensions

Hmm, it probably can't qualify as 'lightweight', but it seems getID3 does parse flv headers...
Maybe Asset_embed could plug with http://drupal.org/project/getid3 ?

#2

Owen Barton - February 4, 2009 - 23:27
Status:active» needs review

Here is a patch that does this, depending on the getid3 module (which manages the library itself). I had a go at updating the instructions in INSTALL.txt. README.txt has some out-of-date and misleading (since it is not actually used) getid3 install instructions, and I think should just be deleted.

AttachmentSize
213708.patch 2.81 KB
 
 

Drupal is a registered trademark of Dries Buytaert.