Omxplayer is a command line player which is part of XBMC. It is a video player specifically made for the Raspberry PI's GPU.

Installing

Omxplayer is included with the Rasbioan operating system, but if you need to install it you can use: 


sudo apt-get install omxplayer

Resources

http://elinux.org/Omxplayer

Key Bindings:

1 Increase Speed
2 Decrease Speed
j Previous Audio stream
k Next Audio stream
i Previous Chapter
o Next Chapter
n Previous Subtitle stream
m Next Subtitle stream
s Toggle subtitles
q Exit
Space or p Pause/Resume
– Decrease Volume
+ Increase Volume
Left Seek -30
Right Seek +30
Down Seek -600
Up Seek +600

Playing A RTSP Stream From An Axis Camera

At the command line:


omxplayer rtsp://root:yourcamerapassword@192.168.0.200/axis-media/media.amp?resolution=800x450

Video Formats

Omxplayer is picky about video content. The recommended encoding is H264 MPEG4 videos.   As long as you properly encode you videos it can handle 1080p videos beautifully.

Displaying Images

omxplayer does not currently have the capability to display still images and there are no current plans to add this (09/2013 https://github.com/huceke/omxplayer/issues/132).

Playing Audio Files

From the command line:


omxplayer /home/pi/projects/my_project/audio/my_audio.wav

Sending Audio To The HDMI Port

Apparently this works (we've not tried it yet ourselves)


omxplayer -p -o hdmi myaudio.mp4

 

 

 

 





USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.

Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

  • Kyle

    This thing sucks… There’s no way to pipe h.264 directly from Python, so you’re stuck with the severely limited features written into this pile of garbage.

    Where is the feature to call current clip time/position via STDIN/OUT? Where is the option to seek to a specific time code? Since Broadcom refuses to release the GPU specs, they sould at least release some tools that give you some real control over the damnable playback!

  • Tom Kastner

    I need to know how to play playlists of mp3 files!

  • jappe

    Write that in python :P