omxplayer
C++ C Other
Pull request Compare This branch is 34 commits ahead, 112 commits behind huceke:master.
Permalink
Failed to load latest commit information.
builds Added build for Debian Wheezy Aug 5, 2012
cores Initial import Mar 22, 2012
guilib Initial import Mar 22, 2012
linux Initial import Mar 22, 2012
utils Initial import Mar 22, 2012
BitstreamConverter.cpp Use FFmpeg 0.10.2 Jun 5, 2012
BitstreamConverter.h Use FFmpeg 0.10.2 Jun 5, 2012
COPYING Initial import Mar 22, 2012
DllAvCodec.h Use FFmpeg 0.10.2 Jun 5, 2012
DllAvFilter.h Use FFmpeg 0.10.2 Jun 5, 2012
DllAvFormat.h Use FFmpeg 0.10.2 Jun 5, 2012
DllAvUtil.h silence ffmpeg Jun 11, 2012
DllBCM.h Use FFmpeg 0.10.2 Jun 5, 2012
DllOMX.h Initial import Mar 22, 2012
DllSwResample.h Use FFmpeg 0.10.2 Jun 5, 2012
DynamicDll.cpp Initial import Mar 22, 2012
DynamicDll.h Initial import Mar 22, 2012
File.cpp Initial import Mar 22, 2012
File.h Initial import Mar 22, 2012
IAudioRenderer.h Initial import Mar 22, 2012
Makefile Removing dependency on ffmpeg_compiled and using ffmpeg instead Aug 1, 2012
Makefile.ffmpeg Updating for Rasbian build Jul 31, 2012
Makefile.include Changed CFLAGS to build either hard or softfp Aug 5, 2012
OMXAudio.cpp Merge remote-tracking branch 'upstream/master' Jun 9, 2012
OMXAudio.h Initial import Mar 22, 2012
OMXAudioCodecOMX.cpp Use FFmpeg 0.10.2 Jun 5, 2012
OMXAudioCodecOMX.h Use FFmpeg 0.10.2 Jun 5, 2012
OMXClock.cpp std::string and HTTP fix (from XBMC) Jun 9, 2012
OMXClock.h update reference clock instead waiting for starttime after seek. chan… Mar 25, 2012
OMXCore.cpp std::string and HTTP fix (from XBMC) Jun 9, 2012
OMXCore.h std::string and HTTP fix (from XBMC) Jun 9, 2012
OMXOverlay.h Initial import Mar 22, 2012
OMXOverlayCodec.h Initial import Mar 22, 2012
OMXOverlayCodecText.cpp Initial import Mar 22, 2012
OMXOverlayCodecText.h Initial import Mar 22, 2012
OMXOverlayText.h Initial import Mar 22, 2012
OMXPlayerAudio.cpp This is the quiet update. Removes all screen output except errors Jul 15, 2012
OMXPlayerAudio.h Merge branch 'master' of https://github.com/huceke/omxplayer Jun 11, 2012
OMXPlayerVideo.cpp This is the quiet update. Removes all screen output except errors Jul 15, 2012
OMXPlayerVideo.h std::string and HTTP fix (from XBMC) Jun 9, 2012
OMXReader.cpp This is the quiet update. Removes all screen output except errors Jul 15, 2012
OMXReader.h Merge branch 'master' of https://github.com/huceke/omxplayer Jun 11, 2012
OMXStreamInfo.cpp Initial import Mar 22, 2012
OMXStreamInfo.h Initial import Mar 22, 2012
OMXSubtitleTagSami.cpp Change to std::string in COMXSubtitleTagSami (from XBMC) Jun 13, 2012
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 std::string and HTTP fix (from XBMC) Jun 9, 2012
OMXVideo.h std::string and HTTP fix (from XBMC) Jun 9, 2012
RBP.h Initial import Mar 22, 2012
README.md Updated README.md for blogspot link Aug 4, 2012
install-debian-wheezy Adding install script for new debian-wheezy build Aug 5, 2012
install-rasbian-wheezy Updated with absolute path Aug 4, 2012
omxplayer Updating for Rasbian build Jul 31, 2012
omxplayer-dist.tar.gz Updated with quiet build options Jul 15, 2012
omxplayer.bin Quiet build Jul 15, 2012
omxplayer.cpp This is the quiet update. Removes all screen output except errors Jul 15, 2012
profiler.sh Initial import Mar 22, 2012
system.h Initial import Mar 22, 2012
uninstall.sh Check for the file omxplayer-dist.tar.gz to exist or exit. Jul 9, 2012

README.md

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.

This fork originated from the the omxplayer located at: https://github.com/huceke/omxplayer/. Below is a list of differences between this native build and it's origin.

Primarily, the Makefiles of this omxplayer project have been customized to support building the project on the Raspberry Pi, instead of defaulting to cross-compiling them on another system.

Other differences:

The default output is HDMI, so using omxplayer -o hdmi video.mp4, is not necessary, just omxplayer video.mp4.

On the other hand, if you want audio output from the jack, then you need to use omxplayer -o local video.mp4.

The default location for the project to be downloaded and built from is /usr/local/src on the Raspberry Pi.

The default location for the omxplayer script and omxplayer.bin is /usr/local/bin instead of /usr/bin.

The default location for the ffmpeg libraries is /usr/local/lib instead of /usr/lib/omxplayer.

The Raspberry Pi firmware library is downloaded from it's github repository and used during the build.

The required ffmpeg sources are only downloaded once, when you begin building, not for every build.

There is the following additional make commands: install, uninstall, sources, clean-sources.

It is possible to install a pre-built omxplayer for Raspbian Wheezy and Debian Squeeze.

Please read all the instructions before beginning them.

Additional details about this project can be found at http://wrightrocket.blogspot.com/2012/08/building-omxplayer-for-raspbian-on.html.

Configuring RAM for the build

sudo rpi-update 240

Installing dependencies for the omxplayer

sudo apt-get install libpcre3-dev libboost-dev git fbset

Downloading omxplayer

sudo chown pi:pi /usr/local/src
cd /usr/local/src
git clone git://github.com/wrightrocket/omxplayer.git

Compiling omxplayer

cd /usr/local/src/omxplayer
make sources
make -f Makefile.ffmpeg
make -f Makefile.ffmpeg install
make
make dist

Installing omxplayer

If you have completed compiling omxplayer:

sudo make install

If you don't want to build it yourself use: sudo ./install-raspbian-wheezy or: sudo ./install-debian-squeeze

Uninstalling omxplayer

If you have compiled and installed omxplayer, but not cleaned the build directory:

sudo make uninstall

Cleaning the omxplayer

If you have completed compiling omxplayer, and are sure you don't want to uninstall omxplayer without re-compiling it:

make clean
make clean-sources

Configuring RAM for the player(Use 192 or 128)

sudo rpi-update 192

Using omxplayer

Usage: omxplayer [OPTIONS] [FILE]
Options :
         -h / --help                    print this help
         -a / --alang language          audio language        : e.g. ger
         -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                      switch tv into 3d mode
         -y / --hdmiclocksync           adjust display refresh rate to match video
         -t / --sid index               show subtitle with index

For example:

./omxplayer -o local test.mkv
omxplayer video.mp4