What Causes the “Past Duration Too Large” Error in FFmpeg?
After receiving numerous reports from multiple users, we decided to investigate the issue and devised a set of solutions to completely rectify it. Also, we looked into the reasons due to which this error is triggered and listed them as follows: Now that you have a basic understanding of the nature of the issue, we will move on towards the solutions. Make sure to implement these in the specific order in which they are presented to avoid conflict.
Solution 1: Adding Input Frames
If the input framerate of the video hasn’t been added it might result in some frames getting dropped and the error is triggered. Therefore, in this step, we will be adding the input frames for that:
Solution 2: Using Sync Flags
Adding the Sync flags can help sync the output and the input video according to the video’s initial framerates. Therefore, If the sync commands haven’t been added, it is possible that the frames aren’t being synced properly. In this step, we will be adding the sync commands
