-
Notifications
You must be signed in to change notification settings - Fork 375
(Bug): Remedying ReadFFmpeg's performance #1047
Description
Make sure to follow our issue report guidelines
- I'm using the latest version of Natron (not required but recommended)
- I've restarted Natron and the issue persists
- I've run Natron via the command line and the issue persists
- I've followed the contributing guidelines to the best of my understanding
- My issue is not on the issue tracker or in a pull request already (go search for it and dig around a little bit!)
- This bug is reproducible
Natron version
Natron 2.6.0
Operating system
Arch Linux
System specs
RAM: 15.6 GB
CPU: AMD Ryzen 7 2700
GPU: AMD Radeon R7 200 Series
Did you install Natron using the official installer?
- Yes, I used the official installer
- No, I installed from a binary archive
- No, I compiled Natron from sources
- No, I installed Natron via another method
Custom installation path
No response
What were you trying to do?
I'm trying to use videos with different Natron projects but both preview and render performances are awful. I've managed to find the cause to say the least.
What did you expect to happen? What happened instead?
Albeit I expect a certain overhead, this is quite larger rather than a small one. What's happening is that Natron renders frames in parallel and ReadFFmpeg goes to each one of them. Given that FFmpeg, and other video libraries in general, don't seek into a timestamp exactly in a
Step-by-step reproduction instructions
- Start Natron.
- Create a node graph as you usually do here.
- Place a video for it to be part of the composition.
- Do a preview playback.
- Or render the project.
- See that everything is now poorly performant.
Additional details
This is rather trivial to fix, simply by having a cache of a size by the tens or hundreds frames can improve performance. At the cost of memory or storage though, but given the circumstances this is rather an acceptable tradeoff. For reference, even MLT does this. Why did I made an issue here? Because I need tips on which OpenFX suite to use and in case there isn't then for this is to be handled by a Natron host itself.