python-omxplayer-wrapper
python-omxplayer-wrapper copied to clipboard
No video output on Pi Zero
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 |
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