Port XBMC to PS3 (PlayStation 3) to run on Linux ("Other OS") or natively on GameOS?

  Thread Rating:
  • 3 Votes - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #46
you'd bog it down seriously. remember, a gpu usually runs hundreds if not thousands of threads at a time. the cell can do 7.

statements like 'who needs hardware support' and 'the cell processor would play any 1080p video flawlessly' stinks of sony's hype mongery. it's not a matter of throwing any code at the cell and it will work. you have to write very specific code for a very particular processor (only 256kb local storage, need to dma everything etc) to get the best out of the cell and NO OSS media player supports this atm, expect it to take some time before they do.
find
Soulfly Offline
Junior Member
Posts: 9
Joined: Oct 2007
Reputation: 0
Post: #47
spiff Wrote:you'd bog it down seriously. remember, a gpu usually runs hundreds if not thousands of threads at a time. the cell can do 7.

Are you saying that XBMC codecs uses the GPU with mass-parallel-threading? Isn't this way more non-trivial than just using vector-computations on 6 SPUs (+2 PPC cores) (the 7th one is for the hypervisor on the PS3) ?
find
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #48
Soulfly Wrote:Are you saying that XBMC codecs uses the GPU with mass-parallel-threading?
Not for the codecs/decoding, but for the GUI rendering.

Basically XBMC on PS3 dicsussion is a moot point until Sony enables 3D hardware acceleration under Linux.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
psorcerer Offline
Junior Member
Posts: 7
Joined: Nov 2007
Reputation: 0
Post: #49
Gamester17 Wrote:Not for the codecs/decoding, but for the GUI rendering.

Basically XBMC on PS3 dicsussion is a moot point until Sony enables 3D hardware acceleration under Linux.

You don't need to wait for Sony:
http://forums.ps2dev.org/viewtopic.php?t...highlight=
find
Soulfly Offline
Junior Member
Posts: 9
Joined: Oct 2007
Reputation: 0
Post: #50
Gamester17 Wrote:Not for the codecs/decoding, but for the GUI rendering.

Basically XBMC on PS3 dicsussion is a moot point until Sony enables 3D hardware acceleration under Linux.

Why? For some 3D-effects? I don't see anything on my Xbox/XBMC that I want that needs 3D-hardware. I can nearly implement the 3D-effects I see there on a C64.
find
d4rk Offline
Team-XBMC Developer
Posts: 499
Joined: May 2007
Reputation: 1
Location: Albuquerque
Post: #51
Soulfly Wrote:Why? For some 3D-effects? I don't see anything on my Xbox/XBMC that I want that needs 3D-hardware. I can nearly implement the 3D-effects I see there on a C64.

XBMC uses a 3D API for its core drawing (skins/video/vizes/etc). The Linux port uses OpenGL, the Xbox version uses DirectX. Now just because it's called a 3D API, doesn't mean you have to do fancy "3D effects". XBMC (just like OS X) uses it mostly for 2D rendering (which is basically just a subset of 3D rendering). Without 3D acceleration, XBMC will barely run at 1-2 fps, which you can try by compiling the Linux port with SDL 2D instead of OpenGL.

Anyway, the bottom line is, a platform without 3D acceleration, will never be a viable target for XBMC. On the plus side, like psorcerer pointed out, there are some hackers that have made a lot of progress in accessing the RSX from within Linux. If this turns into a successful OpenGL implementation, then the PS3 will be a viable target.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


[Image: badge.gif]
find
Soulfly Offline
Junior Member
Posts: 9
Joined: Oct 2007
Reputation: 0
Post: #52
Given XBMC popularity, PS3 popularity and that the ps2dev devs made major progress with 3D-acceleration PS3 on Linux (they talking Accelerated X are months away) i'd say that

the race for the first screenshot of XBMC on PS3 is ON!

http://forums.ps2dev.org/viewtopic.php?p=60897#60897
http://www.youtube.com/watch?v=vuRLsB2q7QY
find
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #53
http://www.youtube.com/watch?v=vuRLsB2q7QY
Quote:This is an example of some code running on Linux, under the hypervisor talking to the Nvidia RSX (video card) on the PlayStation 3. This is done entirely without proprietary drivers.

Shown is 3 animated quads, drawn in immediate mode as well as a series of triangles in the background drawn using an index buffer. This demo is a modified version of IronPeter's libps3rsx from ps3dev.org as of November 13th. It's running using a patched 2.6.24 experimental, unofficial kernel on Gentoo Linux.

Until recently, not enough was known about how to use the RSX to make any headway to usable, free access to the 3D contexts on the GPU on the PS3. With some excellent work from people in both the Nouveau and PS2Dev groups, homebrew developers may soon be able to write their own 3D applications
For more information visit http://forums.ps2dev.org/viewtopic.php?p=60897
[EDIT]: Also checkout this http://forums.ps2dev.org/viewtopic.php?t...sc&start=0


Also, here is another project to keep on eye on: http://psubuntu.com
Quote:psubuntu.com shows you how to install and run the Ubuntu Linux operating system on a Playstation 3


UPDATE: FYI; looks like the developers over at forums.ps2dev.org are making progress with their libps3rsx API library for low-level access to hardware acceleration.

I posted a few questions about XBMC in the topic thread about the low-level libps3rsx API library:
http://forums.ps2dev.org/viewtopic.php?t...7b2cb6270f

...however as I'm not a programmer myself I think I did not manage to make them understand me (and I did not understand them for that matter).
(This post was last modified: 2007-12-06 12:44 by Gamester17.)
find
atom Offline
Junior Member
Posts: 12
Joined: Feb 2005
Reputation: 0
Post: #54
Cell is capable of doing anything XBMC is using the 3D card for. It is just different. Either wait for an OpenGL subset that uses Cell or implement something custom. There may even be other APIs in existence...
find
rodalpho Offline
Fan
Posts: 597
Joined: Nov 2006
Reputation: 17
Post: #55
Yeah, except that's never going to happen. Even if they get the GPU working in linux for 3D, the PPE is way too slow to play HD video on its own without GPU offloading. It's about the same speed as a 1.6Ghz PPC G5. If ffmpeg exploited all of the SPEs it would work, but that's not going to happen in this lifetime.
find
atom Offline
Junior Member
Posts: 12
Joined: Feb 2005
Reputation: 0
Post: #56
How about mplayer?

http://psubuntu.com/2007/11/11/optimizin...layer-ps3/
find
rodalpho Offline
Fan
Posts: 597
Joined: Nov 2006
Reputation: 17
Post: #57
That's pretty awesome! But xbmc/linux doesn't use mplayer anymore.
find
FlappySocks Offline
Junior Member
Posts: 23
Joined: Aug 2007
Reputation: 0
Post: #58
rodalpho Wrote:xbmc/linux doesn't use mplayer anymore.

I must have missed that bit of news. What are they using instead?
find
atom Offline
Junior Member
Posts: 12
Joined: Feb 2005
Reputation: 0
Post: #59
Apparently they're using ffmpeg. Smile

Here's a link to the start of a decent discussion. Someone I work with does development using the SPE's. I'll try and convince him to take a look at it.

http://lists.mplayerhq.hu/pipermail/ffmp...37021.html
find
rodalpho Offline
Fan
Posts: 597
Joined: Nov 2006
Reputation: 17
Post: #60
So much for pessimism! Looks like cell optimization in ffmpeg is fairly likely to come at some point. Very cool stuff.
find
Thread Closed