-
Notifications
You must be signed in to change notification settings - Fork 566
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
Crop audio track #33
Comments
Whoops, ignore that. I just realised I was measuring samples on the video track not audio track. Here is the working code if anyone else is trying to do this. Thanks!
|
clean up |
@damienoliver sorry for digging this up, but I cant understand what does I took some examinations and relized that with audio (AAC in my cases), the |
@ltpquang @chad187 |
@pajama nice find, thank you so much, gonna give it a try |
@ltpquang good luck! The method that worked for me was actually in his sample project, at the bottom of this class. |
Hi mate,
Great library!
I'm trying to crop an audio track to match a video duration and then mux together. At the moment I've just hard coded in 5 seconds for the audio duration, but it is coming out much shorter. I know it's to do with the sample length mismatch between the tracks but I just can't seem to work it out.
I've tried to follow your lead (in ShortenExample.java) but my audio track is always much shorter than expected. i.e. the endSample is not calculated properly.
This is my code, anything obviously wrong here?
The text was updated successfully, but these errors were encountered: