Skip to content

Conversation

@animetrics
Copy link

Hi,

I've been trying to fix some fairly serious issues in this library for a while. It began with a significant decoding memory leak that we found (basically leaked an avframe for each decoded frame), which then led to discovery of another leak, and then further issues with random results on different machines and incorrect pts calculations. Also, we use this library from windows so I updated it to be C89 backwards compatible (since MSVC9 is not C99 compatible) and added a config.w32 for standard php extension compilation on windows. For the random results issue you can reference the following issue: mpenkov/ffmpeg-tutorial#7

These are significant fixes for anyone who might use the library to do anything mildly serious. I haven't tested on linux or OSX but it should compile. On windows, I have been testing with ffmpeg-1.2. Lastly, we have seen what appear to be threading issues with this library, so it should be used with non-thread safe versions of PHP.

Best,
Marc

…mpatabile and added a config.w32 for normal windows extension builds. 2. Fixed 2 very significant memory leaks during video decoding. 3. Fixed serious frame decode issue for B frames where random end of video frames would get skipped (at least in current ffmpeg implementations see mpenkov/ffmpeg-tutorial#7 and thanks to sobotka for help).  4.  Tried to fix fps and frame count calcuations though don't know if they work across codecs.
@animetrics animetrics mentioned this pull request Mar 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants