-
Notifications
You must be signed in to change notification settings - Fork 4
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
flipnote export as mkv doesn't always create correct length video #6
Comments
perhaps padding the bgm with zeros could be a solution |
not sure how that would work, as i'm not super familiar with dealing with audio. it seems however that ffmpeg allows for specifying how long the output file should be, so if we pass it the |
Try this change. |
In my testing (PPM.py), I found that because of the way ffmpeg is used with the
-shortest
flag when combining the BGM, if the BGM is shorter than the flipnote, then the video is cut off when the BGM ends, rather than when the flipnote ends. If the BGM is longer or the same length, then this works fine.Simply removing the
-shortest
flag creates the opposite problem, where it works fine if the BGM is shorter or the same length as the flipnote, but if the BGM track is longer than the flipnote, then the video doesn't get appropriately trimmed and the end becomes somewhat glitched.I think the ffmpeg encode duration for this step needs to be locked to the duration of the flipnote, rather than dependent on the length of the BGM.
The text was updated successfully, but these errors were encountered: