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

interaction when running multiple instances #184

Open
gkreidl opened this issue Apr 4, 2014 · 4 comments
Open

interaction when running multiple instances #184

gkreidl opened this issue Apr 4, 2014 · 4 comments

Comments

@gkreidl
Copy link

gkreidl commented Apr 4, 2014

When I run multiple instances of omxplayer (in --win mode), I'm getting a strange interaction from the play/pause command (via stdin or dbus). For dbus commands I'm using different dbus names for each instance.
When I pause one video, the other videos play on but are muted. If I resume the first video again, I'm getting sound back immediately on other videos, but their video display freezes for a moment.
If I have paused one video and lost sound on all others, I can get sound back on them, when I pause them and start them again (each one). If I then resume the first video, the other videos are not disturbed in any way.

@popcornmix
Copy link
Owner

Yes, that is how it is. There is a common audio backend (audioplus) used by all the audio_render components (used by omxplayer).

audio_render does pause audioplus when paused. This unfortunately stops other clients.
This is not how I'd like it to behave, but it may not be simple to fix.
I'll talk to some of the devs who know this code and see if there's any solution.

@matthuisman
Copy link

Noticed this today. Glad I'm not the only one :)
Only noticed is on the PAUSE command.
Mute, Stop etc, all seem to work via DBUS on multiple instances, just not pause.

@purtic
Copy link

purtic commented Sep 19, 2016

How do you get different dbus names for each instance? I got it working for one instance by reading /tmp/omxplayerdbus.pi but it's always the same, even after restarting the script. I have launched another instance by Popen...

@gkreidl
Copy link
Author

gkreidl commented Sep 19, 2016

start omxplayer with
omxplayer --dbus_name name file

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

4 participants