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

No video output on Pi Zero #221

Open
Dschadu opened this issue Aug 12, 2021 · 1 comment
Open

No video output on Pi Zero #221

Dschadu opened this issue Aug 12, 2021 · 1 comment

Comments

@Dschadu
Copy link

Dschadu commented Aug 12, 2021

Issue Report

Description

I got no video output on Pi Zero W. The video plays just fine with this command:
omxplayer /opt/vc/src/hello_pi/hello_video/test.h264
I've got a HDMI monitor connected to the Pi Zero. omxplayer works fine, but the wrapper does not produce any video output. I also tried with args=['--adev', 'hdmi'] without success. After I start the .py file, I can see that the CPU usages goes up for a few seconds and then back to idle.

Problem reproduction

I'm using the minimal example:

#!/usr/bin/env python3

from omxplayer.player import OMXPlayer
from pathlib import Path
from time import sleep

VIDEO_PATH = Path("/opt/vc/src/hello_pi/hello_video/test.h264")

player = OMXPlayer(VIDEO_PATH)

sleep(5)

player.quit()

Environment details

  • OS (lsb_release -a):
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
Software Version
python-omxplayer-wrapper 0.3.3
python-dbus (dpkg -s python-dbus) 1.2.16
python (python --version) 2.7.16
omxplayer (omxplayer --version) f543a0d
@Dschadu
Copy link
Author

Dschadu commented Aug 13, 2021

A bit additional info from the logger:

DEBUG:omxplayer.player:Instantiating OMXPlayer
DEBUG:omxplayer.bus_finder:BusFinder initialised with path: None
DEBUG:omxplayer.player:Setting up OMXPlayer process
DEBUG:omxplayer.player:Opening omxplayer with the command: ['omxplayer', '/home/pi/webapp/testvid.mp4']
DEBUG:omxplayer.player:Process opened with PID 6593
DEBUG:omxplayer.player:Trying to connect to OMXPlayer via DBus
DEBUG:omxplayer.player:DBus connect attempt: 0
DEBUG:omxplayer.bus_finder:Opening file at /tmp/omxplayerdbus.pi
DEBUG:omxplayer.bus_finder:Opened file at /tmp/omxplayerdbus.pi
DEBUG:omxplayer.bus_finder:Address 'unix:abstract=/tmp/dbus-yhVm6SkPhZ,guid=226b96173b2e32a4bbcec32461162aea' parsed from file
DEBUG:omxplayer.player:Failed to connect to OMXPlayer DBus address
DEBUG:omxplayer.player:DBus connect attempt: 1
[...]
DEBUG:omxplayer.bus_finder:Opening file at /tmp/omxplayerdbus.pi
DEBUG:omxplayer.bus_finder:Opened file at /tmp/omxplayerdbus.pi
DEBUG:omxplayer.bus_finder:Address 'unix:abstract=/tmp/dbus-yhVm6SkPhZ,guid=226b96173b2e32a4bbcec32461162aea' parsed from file
DEBUG:omxplayer.player:Failed to connect to OMXPlayer DBus address
DEBUG:omxplayer.player:DBus connect attempt: 34
DEBUG:omxplayer.bus_finder:Opening file at /tmp/omxplayerdbus.pi
DEBUG:omxplayer.bus_finder:Opened file at /tmp/omxplayerdbus.pi
DEBUG:omxplayer.bus_finder:Address 'unix:abstract=/tmp/dbus-yhVm6SkPhZ,guid=226b96173b2e32a4bbcec32461162aea' parsed from file
DEBUG:omxplayer.player:Connected to OMXPlayer at DBus address: <omxplayer.dbus_connection.DBusConnection object at 0xb61f8ed0>
INFO:omxplayer.player:OMXPlayer process is dead, all DBus calls from here will fail
DEBUG:omxplayer.player:Quitting OMXPlayer
ERROR:omxplayer.player:Could not find the process to kill
DEBUG:omxplayer.player:Quit was called after self._process had already been released

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