omxplayer download & install


14 posts
by Peterjay » Wed Aug 22, 2012 1:47 pm
I've just got my RP up and running but there is no media player. How do I get omxplayer and how is it installed. thanks Peter
Posts: 16
Joined: Wed Aug 22, 2012 1:39 pm
by dom » Wed Aug 22, 2012 1:52 pm
Use the Raspbian “wheezy” from here:
http://www.raspberrypi.org/downloads
and it is pre-installed.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4070
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Peterjay » Wed Aug 22, 2012 1:59 pm
dom wrote:Use the Raspbian “wheezy” from here:
http://www.raspberrypi.org/downloads
and it is pre-installed.

I must be a bit thick, but I've got wheezy but can't find OMX. Where is it located.
Posts: 16
Joined: Wed Aug 22, 2012 1:39 pm
by Peterjay » Wed Aug 22, 2012 2:22 pm
I must be a bit thick, but I've got wheezy but can't find OMX. Where is it located.
Posts: 16
Joined: Wed Aug 22, 2012 1:39 pm
by ghans » Wed Aug 22, 2012 2:38 pm
Just enter omxplayer into the command-line. (LXTerminal / xterm)

Code: Select all
man omxplayer


gives help.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Posts: 4770
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany
by Peterjay » Wed Aug 22, 2012 3:09 pm
Brilliant, I've got it playing a film through my HDMI, but there is no sound from the TV, only through headphones. Also I've no control of the video from the keyboard or mouse. How do I stop/start/pause etc.
Posts: 16
Joined: Wed Aug 22, 2012 1:39 pm
by Mauste » Wed Aug 22, 2012 6:16 pm
Installing / upgrading: "sudo apt-get install omxplayer" (in the command line / terminal)
Usage: omxplayer [options] [file]

Option examples:
-h = shows all the options (recommended to do)
-o hdmi = audio through hdmi
-t on = subtitles on
--align center = subtitles show on the center
--align left = subtitles show on the left

Usage examples:
1) oxmplayer -h
- This lists the options.

2) omxplayer -o hdmi -t on --align center myvideo.mkv
- This would give you audio through hdmi (TV) and the file would start playing with subtitles located at the middle of screen.

Controls:
p / space = Pause
q = Quit
s = Toggle subtitles on/off
o = Goes forward a lot (probably a chapter)
numpad - (minus) = decrease volume
numpad + (plus) = increase volume
1 = Fast forward(?)
2 = Fast forward (faster)
Arrow Up = Skip a chapter forward
Arrow Down = Go back a chapter
Arrow Right = Skip a bit forward
Arrow Left = Go back a bit
Might be some more, but that should be enough

Important:
1) Your command line (terminal) has to be active on the background for the keys to register. For example you can't pause the video if you have clicked outside the terminal.

2) The file has to include subtitles within the file in order to toggle them on/off or use the "-t on/off"-command. You can't drag and drop like in some other programs. You can insert the subtitles to the file by using mkvmerge
("sudo apt-get install mkvtoolnix").

PS: Omxplayer and XBMC are the only programs that can handle videos because of hardware accelerated GPU. XBMC requires a completely different distribution (for example Raspbmc, OpenELEC or Xbian). Also, XBMC is a media-center-focused so you can't do all the "normal operating system"-things with it in the GUI-environment. On the other hand, XBMC gives a very enjoyable media-experience (it is more in the lines of what you were expecting from omxplayer... and then some. No command line needed). If your Raspberry Pi's purpose is to be a media-center, then I would recommend installing Xbian on your SD-card (Xbian has clearly the best performance in my opinion).
Posts: 29
Joined: Thu Jul 19, 2012 1:15 pm
by haydster7 » Fri Aug 24, 2012 5:19 am
Hi, just a quick question on the usage of omxplayer.
I have found multiple sites that enable the launch of the player via the file manager using an omxplayer.desktop shortcut in /usr/share/applications/ with the contents as follows
[Desktop Entry]
Type=Application
Name=OMXPlayer
Categories=AudioVideo;Player;
Exec=omxplayer -o hdmi %f
Terminal=true
Icon=emblem-video
http://jeffhoogland.blogspot.com.au/2012/08/howto-launch-omxplayer-via-gui.html

I have tried this and it has not worked but I cannot find anyone else reporting the same issues. (It is reported as working on the RPi)

I hope this is in the right section... thanks.
Posts: 2
Joined: Thu May 17, 2012 2:25 pm
by Mauste » Sat Aug 25, 2012 7:04 pm
haydster7 wrote:Hi, just a quick question on the usage of omxplayer.
I have found multiple sites that enable the launch of the player via the file manager using an omxplayer.desktop shortcut in /usr/share/applications/ with the contents as follows
[Desktop Entry]
Type=Application
Name=OMXPlayer
Categories=AudioVideo;Player;
Exec=omxplayer -o hdmi %f
Terminal=true
Icon=emblem-video
http://jeffhoogland.blogspot.com.au/2012/08/howto-launch-omxplayer-via-gui.html

I have tried this and it has not worked but I cannot find anyone else reporting the same issues. (It is reported as working on the RPi)


I changed Execute-line to first open lxterminal and then insert the command "omxplayer -t..." for the file. This works perfectly for me.

[Desktop Entry]
Type=Application
Name=omxplayer
Categories=AudioVideo;Player;
Exec=lxterminal --command "omxplayer -t on --align center %f"
Icon=emblem-video

You might want to add "-o hdmi" after omxplayer if you want audio through HDMI (and remove "-t on --align center" if you don't need them).
Posts: 29
Joined: Thu Jul 19, 2012 1:15 pm
by diegoram » Tue Jan 22, 2013 12:28 pm
Sorry guys, i'm really rookie.
I was tryring to play a movie and I used "omxplayer -o hdmi -t on --align center file_name" and there are no sound, even tough the video starts with no problems.
Any Idea?
Posts: 1
Joined: Tue Jan 22, 2013 12:24 pm
by KenT » Tue Jan 22, 2013 1:11 pm
128 MB of RAM for the GPU might be required.
Pi Presents - A toolkit to produce multi-media interactive displays for museums, visitor centres, and more
Download from http://pipresents.wordpress.com
Posts: 607
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
by jojen » Mon Feb 25, 2013 10:23 pm
Hello guys,
if anyone is interested to play a html5 videos on a raspberry pi, you can take a look at this manual: http://lin.jojen.de/?p=32 It is a little pythen server to start the omxplayer and a userscript to replace the video tag to a "nativ application link"

Have fun ...
Jojen
Posts: 12
Joined: Tue Jan 08, 2013 9:53 pm
by gomako » Sat Mar 02, 2013 12:36 am
I use omxplayer as outlined in this post straight from the command line you get booting up (not from xterm).

http://stevenhickson.blogspot.co.uk/2012/12/running-omxplayer-from-command-line.html

I am a n00b too, and it helped me get audio out of my pi through hdmi. It plays pretty much everything nicely (including mkv, which look great!)

So I used:

Code: Select all
alias play='omxplayer -r -o hdmi'

to make an alias of the omxplayer stuff and use it like this:

Code: Select all
play mygreatmovie.avi


Hope that helps!
Posts: 4
Joined: Sun Jul 01, 2012 8:49 pm
by Super-Nathan » Mon Mar 11, 2013 1:36 am
I have a problem. When building new PiBang images, I have discovered that omxplayer is not in the repos. What happened to it?

http://archive.raspbian.org/raspbian/pool/main/o/
echo "Something Useful" > /dev/null
User avatar
Posts: 67
Joined: Sun Jun 17, 2012 6:56 am
Location: South Korea