iPad 3 and xbmc?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
carbncl Offline
Junior Member
Posts: 18
Joined: Jun 2011
Reputation: 0
Post: #21
(2012-05-27 03:41)davilla Wrote:  don't build debug builds for iOS, they run much too slow.
I know, was just trying first with xcode project defaults, had to fix some compilation errors, and then tested a bit.
I was thinking OpenGL/hardware video decoding wouldn't use that much CPU, more GPU.

Just built in release (-O3) CPU dropped, to 50% in idle, 120% during play. framerate is improved, but still choppy and hardly watchable.
I hope I did something wrong Smile
(This post was last modified: 2012-05-27 04:12 by carbncl.)
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,397
Joined: Feb 2008
Reputation: 58
Post: #22
"had to fix some compilation errors", what errors ?

also xbmc.log will show if vtb is being used or not.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
(This post was last modified: 2012-05-27 04:14 by davilla.)
find quote
carbncl Offline
Junior Member
Posts: 18
Joined: Jun 2011
Reputation: 0
Post: #23
Had to change this
Code:
diff --git a/xbmc/osx/ios/XBMCController.mm b/xbmc/osx/ios/XBMCController.mm
index 269b1ec..e11dfcc 100644
--- a/xbmc/osx/ios/XBMCController.mm
+++ b/xbmc/osx/ios/XBMCController.mm
@@ -58,9 +58,10 @@ extern NSString* kBRScreenSaverDismissed;
//--------------------------------------------------------------
//

-@interface XBMCController ()
-UIWindow *m_window;
-IOSEAGLView  *m_glView;
+@interface XBMCController () {
+  UIWindow *m_window;
+  IOSEAGLView  *m_glView;
+}
@end

@interface UIApplication (extended)
@@ -159,7 +160,7 @@ IOSEAGLView  *m_glView;
   [doubleFingerSingleTap release];

   //1 finger single long tab - right mouse - alernative
-  UITapGestureRecognizer *singleFingerSingleLongTap = [[UILongPressGestureRecognizer alloc]
+  UILongPressGestureRecognizer *singleFingerSingleLongTap = [[UILongPressGestureRecognizer alloc]
                                                         initWithTarget:self action:@selector(handleSingleFingerSingleLongTap:)];  
   singleFingerSingleLongTap.delaysTouchesBegan = YES;
   singleFingerSingleLongTap.delaysTouchesEnded = YES;

Also changed code signing settings to use some profile, was too lazy to search for how to bypass apple signing, last time I did it took hours patching some Xcode binaries... Wink

VTB... hmm no idea of what it is... searching... SD renders fine at 40% CPU.

EDIT:
VideoToolBoxDecoder maybe? :
Code:
04:25:56 T:218415104   DEBUG: CDVDFactoryCodec: compiled in hardware support: VDADecoder:no VideoToolBoxDecoder:yes CrystalHD:no OpenMax:no
04:25:56 T:218415104   DEBUG: FactoryCodec - Video:  - Opening
04:25:56 T:218415104   DEBUG: DllAvUtilBase: Using libavutil system library
04:25:56 T:218415104   DEBUG: DllAvCodec: Using libavcodec system library
04:25:56 T:218415104   DEBUG: DllSwScale: Using libswscale system library
04:25:56 T:218415104   DEBUG: DllAvFilter: Using libavfilter system library
04:25:56 T:218415104  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
04:25:56 T:218415104   DEBUG: FactoryCodec - Video: ff-h264 - Opened
04:25:56 T:218415104  NOTICE: Creating video thread
04:25:56 T:273862656  NOTICE: running thread: video_thread
04:25:56 T:218415104  NOTICE: Opening audio stream: 1 source: 256
04:25:56 T:218415104  NOTICE: Finding audio codec for: 86019

EDIT2: Read some forums threads, I've basically followed README.ios instructions and (dumbly since there is no instructions about this in readme) hit run&build in Xcode.
So I guess I'm running it under mobile user and from what I've read it is probably sandboxed = not using VTB.
(This post was last modified: 2012-05-27 04:36 by carbncl.)
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,397
Joined: Feb 2008
Reputation: 58
Post: #24
VTB == VideoToolBox, it's how we do video hardware decode.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,397
Joined: Feb 2008
Reputation: 58
Post: #25
if you are running under xcode, then it's an xcode sandbox and that prevents vtb.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
carbncl Offline
Junior Member
Posts: 18
Joined: Jun 2011
Reputation: 0
Post: #26
Yup that's was definitely my issue, thanks for pointing me to the right direction
Fixed this and now works perfectly @73% CPU, perfect framerate, amazing in retina Smile

Thanks again, maybe adding a small line at the end of README.ios stating this would prevent noobs like me to do this mistake Wink
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,397
Joined: Feb 2008
Reputation: 58
Post: #27
"Fixed this", explain please.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
carbncl Offline
Junior Member
Posts: 18
Joined: Jun 2011
Reputation: 0
Post: #28
As suggested, just moved the .app outside its sandbox to /Applications, so it now use VTB properly.
(This post was last modified: 2012-05-27 05:15 by carbncl.)
find quote
xamphear Offline
Junior Member
Posts: 4
Joined: May 2012
Reputation: 0
Post: #29
Is there a .deb file of your build available for those of us without the sdk and/or a mac to build it on?
find quote
jmck Offline
Junior Member
Posts: 3
Joined: May 2012
Reputation: 0
Post: #30
can xbmc play 1080p on iPad3/ATV2 v2 with VTB?
find quote
Post Reply