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

DBus Cannot connect to the OMXPlayer process With --display 5 option (HDMI OUT) #187

Open
ProdigyView opened this issue Aug 8, 2019 · 0 comments

Comments

@ProdigyView
Copy link

ProdigyView commented Aug 8, 2019

Issue Report

Description

I get the standard "DBus cannot connect to the OMXPlayer process"). I am streaming the video from a url. My code is as follow:

     args = None

        if(audio == "local"):
          args = ["-o", "local"]
        else:
          args = ["-o", "hdmi"]

        args.append(["--display", "5"])

        path = "https://bw-videos-producition.s3-us-west-2.amazonaws.com/audio_preview_b3ace585-3327-4ca7-8905-db55dfdd5e4d.mp4"
        self.player = OMXPlayer(path,args=args, dbus_name='org.mpris.MediaPlayer2.omxplayer0')

The code is also run from inside a wx.Frame. What is also interesting about this issue is if I take the --display 5 out, which forces the pi to display via hdmi and not on screen(I have a touch screen), it works! It only fails with I am outputting to the hdmi out.

Environment details

  • OS (lsb_release -a):
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 9.9 (stretch)
Release:        9.9
Codename:       stretch
Software Version
python-omxplayer-wrapper latest
python-dbus (dpkg -s python-dbus) 1.10.28-0+deb9u1
python (python --version) 3.5
omxplayer (omxplayer --version) f06235c
@ProdigyView ProdigyView changed the title DBus Cannot connect to the OMXPlayer process DBus Cannot connect to the OMXPlayer process With --display 5 option (HDMI OUT) Aug 8, 2019
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

1 participant