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

Multiple (different language) audio outputs #675

Open
ghost opened this issue Mar 27, 2014 · 6 comments
Open

Multiple (different language) audio outputs #675

ghost opened this issue Mar 27, 2014 · 6 comments

Comments

@ghost
Copy link

ghost commented Mar 27, 2014

Could you add a possibility to playback multiple audio tracks at the same time, using different audio devices?
Here's an example scenario in which this would be very helpful:
You want to watch a movie together with some other person. But while he/she wants to hear to her his/her native language's synchro, you want to hear the original English sound track. This would be no problem if you could output the different tracks to different devices.

@ghost ghost added the enhancement label Mar 27, 2014
@ghost
Copy link

ghost commented Mar 27, 2014

IMO this is a pretty obscure (almost fringe) feature.

It's pretty hard to synchronize two audio outputs at once (they'll slowly but certainly desync, unless you do "something"), so I'd rather not do it.

Maybe you should look at tings like syncplay instead, which synchronize two separate players.

@heinrich5991
Copy link

Can you explain why audio outputs will desync? mpv already keeps the audio synced to the video, why would adding another change that? If both audio outputs were synced to the video, it'd be fine.

@ghost
Copy link

ghost commented May 23, 2020

At the time this was posted, mpv could only only synchronize video to audio. Synchronizing video to audio is pretty simple (you just adjust the video timing), while synchronizing audio to anything else requires resampling (which can get tricky because you need to pick the right resampling ratio, without making it "wobble"). At the present time, having multiple audio outputs would still be hard, because the synchronization code is hardcoded to deal with video only. I plan to change that, and then maybe having multiple audio outputs would be relatively simple to do.

@heinrich5991
Copy link

I see, thanks for the explanation. :)

@drcouzelis
Copy link

drcouzelis commented Jun 4, 2022

IMO this is a pretty obscure (almost fringe) feature.

I found this thread when searching how to play two audio tracks at once. I record videos in OBS Studio and record the audio on separate tracks. Being able to play multiple audio tracks at once would allow me to preview the video before editing.

@LifeJustDLC
Copy link

Additional personal use case:
There's a lot of "同時視聴" (watch same content with fans simultaneously) stream archives made by tons of streamers and vtubers. It is embarrassing that there's still no any method yet to sync "pause", "rewind" and other frequently used operations, while preserving that fragile time offset. Except mpv, though with a little but unbearable desync between original video and original audio.

(FYI, VLC doesn't merge audio; GridPlayer doesn't sync operation other than "pause" and is not maintained any more I guess.)

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

No branches or pull requests

4 participants