GPU video acceleration made possible by Apple?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nerpissad Offline
Junior Member
Posts: 39
Joined: Dec 2009
Reputation: 0
Location: amsterdam, netherlands
Post: #41
fredaroony Wrote:You must be doing something wrong because the increase in performance is dramatic and I also have a 9400 mini.

I second that! as expected, not all media files benefit from this but the majority of mine do.
find quote
jayhawk785 Offline
Aeon Group
Posts: 230
Joined: Oct 2008
Post: #42
fredaroony Wrote:You must be doing something wrong because the increase in performance is dramatic and I also have a 9400 mini.

I'll agree--I tested it last night and my processor load was down to around 35-40% on 1080p content. As mentioned, vc1 streams are not helped by the gpu so maybe you were playing one of those. The only one that wasn't helped in my limited testing was this avatar file:

Code:
+ EBML head
|+ Doc type: matroska
|+ Doc type version: 2
|+ Doc type read version: 2
+ Segment, size 36778476464
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 4025)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: libebml v0.8.0 + libmatroska v0.9.0
| + Writing application: mkvmerge v3.3.0 ('Language') built on Mar 24 2010 14:59:24
| + Duration: 9701.686s (02:41:41.686)
| + Date: Sat Apr 24 14:06:46 2010 UTC
| + Segment UID: 0x82 0x31 0x2d 0x0b 0x28 0x32 0x17 0xcd 0x89 0xcf 0x06 0x23 0xff 0x7b 0xa6 0xb0
|+ Segment tracks
| + A track
|  + Track number: 1
|  + Track UID: 1
|  + Track type: video
|  + Enabled: 1
|  + Default flag: 0
|  + Forced flag: 0
|  + Lacing flag: 0
|  + MinCache: 1
|  + Timecode scale: 1
|  + Max BlockAddition ID: 0
|  + Codec ID: V_MPEG4/ISO/AVC
|  + Codec decode all: 1
|  + CodecPrivate, length 198
|  + Default duration: 41.708ms (23.976 fps for a video track)
|  + Language: und
|  + Video track
|   + Pixel width: 1920
|   + Pixel height: 1080
|   + Interlaced: 0
|   + Display width: 1920
|   + Display height: 1080
| + A track
|  + Track number: 2
|  + Track UID: 1337713817
|  + Track type: audio
|  + Enabled: 1
|  + Default flag: 1
|  + Forced flag: 0
|  + Lacing flag: 1
|  + MinCache: 0
|  + Timecode scale: 1
|  + Max BlockAddition ID: 0
|  + Codec ID: A_DTS
|  + Codec decode all: 1
|  + Language: eng
|  + Audio track
|   + Sampling frequency: 48000
|   + Channels: 6
| + A track
|  + Track number: 3
|  + Track UID: 3240295822
|  + Track type: subtitles
|  + Enabled: 1
|  + Default flag: 1
|  + Forced flag: 0
|  + Lacing flag: 0
|  + MinCache: 0
|  + Timecode scale: 1
|  + Max BlockAddition ID: 0
|  + Codec ID: S_TEXT/UTF8
|  + Codec decode all: 1
|  + Language: dut
| + A track
|  + Track number: 4
|  + Track UID: 1702793138
|  + Track type: subtitles
|  + Enabled: 1
|  + Default flag: 0
|  + Forced flag: 0
|  + Lacing flag: 0
|  + MinCache: 0
|  + Timecode scale: 1
|  + Max BlockAddition ID: 0
|  + Codec ID: S_TEXT/UTF8
|  + Codec decode all: 1
|  + Language: eng
|+ EbmlVoid (size: 1024)
|+ Cluster
find quote
RckStr Offline
Senior Member
Posts: 172
Joined: Dec 2009
Reputation: 0
Post: #43
I reinstalled plex from scratch, same problem. then i toggled the refresh rate from 60 to 50 and back to 60 hz. Voilla, Plex shaves up more than 50% of the CPU usage. 2 days after Apple released the API. How fucking amazing isnt this!!!!!

Movies i rip from bluray myself with crazy high bitrate even plays flawless now. Talk about a badass improvement. What plex does now is amazing. Can hardly wait for this in XBMC!
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,397
Joined: Feb 2008
Reputation: 58
Post: #44
jayhawk785 Wrote:I'll agree--I tested it last night and my processor load was down to around 35-40% on 1080p content. As mentioned, vc1 streams are not helped by the gpu so maybe you were playing one of those. The only one that wasn't helped in my limited testing was this avatar file:

Code:
+ EBML head
|+ Doc type: matroska
|+ Doc type version: 2
|+ Doc type read version: 2
+ Segment, size 36778476464
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 4025)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: libebml v0.8.0 + libmatroska v0.9.0
| + Writing application: mkvmerge v3.3.0 ('Language') built on Mar 24 2010 14:59:24
| + Duration: 9701.686s (02:41:41.686)
| + Date: Sat Apr 24 14:06:46 2010 UTC
| + Segment UID: 0x82 0x31 0x2d 0x0b 0x28 0x32 0x17 0xcd 0x89 0xcf 0x06 0x23 0xff 0x7b 0xa6 0xb0
|+ Segment tracks
| + A track
|  + Track number: 1
|  + Track UID: 1
|  + Track type: video
|  + Enabled: 1
|  + Default flag: 0
|  + Forced flag: 0
|  + Lacing flag: 0
|  + MinCache: 1
|  + Timecode scale: 1
|  + Max BlockAddition ID: 0
|  + Codec ID: V_MPEG4/ISO/AVC
|  + Codec decode all: 1
|  + CodecPrivate, length 198
|  + Default duration: 41.708ms (23.976 fps for a video track)
|  + Language: und
|  + Video track
|   + Pixel width: 1920
|   + Pixel height: 1080
|   + Interlaced: 0
|   + Display width: 1920
|   + Display height: 1080
| + A track
|  + Track number: 2
|  + Track UID: 1337713817
|  + Track type: audio
|  + Enabled: 1
|  + Default flag: 1
|  + Forced flag: 0
|  + Lacing flag: 1
|  + MinCache: 0
|  + Timecode scale: 1
|  + Max BlockAddition ID: 0
|  + Codec ID: A_DTS
|  + Codec decode all: 1
|  + Language: eng
|  + Audio track
|   + Sampling frequency: 48000
|   + Channels: 6
| + A track
|  + Track number: 3
|  + Track UID: 3240295822
|  + Track type: subtitles
|  + Enabled: 1
|  + Default flag: 1
|  + Forced flag: 0
|  + Lacing flag: 0
|  + MinCache: 0
|  + Timecode scale: 1
|  + Max BlockAddition ID: 0
|  + Codec ID: S_TEXT/UTF8
|  + Codec decode all: 1
|  + Language: dut
| + A track
|  + Track number: 4
|  + Track UID: 1702793138
|  + Track type: subtitles
|  + Enabled: 1
|  + Default flag: 0
|  + Forced flag: 0
|  + Lacing flag: 0
|  + MinCache: 0
|  + Timecode scale: 1
|  + Max BlockAddition ID: 0
|  + Codec ID: S_TEXT/UTF8
|  + Codec decode all: 1
|  + Language: eng
|+ EbmlVoid (size: 1024)
|+ Cluster

Icky, what did this output come from, there's zero info about the video encoding besides Codec ID: V_MPEG4/ISO/AVC and size. Mediainfo tells all, goggle it, get it, use it and nothing else.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
jayhawk785 Offline
Aeon Group
Posts: 230
Joined: Oct 2008
Post: #45
davilla Wrote:Icky, what did this output come from, there's zero info about the video encoding besides Codec ID: V_MPEG4/ISO/AVC and size. Mediainfo tells all, goggle it, get it, use it and nothing else.

haha, i knew that was coming. I have to do it from command line, and thats all i could get to install remotely. I've updated on my lunch Wink

Code:
Format                           : Matroska
File size                        : 34.3 GiB
Duration                         : 2h 41mn
Overall bit rate                 : 30.3 Mbps
Encoded date                     : UTC 2010-04-24 14:06:46
Writing application              : mkvmerge v3.3.0 ('Language') built on Mar 24 2010 14:59:24
Writing library                  : libebml v0.8.0 + libmatroska v0.9.0

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 2h 41mn
Bit rate                         : 28.2 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 23.976 fps
Bits/(Pixel*Frame)               : 0.568
Stream size                      : 31.9 GiB (93%)

Audio
ID                               : 2
Format                           : DTS
Format/Info                      : Digital Theater Systems
Codec ID                         : A_DTS
Duration                         : 2h 41mn
Bit rate mode                    : Constant
Bit rate                         : 1 510 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Resolution                       : 24 bits
Stream size                      : 1.71 GiB (5%)
Language                         : English

Text #1
ID                               : 3
Format                           : UTF-8
Codec ID                         : S_TEXT/UTF8
Codec ID/Info                    : UTF-8 Plain Text
Language                         : Dutch

Text #2
ID                               : 4
Format                           : UTF-8
Codec ID                         : S_TEXT/UTF8
Codec ID/Info                    : UTF-8 Plain Text
Language                         : English
find quote
RckStr Offline
Senior Member
Posts: 172
Joined: Dec 2009
Reputation: 0
Post: #46
Anyone have any idea if apple plans on releasing the api for other gpu`s aswell? Granted, alot of macs will be covered with the api currently out, but youd think they would release api`s for all cards they use that support x264 acceleration. After all, isnt this something they released primarily so macs would perform better on hulu and the likes?
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,397
Joined: Feb 2008
Reputation: 58
Post: #47
Up running and seems stable in svn trunk. I'm seeing 25-35 CPU percent (100 - idle percent via top) under a 2.4GHz MacBook. Start building Smile


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
smush420 Offline
Senior Member
Posts: 151
Joined: Oct 2009
Reputation: 0
Post: #48
Great news davilla, which release should I download to try? 29565?
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,397
Joined: Feb 2008
Reputation: 58
Post: #49
smush420 Wrote:Great news davilla, which release should I download to try? 29565?

r29647


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
smush420 Offline
Senior Member
Posts: 151
Joined: Oct 2009
Reputation: 0
Post: #50
Do you have to enable something?

Edit--Downloaded wrong svn, gonna try again in the morning
(This post was last modified: 2010-04-29 06:49 by smush420.)
find quote
Post Reply