OMXPLAYER: AN ACCELERATED COMMAND LINE MEDIA PLAYER
Installed on Raspbian is a command line media player, called OMXPlayer. This is HW accelerated, and can play back many popular audio and video file formats.
OMXPlayer was developed by the Kodi project's Edgar Hucek.
OMXPlayer uses the OpenMAX (omx) hardware acceleration interface (API) which is the officially supported media API on the Raspberry Pi.
Basic usage
The simplest command line is omxplayer <name of media file>
. The media file can be audio or video or both. For the examples below, we used an H264 video file that is included with the standard Raspbian installation.
omxplayer /opt/vc/src/hello_pi/hello_video/test.h264
By default the audio is sent to the analog port. If you are using a HDMI-equipped display device with speakers, you need to tell omxplayer to send the au