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 ?

CommentFileSizeAuthor
#2 213708.patch2.81 KBowen barton

Comments

yched’s picture

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 ?

owen barton’s picture

Status: Active » Needs review
StatusFileSize
new2.81 KB

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.

wmostrey’s picture

Status: Needs review » Closed (won't fix)