Jump to content

flv4php reading meta data fails with larger files


benshole

Recommended Posts

I was after a (serverside) solution for reading the metadata from .flv files and found flv4php which works brilliantly for smaller files. But as soon as i use a larger file or increase the bitrate the video is encoded at i receive lots of

 

Warning: unpack(): Type d: not enough input, need 8, have 5 in /siteroot/play/FLV/Util/AMFUnserialize.php on line 169

 

However it appears this only happens after a certain point as i can pull out the first so many keyframe metadata records but then it fails an the keyframe times array isn't populated at all.

 

This is all im using the flv4php lib for so if anyone knows of another way to pull the keyframe information from an flv under linux i would be very grateful!

 

Just for the information... The media is all being encoded using ffmpeg using the same settings :

 

ffmpeg -i infile -ar 22050 -ab 32000 -f flv -b 320000 -r 25 -s 320x240 -acodec libmp3lame outfile.flv

 

Then the metadata being injected using YAMDI. Both done on the same machine. But gives different results depending on the media.

 

Thanks a lot folks!!

 

Ben

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.