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

cont open video #15

Open
Zydzzb opened this issue Aug 21, 2024 · 3 comments
Open

cont open video #15

Zydzzb opened this issue Aug 21, 2024 · 3 comments

Comments

@Zydzzb
Copy link

Zydzzb commented Aug 21, 2024

Hi, thank you for your plugin. I have a question: is it possible to record multiple submixes simultaneously into a single MP4 file? For certain reasons, I prefer not to merge the two submixes into one. I would like to register each of these two submixes separately using RegisterSubmixBufferListener(). Is this feasible?

@irajsb
Copy link
Owner

irajsb commented Aug 23, 2024

not by default. unless you customize the code yourself.

@Zydzzb
Copy link
Author

Zydzzb commented Aug 26, 2024

@irajsb Can you provide guidance on how to write two audio streams into OutFormatContext and combine them with the video stream to form an MP4?

I created two audio encoders and duplicated the Encode_Audio_Frame function, binding it to thread::run as well. However, in the end, only one audio stream is heard.

Thanks!

@irajsb
Copy link
Owner

irajsb commented Aug 28, 2024

Having two separate audios means you have to switch between them.
First you have to try what you want to do using ffmpeg command line. then you have to find out what does that command line switch does in cpp code of ffmpeg itself. then do that exact logic inside this plugin code

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