-
Notifications
You must be signed in to change notification settings - Fork 6
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
Audio removed when changing video speed #2
Comments
Yes this could more easily be done on IOS where AVFoundation already supports time scaling. On Android we use the android-transcode library fork. Adding audio scaling to the android-transcode library is not on the horizon as it is quite complex to do properly. Having the same behavior on both platforms is a primary goal of this project. |
Have you checked on this library as an alternative: Natario Transcoder? Seems like it has audio stretching. |
Thanks for that. It has audio scaling but not transitions like crossfades which we support. Like the fork we are using it has deviated substantially from the original ypresto version so would not be something easily pulled. Curious as to your use case for time scaled audio. |
yeah, I need to read through the code in both libraries and learn from them. |
The audio is removed when changing video speed on both Android and IOS. Any way to fix this for android?
For IOS, I recommend changing to this fork of SDAVAssetExportSession. It allows removing/changing of the pitch correction algorithm. The Audio speed can be easily activated by adding the same scaleTimeRange lines for the audioTrack and removing the !scaleTime from the if statement.
The text was updated successfully, but these errors were encountered: