Difference between revisions of "Omxplayer"

From eLinux.org
Jump to: navigation, search
(Troubleshooting)
m (Black Screen after playback)
Line 6: Line 6:
  
 
== Troubleshooting ==
 
== Troubleshooting ==
=== Black Screen after playback ===
+
=== Black screen after playback ===
 
If you get a black screen on your X11 Desktop after omxplayer is finished, you can use this command to restore your view:
 
If you get a black screen on your X11 Desktop after omxplayer is finished, you can use this command to restore your view:
 
<pre>
 
<pre>
Line 18: Line 18:
 
</pre>
 
</pre>
 
On raspian xrefresh is part of the x11-xserver-utils package
 
On raspian xrefresh is part of the x11-xserver-utils package
(apt-get install x11-xserver-utils)  
+
(apt-get install x11-xserver-utils)
 +
 
 
=== No rights to VCHIQ ===
 
=== No rights to VCHIQ ===
 
On bare installations of the default distributions Omxplayer often has insufficient permissions to access /dev/vchiq. One solution would be to run omxplayer as root, but a nicer solution is to add a udev rule so that /dev/vchiq is also accessible from other users. To accomplish this, do the following under root:
 
On bare installations of the default distributions Omxplayer often has insufficient permissions to access /dev/vchiq. One solution would be to run omxplayer as root, but a nicer solution is to add a udev rule so that /dev/vchiq is also accessible from other users. To accomplish this, do the following under root:

Revision as of 08:01, 14 February 2013


Omxplayer is a video player specifically made for the Raspberry PI's GPU made by Edgar (gimli) Hucek from the XBMC project.

RaspberryPI forum user spenning made precompiled binaries available on the forum see here.

Troubleshooting

Black screen after playback

If you get a black screen on your X11 Desktop after omxplayer is finished, you can use this command to restore your view:

xrefresh -display :0

Or you can use a small bash script for video playback to do this every time:

#/bin/bash
omxplayer "$@"
xrefresh -display :0

On raspian xrefresh is part of the x11-xserver-utils package (apt-get install x11-xserver-utils)

No rights to VCHIQ

On bare installations of the default distributions Omxplayer often has insufficient permissions to access /dev/vchiq. One solution would be to run omxplayer as root, but a nicer solution is to add a udev rule so that /dev/vchiq is also accessible from other users. To accomplish this, do the following under root:

# echo 'SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"' > /etc/udev/rules.d/10-vchiq-permissions.rules

Now add yourself to the group named 'video':

# usermod -aGvideo USERNAME

Reboot the Raspberry and you should be able to run omxplayer without the vchiq-error showing up.

HDMI

When using HDMI make sure to pass '-o hdmi' to omxplayer if you want the audio to playthrough the HDMI cable:

omxplayer -o hdmi videofile.mp4


Helpful Links