Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FFmpeg 6.0 crashes when loading 50+ clips and stressing the timeline #484

Conversation

bernie-laberge
Copy link
Contributor

483: Fix FFmpeg 6.0 crashes when loading 50+ clips and stressing the timeline

Linked issues

Fixes #483

Summarize your change.

No longer using the MovieFFMpeg global context pool (since FFmpeg 6.0)

Describe the reason for the change.

Rationale: The global context pool was based on the premise that a context could be opened and closed multiple times.
However, with FFmpeg 6.0, this premise is no longer valid and was causing crashes.
As per the FFmpeg 6 documentation: https://ffmpeg.org/doxygen/trunk/deprecated.html:
"Opening and closing a codec context multiple times is not supported anymore – use multiple codec contexts instead."

Describe what you have tested and on which operating system.

Successfully validated repro steps

Add a list of changes, and note any that might need special attention during the review.

If possible, provide screenshots.

Signed-off-by: Bernard Laberge <bernard.laberge@autodesk.com>
Copy link
Contributor

@rogernelson rogernelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find, Bernie!

@bernie-laberge bernie-laberge merged commit 4639285 into AcademySoftwareFoundation:main Jun 6, 2024
2 checks passed
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.

[Bug]: Crashes when stressing the timeline since the FFmpeg 6.0 update
3 participants