The Raspbian OS for the Raspberry Pi comes preloaded with a media player called the omxplayer. This player has a distinct advantage that sets it apart from some of the other similar options and it is that it uses the hardware acceleration provided by the built-in GPU on the Pi. The only player known that does this is the XBMC player but it is not preinstalled on the Pi. But a sort of disadvantage is that by default it can only be operated using the command line interface, i.e. there is no GUI for the player. So if you would like to start playing your favourite media, i.e audio and/or video, ASAP here's what you need to do to get started with the omxplayer....
STEP 1: Fire up the terminal on your Pi.
STEP 2: Check if omxplayer is installed
already.
Type the following in the terminal window:
$ omxplayer
If you get a long list containing information about the commands which can be used to operate the omxplayer, for example something like '-h = shows all the options' etc., then you already have the omxplayer on your Pi. If so, skip the next step.
STEP 3: To install omxplayer on your Pi type
the following in the terminal window:
$ sudo apt-get install omxplayer
STEP 4: To use the omxplayer always follow the
undergiven template:
$ omxplayer [options] [file]
Undergiven are a handful of parameters from a long list that could be passed in place of [options]:
-h = shows all the options
-o hdmi = audio through hdmi
-t on = subtitles on
--align center = subtitles show on the center
--align left = subtitles show on the left
A few examples to illustrate the usage is given:
$ omxplayer -h - This lists all the options
$ omxplayer -o local MyVideo.avi - This plays the video file 'MyVideo.avi'
and puts the audio output on the local
audio jack on the pi.
Keep in mind that the file which you want to play should be contained in your present work directory. To know your present work directory type:
$ pwd
STEP 5: Controls for omxplayer.
Once your media file starts playing you would like to control it for example forward, rewind, play, pause, etc. For this omxplayer has some of the following options:
p / space = Pause
q = Quit
s = Toggle subtitles on/off
o = Goes forward a lot
- = decrease volume
+ = 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
p / space = Pause
q = Quit
s = Toggle subtitles on/off
o = Goes forward a lot
- = decrease volume
+ = 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
And many more.....
You are now all set for playing your favourite media on the Pi...
Do leave your comments about the post.....
No comments:
Post a Comment