-
Notifications
You must be signed in to change notification settings - Fork 25
Kxmovie
Luis Fernandes edited this page May 26, 2013
·
3 revisions
Kxmovie is a library which adds a ffmpeg player to the app. Adding ffmpeg has a lot of drawbacks:
- software only decoding of MPEG2 streams (your iOS device will drain)
- software only for MPEG4 - because tvheadend uses a mkv or TS container
- royalties for AC3
- royalties for MPEG2
- it's just slow, buggy (hangs a lot) and it's not polished enough
- if you can run hardware accelerated MPEG2 / MKV streams, then you can run XBMC which is the right app to do this.
But if you want to add kxmovie and test it:
Get the code:
cd tvheadend-iphone-client/
git clone --recursive git://github.com/kolyvan/kxmovie.git
cd kxmovie
rake
# you need to have gas-preprocessor.pl in /usr/local/bin and have it 777, so
cp gas-preprocessor.pl /usr/local/bin
sudo chmod 777 /usr/local/bin/gas-preprocessor.pl
After the compilation is finished, drag the following files from kxmovie/kxmovie/output to the project
- KxMovieViewController.h
- kxmovie.bundle
- libavcodec.a , libavformat.a, libavutil.a, libkxmovie.a, libswresample.a, libswscale.a ( all lib*.a )
Go to Project / Target TvhClient / Build Phases - Link Binary With Libraries and verify that the libraries from kxmovie/output were added. Also add the following frameworks:
- OpenGLES.framework
- Accelerate.framework
- AudioToolbox.framework
- CoreAudio.framework
- MediaPlayer.framework
- libiconv.dylib
Uncoment #define KXMOVIE in TVHPlayStreamHelpController.m
"Play Stream" should popup in a red button.