-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add support for ffmpeg 5.0 ? #13
Comments
Yep... a year later, apparently, still unsupported. This particular issue is easy to fix: declare your AVCodec variables to be Much more unpleasant seems another problem: export has no audio, because ffmpeg continuously throws an error (once every frame?) that it refuses to accept a non-final frame that has frame_size=64 set. There are also other errors - AC3 export does not work as there is some 'type' that has changed and a value of '7' is shown, whatever it may be. Also, import of WAV files does not work - an error is shown saying resampler could not be initialised (I have a vague feeling that my self-patched version of release 2.2 was able to load a WAV file). |
Yep, fixing the missing audio is just part of the story. If ffpmeg receives a frame with less samples than its frame_size, it assumes this is the last frame, so it drops any subsequent frames. See here: https://ffmpeg.org/doxygen/trunk/encode_8c_source.html A very (c)rude workaround that works for me:
More "fun": even with this fix, the audio truncates shortly before the end of the video. Why? Because Some AC3 "fun": the error of supported sample format is because AC3 uses
This, however, is not enough, as ffmpeg somehow expects frame-size=1536 while the audio context has 1152, resulting in the audio stream being denied after the first frame; this still needs investigation, but I don't have the time for it as I don;t need AC3 at all. |
Could you add support for ffmpeg 5.0 ?
The first error is
The text was updated successfully, but these errors were encountered: