Skip to content
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 Overlay for a specific time #267

Open
vikaspAlgoworks opened this issue Nov 17, 2023 · 1 comment
Open

Audio Overlay for a specific time #267

vikaspAlgoworks opened this issue Nov 17, 2023 · 1 comment

Comments

@vikaspAlgoworks
Copy link

Hi @izzytwosheds ,

Is there an option to overlay audio or video for only a specific time duration? For example: if we have a video of length 40 seconds and we want to overlay audio from 5 seconds to 25 seconds only, how can it be achieved?

From looking at AudioOverlayFilter's apply method, it uses ByteBuffer but no presentationTime to make any such operation.

Any insight or guidance would be highly valuable to us.

@izzytwosheds
Copy link
Contributor

Hi. Apologies for late response.
AudioOverlayFilter receives a Frame in apply method, which has bufferInfo field, which in turn will have a presentationTimeUs. You can use that field to control when audio filter is applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants