Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Thu Jul 24, 2014 5:00 am

All times are UTC - 8 hours


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 123 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 9  Next
Author Message
 Post subject:
Unread postPosted: Sun Sep 05, 2004 12:47 pm 
Offline
User avatar

Joined: Thu Nov 27, 2003 12:30 pm
Posts: 547
Location: london
Hey vegac, does the pixeltex route not scale using textures? Surely Octanes at least have enough oomph for an extra context switch and a glCopyTexSubImage2D()? I seem to recall seeing 240 MPixels/sec quoted for SSE, a PAL stream is only like 10 or something...


Top
 Profile  
 
 Post subject:
Unread postPosted: Sun Sep 05, 2004 5:02 pm 
Offline

Joined: Tue Feb 24, 2004 4:10 pm
Posts: 9445
vegac wrote:
The problem with the idea of the initial buffering is that no matter how big of a buffer you make, it will eventually run out because the slower O2's can't keep up with the codec...

Meaning: Even if you buffer 10 frames, by the time you hit frame 15 your buffer is depleted and you're lagging again - the only way to really do this would be to buffer enough to compensate for the remaining of the decode time - ...


well, you *could* introduce commercials ... [ ducking and running ]


Top
 Profile  
 
 Post subject:
Unread postPosted: Sun Sep 05, 2004 6:01 pm 
Offline
User avatar

Joined: Tue Oct 21, 2003 1:07 am
Posts: 4226
Location: Rosario / Santa Fe / República Argentina
hamei wrote:
well, you *could* introduce commercials ... [ ducking and running ]


....whoahahahahaha!!! :lol: :D

Oh man; you're really unique!!!; hehehehe!!!

:lol: :lol: :lol:

_________________
Oh!, let me write that!

https://www.facebook.com/GeekTronix
https://geekli.st/GeekTronixShop
https://www.rebelmouse.com/GeekTronixShop/
http://twitter.com/GeekTronixShop
http://www.youtube.com/GeekTronixStream


Top
 Profile  
 
 Post subject:
Unread postPosted: Sun Sep 05, 2004 9:08 pm 
Offline

Joined: Thu Jan 23, 2003 11:34 am
Posts: 706
lewis wrote:
Hey vegac, does the pixeltex route not scale using textures? Surely Octanes at least have enough oomph for an extra context switch and a glCopyTexSubImage2D()? I seem to recall seeing 240 MPixels/sec quoted for SSE, a PAL stream is only like 10 or something...


I had started working on a render-to-texture approach (basically working just like the O2's dmbuffer setup, only without the dmbuffers) but was getting errors about creating a 1024x512 texture + a 1024x512 pbuffer (needed for any video with a width larger than 512 and a height larger than 256 pixels). I'm assuming it came down to lack of vram but hey, all I have is an O2 so it's hard for me to test / debug these sorts of things.

The code is (mostly) in there so some adventurous soul could search through vo_sgi.c for references to use_rendertotex :)


Top
 Profile  
 
 Post subject:
Unread postPosted: Sun Sep 05, 2004 10:24 pm 
Offline

Joined: Sun Oct 05, 2003 7:42 am
Posts: 786
Location: Frankfurt (Rhein-Main Area) / Germany
PBuffers on SGIs are kind of weird .. I guess you might run out of luck.

Matthias

_________________
Life is what happens while we are making other plans


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon Sep 06, 2004 12:38 am 
Offline
User avatar

Joined: Tue Jan 13, 2004 10:57 am
Posts: 136
Location: Enschede, The Netherlands
vegac wrote:
lewis wrote:
Hey vegac, does the pixeltex route not scale using textures? Surely Octanes at least have enough oomph for an extra context switch and a glCopyTexSubImage2D()? I seem to recall seeing 240 MPixels/sec quoted for SSE, a PAL stream is only like 10 or something...


I had started working on a render-to-texture approach (basically working just like the O2's dmbuffer setup, only without the dmbuffers) but was getting errors about creating a 1024x512 texture + a 1024x512 pbuffer (needed for any video with a width larger than 512 and a height larger than 256 pixels).


I'm not yet sure this could be of any help, but it looks like the Video Resize Extension could come in handy.

Erik


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon Sep 06, 2004 12:58 am 
Offline

Joined: Sun Oct 05, 2003 7:42 am
Posts: 786
Location: Frankfurt (Rhein-Main Area) / Germany
SkyBound wrote:
I'm not yet sure this could be of any help, but it looks like the Video Resize Extension could come in handy.


Good idea, but there are some issues:

Code:
   Note: This extension is an SGIX (experimental) extension. The interface or other aspects of the extension may change. The extension is currently implemented only on InfiniteReality systems.


Matthias

_________________
Life is what happens while we are making other plans


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon Sep 06, 2004 4:51 pm 
Offline
User avatar

Joined: Thu Nov 27, 2003 12:30 pm
Posts: 547
Location: london
Shouldn't the pbuffer be the same size as the video? There's no power of two restriction, is there? I don't have TRAMs so I can't really play with this either :)


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon Sep 06, 2004 6:29 pm 
Offline

Joined: Thu Jan 23, 2003 11:34 am
Posts: 706
lewis:
You know you're right, for non-O2 machines the pbuffer wouldn't need to be a power-of-two size (that only is needed for O2 to do the copy-by-reference dmbuffer stuff). That's what I get for copying/pasting code, right? :)

Still, I'm not in any position to test it right now as all I have is my O2, and I'm about to be out of town for a week, but someone might want to play with it?


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Sep 07, 2004 9:20 am 
Offline
User avatar

Joined: Fri Sep 03, 2004 10:45 pm
Posts: 108
Location: SF Bay Area, CA
In that Warcraft video demo, I get 0.5fps or so, untill I hit an arrow key to fastforward/rewind.

Then I get about 20fps for a few seconds, then back to 0.5fps. I think it is only decoding I-frames or the like?

Octane Dual 250 R10k, 1GB ram, SSI gfx. Running 6.5.25


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Sep 07, 2004 10:52 am 
Offline
User avatar

Joined: Tue Oct 21, 2003 1:07 am
Posts: 4226
Location: Rosario / Santa Fe / República Argentina
vegac wrote:
Still, I'm not in any position to test it right now as all I have is my O2, and I'm about to be out of town for a week, but someone might want to play with it?


Sure!; just pass me an url to get the tar.gz, and I'll do happily! ;)

_________________
Oh!, let me write that!

https://www.facebook.com/GeekTronix
https://geekli.st/GeekTronixShop
https://www.rebelmouse.com/GeekTronixShop/
http://twitter.com/GeekTronixShop
http://www.youtube.com/GeekTronixStream


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Sep 07, 2004 11:43 am 
Offline

Joined: Mon Oct 20, 2003 5:49 am
Posts: 495
Location: NRW, Germany
Diego wrote:
Sure!; just pass me an url to get the tar.gz, and I'll do happily! ;)


well, source code and patches are both in the tardist.. :pixeltex is odyssey/mgras only though, so you'd have the same problem as vegac in this case :-)

i'll try to experiment with it further asap (probably not this week though)


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Sep 07, 2004 11:56 am 
Offline
User avatar

Joined: Tue Oct 21, 2003 1:07 am
Posts: 4226
Location: Rosario / Santa Fe / República Argentina
schleusel wrote:
well, source code and patches are both in the tardist.. :pixeltex is odyssey/mgras only though, so you'd have the same problem as vegac in this case :-)


...oooooops! :oops: :lol:

Sorry, fast-readings some times are dangeorus! ;)

_________________
Oh!, let me write that!

https://www.facebook.com/GeekTronix
https://geekli.st/GeekTronixShop
https://www.rebelmouse.com/GeekTronixShop/
http://twitter.com/GeekTronixShop
http://www.youtube.com/GeekTronixStream


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Sep 07, 2004 1:17 pm 
Offline
Moderator
Moderator
User avatar

Joined: Fri May 09, 2003 5:10 am
Posts: 2931
Location: Maryland, USA
Wow. This is really an amazing example of talent and teamwork. Congradulations all around on a very fine job. Once again, I am moved by how this place facilitates great things. Neko, if you are browsing this -- know you made this happen as much as anyone else. Thanks all!

Here are my run stats on an OCtane2 2x600Mhz, V12, 3GB RAM.
Code:
mplayer WarIII_Trailer1024.avi
MPlayer 1.0pre5 - MIPSpro Compilers: Version 7.4.2m (C) 2000-2004 MPlayer Team

CPU: SGI MIPS
Reading config file /opt/mplayer/etc/mplayer/mplayer.conf
Reading config file /usr/people/queen/.mplayer/config
Reading /usr/people/queen/.mplayer/codecs.conf: Can't open '/usr/people/queen/.mplayer/codecs.conf': No such file or directory
Reading /opt/mplayer/etc/mplayer/codecs.conf: 73 audio & 180 video codecs
font: can't open file: /usr/people/queen/.mplayer/font/font.desc
Font /opt/mplayer/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using usleep() timing
Can't open input config file /usr/people/queen/.mplayer/input.conf: No such file or directory
Can't open input config file /opt/mplayer/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config

Playing WarIII_Trailer1024.avi.
Cache fill:  6.05% (507904 bytes)    AVI file format detected.
VIDEO:  [XVID]  1024x468  16bpp  24.000 fps  1503.5 kbps (183.5 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x20), ratio: 28000->176400 (224.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1920x1200 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Trying to force video codec driver family ffmpeg...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, big endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Big-Endian)
ao_sgi, init: Samplerate: 44100Hz Channels: Stereo Format Signed 16-bit (Big-Endian)
AO: [sgi] 44100Hz 2ch Signed 16-bit (Big-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
[mpeg4 @ 10772a60]looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
VDec: vo config request - 1024 x 468 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [sgi] 1024x468 => 1024x468 Planar YV12
[sgi] VPro (Odyssey) Hardware detected:
        running multithreaded,
        using software colorspace conversion (rgb)
        drawing via textures
A: 142.2 V: 142.2 A-V: -0.000 ct: -0.058  3414/3414  60%  0%  2.7% 11 0 1%%
Broken frame at 0x3D36D0                                                 
A: 143.3 V: 143.2 A-V:  0.001 ct: -0.042  3439/3439  60%  0%  2.7% 11 0 0%
ao_sgi, uninit: ...
X Error of failed request:  GLXBadDrawable
  Major opcode of failed request:  146 (GLX)
  Minor opcode of failed request:  11 (X_GLXSwapBuffers)
  Serial number of failed request:  97
  Current serial number in output stream:  99


CPU usage is always under 90%,, about 45% on each CPU (max is 200%).
The defaults are nicer to look at (e.g. blacker blacks) than the -vo sgi:pixeltex command line option, but that latter is a smidgen faster. Both are very watchable even at 1920x1200 full screen.

I'll give it a try on the UltimaVision tomorrow. Let me know what else I should try.

Lastly, I intend to take up the native Motif front-end challenge in due course. But would like for a more artistically inclined contributor to sketch out (say a RGB image) of how it should look (be shaped?). I know from my Performer lessons, that graphics context switches between motif and OpenGL can hurt performance so we'll have to watch out for that.


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue Sep 07, 2004 4:09 pm 
Offline

Joined: Tue Feb 24, 2004 4:10 pm
Posts: 9445
squeen wrote:
Here are my run stats on an Octane2 2x600Mhz, V12, 3GB RAM.


there are times when I hate you, squeen.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 123 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 9  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group