omxplayer
C++ C Other
Permalink
Failed to load latest commit information.
cores Initial import Mar 22, 2012
fonts added FreeSans.ttf as default font Aug 2, 2012
guilib Initial import Mar 22, 2012
linux Initial import Mar 22, 2012
utils Add timestamps to log Apr 27, 2013
.gitignore added .gitignore file Aug 12, 2012
BitstreamConverter.cpp Fix for WMV3 files. No bitstream mangling is required for WMV3 or VC1… Aug 28, 2012
BitstreamConverter.h Fix for WMV3 files. No bitstream mangling is required for WMV3 or VC1… Aug 28, 2012
COPYING Initial import Mar 22, 2012
DllAvCodec.h Fix sound with recent FFmpeg by converting from av_audio_convert API … Jan 23, 2013
DllAvFilter.h fix build against ffmpeg >= 1.0 Jan 20, 2013
DllAvFormat.h Use FFmpeg 0.10.2 Jun 5, 2012
DllAvUtil.h silence ffmpeg Jun 11, 2012
DllBCM.h Pick up some fixes from xbmc. Jan 23, 2013
DllOMX.h Initial import Mar 22, 2012
DllSwResample.h Fix sound with recent FFmpeg by converting from av_audio_convert API … Jan 23, 2013
DynamicDll.cpp Initial import Mar 22, 2012
DynamicDll.h Initial import Mar 22, 2012
File.cpp Fix streaming video from named pipe Jan 3, 2013
File.h Initial import Mar 22, 2012
IAudioRenderer.h Add new options to configure audio and video file reading queues, and… Mar 25, 2013
Makefile Merge pull request #102 from twolife/master Feb 1, 2013
Makefile.ffmpeg Support ffmpeg 1.2 and float planar format Apr 20, 2013
Makefile.include fixed Makefile.include for buildroot Aug 2, 2012
OMXAudio.cpp Don't query PCM info when in passthough mode, it returns an error Apr 22, 2013
OMXAudio.h Add new options to configure audio and video file reading queues, and… Mar 25, 2013
OMXAudioCodecOMX.cpp Support ffmpeg 1.2 and float planar format Apr 20, 2013
OMXAudioCodecOMX.h Support ffmpeg 1.2 and float planar format Apr 20, 2013
OMXClock.cpp More care with going into and out of buffering. Mar 25, 2013
OMXClock.h external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
OMXCore.cpp Remove log messages for timeout failure when timeout=0 Feb 23, 2013
OMXCore.h chmod fix Dec 27, 2012
OMXOverlay.h Initial import Mar 22, 2012
OMXOverlayCodec.h Initial import Mar 22, 2012
OMXOverlayCodecText.cpp external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
OMXOverlayCodecText.h Initial import Mar 22, 2012
OMXOverlayText.h Initial import Mar 22, 2012
OMXPlayerAudio.cpp Support ffmpeg 1.2 and float planar format Apr 20, 2013
OMXPlayerAudio.h Add new options to configure audio and video file reading queues, and… Mar 25, 2013
OMXPlayerSubtitles.cpp external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
OMXPlayerSubtitles.h external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
OMXPlayerVideo.cpp More care with going into and out of buffering. Mar 25, 2013
OMXPlayerVideo.h Add new options to configure audio and video file reading queues, and… Mar 25, 2013
OMXReader.cpp Use av_dump_format output for -i info option Mar 25, 2013
OMXReader.h external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
OMXStreamInfo.cpp Initial import Mar 22, 2012
OMXStreamInfo.h Initial import Mar 22, 2012
OMXSubtitleTagSami.cpp external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
OMXSubtitleTagSami.h Change to std::string in COMXSubtitleTagSami (from XBMC) Jun 13, 2012
OMXThread.cpp Initial import Mar 22, 2012
OMXThread.h Initial import Mar 22, 2012
OMXVideo.cpp Add new options to configure audio and video file reading queues, and… Mar 25, 2013
OMXVideo.h Add new options to configure audio and video file reading queues, and… Mar 25, 2013
RBP.h Initial import Mar 22, 2012
README.md Point at active repo in readme Jun 18, 2013
Srt.cpp external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
Srt.h external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
Subtitle.h external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
SubtitleRenderer.cpp external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
SubtitleRenderer.h external SRT subtitles; smaller, customizable, subtitle buffer size; … Jan 26, 2013
Unicode.cpp OpenVG subtitles Aug 1, 2012
Unicode.h OpenVG subtitles Aug 1, 2012
omxplayer Added logging -g flag Mar 21, 2013
omxplayer.cpp Added --keys / -k to list key bindings. Apr 25, 2013
prepare-native-raspbian.sh Add Stasik0's prepare-native-raspbian.sh script to help building on t… Mar 26, 2013
profiler.sh Initial import Mar 22, 2012
system.h Initial import Mar 22, 2012

README.md

This tree is no longer under active delevopment. Updates will occur here: https://github.com/popcornmix/omxplayer

OMXPlayer

OMXPlayer is a commandline OMX player for the Raspberry Pi. It was developed as a testbed for the XBMC Raspberry PI implementation and is quite handy to use standalone.

Downloading OMXPlayer

git clone git://github.com/huceke/omxplayer.git

Compiling OMXPlayer

GCC version 4.7 is required.

Cross Compiling

You need the content of your sdcard somewhere mounted or copied. There might be development headers to install on the running Pi system for the crosscompiling.

Edit Makefile.include and change the settings according your locations.

make ffmpeg
make
make dist

Installing OMXPlayer

Copy over omxplayer-dist/* to the Pi /. You may want to specify a valid font path inside the omxplayer shell script.

Compiling on the Pi

You can also compile it on the PI the native way ;) Run this script (which will install packages and update firmware) ./prepare-native-raspbian.sh and build with make ffmpeg make

Using OMXPlayer

Usage: omxplayer [OPTIONS] [FILE]
Options :
         -h / --help                    print this help
         -n / --aidx  index             audio stream index    : e.g. 1
         -o / --adev  device            audio out device      : e.g. hdmi/local
         -i / --info                    dump stream format and exit
         -s / --stats                   pts and buffer stats
         -p / --passthrough             audio passthrough
         -d / --deinterlace             deinterlacing
         -w / --hw                      hw audio decoding
         -3 / --3d mode                 switch tv into 3d mode (e.g. SBS/TB)
         -y / --hdmiclocksync           adjust display refresh rate to match video (default)
         -z / --nohdmiclocksync         do not adjust display refresh rate to match video
         -t / --sid index               show subtitle with index
         -r / --refresh                 adjust framerate/resolution to video
         -g / --genlog                  generate log file
         -l / --pos n                   start position (in seconds)
              --boost-on-downmix        boost volume when downmixing
              --vol n                   Set initial volume in millibels (default 0)
              --subtitles path          external subtitles in UTF-8 srt format
              --font path               subtitle font
                                        (default: /usr/share/fonts/truetype/freefont/FreeSans.ttf)
              --font-size size          font size as thousandths of screen height
                                        (default: 55)
              --align left/center       subtitle alignment (default: left)
              --lines n                 number of lines to accommodate in the subtitle buffer
                                        (default: 3)
              --win "x1 y1 x2 y2"       Set position of video window
              --audio_fifo  n           Size of audio output fifo in seconds
              --video_fifo  n           Size of video output fifo in MB
              --audio_queue n           Size of audio input queue in MB
              --video_queue n           Size of video input queue in MB

For example:

./omxplayer -p -o hdmi test.mkv

Key Bindings

While playing you can use the following keys to control omxplayer:

z           Show Info
1           Decrease Speed
2           Increase 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
d           Subtitle delay -250 ms
f           Subtitle delay +250 ms
q           Exit OMXPlayer
Space or p  Pause/Resume
-           Decrease Volume
+           Increase Volume
Left Arrow  Seek -30 s
Right Arrow Seek +30 s
Down Arrow  Seek -600 s
Up Arrow    Seek +600 s