Re: [CinCVS] X11-OpenGL slower than X11-XV ???

2007-05-01 Thread Kevin Brosius
On 2007-05-01 19:38, Dennis Schulmeister wrote:
> Hi,
> 
> > I think there is something odd in the OpenGL implementation.
> > try this: Have two videotracks. In the bottom one there is video. On the
> > top track there is a small piece of video like in this example:
> > http://www.raldee.net/cinelerra.png
> > 
> > Now play this. At the point where the first track has information, the
> > framerate drops from 25 to 7fps with OpenGL. With the X11-XV driver,
> > performance is 25fps all the way.
> > Now the same applies to a simple dissolve in one track. Framerate drops
> > with OpenGL driver as well whereas the X11-XV driver has a constant
> > framerate of 25.
> 
> This is exactly one of those problems I described in the thread "general
> cinelerra performance".
> 
> > My Card is a Gforce 7800 with the latest NVidia drivers.
> 
> My card is a GForce, too. I think it's GForce MX 4000 together with
> NVidia's binary drivers.
> 
> My suggestion is that all people with openGL-troubles post the card
> model and driver. I wouldn't be surprised if most of them (including
> myself) are using NVidia cards. There might be something fishy with
> their closed-source drivers.
> 

The 'closed source' NVidia drivers are what the cinelerra OpenGL support
was written against.  There was an attempt to make it work on ATI also,
and I believe it is working, but there seemed to be slight differences
in the ATI OpenGL 2.x implementation.

I don't think the MX 4000 card supports OpenGL 2.x, there is a table you
can check to be sure.

We have a pretty thorough OpenGL debug info section on one of the
wikis.  See: 
http://e.kevb.net/lurker/message/20060918.000650.88f48afa.en.html .

Some additional info about supported cards in:
http://e.kevb.net/lurker/message/20060910.144509.62812886.en.html
But it's probably easier to use the checks listed on the wiki page to
see which version your presently installed card and drivers support.

-- 
Kevin

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] X11-OpenGL slower than X11-XV ???

2007-05-01 Thread Dennis Schulmeister
Hi,

> I think there is something odd in the OpenGL implementation.
> try this: Have two videotracks. In the bottom one there is video. On the
> top track there is a small piece of video like in this example:
> http://www.raldee.net/cinelerra.png
> 
> Now play this. At the point where the first track has information, the
> framerate drops from 25 to 7fps with OpenGL. With the X11-XV driver,
> performance is 25fps all the way.
> Now the same applies to a simple dissolve in one track. Framerate drops
> with OpenGL driver as well whereas the X11-XV driver has a constant
> framerate of 25.

This is exactly one of those problems I described in the thread "general
cinelerra performance".

> My Card is a Gforce 7800 with the latest NVidia drivers.

My card is a GForce, too. I think it's GForce MX 4000 together with
NVidia's binary drivers.

My suggestion is that all people with openGL-troubles post the card
model and driver. I wouldn't be surprised if most of them (including
myself) are using NVidia cards. There might be something fishy with
their closed-source drivers.



Yours sincerely,
Dennis Schulmeister

-- 
Dennis Schulmeister - Schliffkopfweg 12 - 76189 Karlsruhe  -  Germany
Tel: 0721/5978883 - Fax: 0721/5705992 - [EMAIL PROTECTED]

http://www.windows3.de - http://www.denchris.de
http://www.audiominds.com - http://www.motagator.net/bands/65


___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] X11-OpenGL slower than X11-XV ???

2007-05-01 Thread harm Lubbers
Graham Evans schreef:
> mark stavar wrote:
>> I am getting the same results -- my playback is faster and smoother
>> with X11-Xv than with OpenGL.  Now mine is probably not a hig-end
>> graphics card (and a little dated now) but it supports OpenGL 2.0.  A
>> tad disappointing :-(
>>
> Hi mark
>
> Like Bruce you probably have a problem of some sort.  I just tried out
> the open gl video driver (Preferences>Video Out>Video Driver>OpenGL)
> and got 30 fps for the following effects chain playing in Open GL:
> camera z enlarge 2.2 (bicubic, gamma (no auto no histrogram), rgd and
> chromakey hsv)
>
I think there is something odd in the OpenGL implementation.
try this: Have two videotracks. In the bottom one there is video. On the
top track there is a small piece of video like in this example:
http://www.raldee.net/cinelerra.png

Now play this. At the point where the first track has information, the
framerate drops from 25 to 7fps with OpenGL. With the X11-XV driver,
performance is 25fps all the way.
Now the same applies to a simple dissolve in one track. Framerate drops
with OpenGL driver as well whereas the X11-XV driver has a constant
framerate of 25.

However, when I add an effect (like chromakey) to a single video
timeline (not the example above), the performance of the OpenGL driver
is much better (25fps) than X11-XV (11fps).

My Card is a Gforce 7800 with the latest NVidia drivers.

grtz
Harm


___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] X11-OpenGL slower than X11-XV ???

2007-05-01 Thread mark stavar

Further to the discussions that have been going on earlier about OpenGL
performance, it did another experiment running a couple of simple fades and
dissolves.  With X11-Xv, I was getting around 25 fps (give or take).  With
X11-GL and effect was being reduced to about 8, and this appeared on the
terminal screen.



FreezeFrameMain::process_buffer 1 334
Playback3D::print_error:
uniform sampler2D tex;
uniform float h_offset;
uniform float s_offset;
uniform float v_offset;
void main000()
{
   vec4 pixel = texture2D(tex, gl_TexCoord[0].st);
{
float r, g, b;
float h, s, v;
float min, max, delta;
float f, p, q, t;
r = pixel.r;
g = pixel.g;
b = pixel.b;
min = ((r < g) ? r : g) < b ? ((r < g) ? r : g) : b;
max = ((r > g) ? r : g) > b ? ((r > g) ? r : g) : b;
v = max;
delta = max - min;
if(max != 0.0 && delta != 0.0)
{
   s = delta / max;
   if(r == max)
   h = (g - b) / delta;
   else
   if(g == max)
   h = 2.0 + (b - r) / delta;
   else
   h = 4.0 + (r - g) / delta;

   h *= 60.0;
   if(h < 0.0)
   h += 360.0;
}
else
{
   s = 0.0;
   h = -1.0;
}
pixel.r = h;
pixel.g = s;
pixel.b = v;
}
   pixel.r += h_offset;
   pixel.g *= s_offset;
   pixel.b *= v_offset;
   if(pixel.r >= 360.0) pixel.r -= 360.0;
   if(pixel.r < 0.0) pixel.r += 360.0;
{
int i;
float r, g, b;
float h, s, v;
float min, max, delta;
float f, p, q, t;
h = pixel.r;
s = pixel.g;
v = pixel.b;
if(s == 0.0)
{
   r = g = b = v;
}
else
{
   h /= 60.0;
   i = int(h);
   f = h - float(i);
   p = v * (1.0 - s);
   q = v * (1.0 - s * f);
   t = v * (1.0 - s * (1.0 - f));

   if(i == 0)
   {
   r = v;
   g = t;
   b = p;
   }
   else
   if(i == 1)
   {
   r = q;
   g = v;
   b = p;
   }
   else
   if(i == 2)
   {
   r = p;
   g = v;
   b = t;
  }
   else
   if(i == 3)
   {
   r = p;
   g = q;
   b = v;
  }
   else
   if(i == 4)
   {
   r = t;
   g = p;
   b = v;
   }
   else
   if(i == 5)
   {
   r = v;
   g = p;
   b = q;
   }
}
pixel.r = r;
pixel.g = g;
pixel.b = b;
}
   gl_FragColor = pixel;
}

void main()
{
   main000();
}

Fragment info
-
(51) : warning C7050: "b.1-" might be used before being initialized
(51) : warning C7050: "g.1-" might be used before being initialized
(51) : warning C7050: "r.1-" might be used before being initialized

FreezeFrameMain::process_buffer 1 334



All offers of insight wisdom gratefully accepted.

Ciao,

marks


On 5/1/07, mark stavar <[EMAIL PROTECTED]> wrote:


Thanks Graham,

I would love to get the FPS you are talking about here.

I am not really clued up on such things.  glxgears reports around about
2800 fps. If anyone has any clues as to how I might check or tune things,
I'm all ears -- which makes me look kind of funny :)

Ciao,

marks

On 5/1/07, Graham Evans <[EMAIL PROTECTED]> wrote:
>
> mark stavar wrote:
> > I am getting the same results -- my playback is faster and smoother
> > with X11-Xv than with OpenGL.  Now mine is probably not a hig-end
> > graphics card (and a little dated now) but it supports OpenGL 2.0.  A
> > tad disappointing :-(
> >
> Hi mark
>
> Like Bruce you probably have a problem of some sort.  I just tried out
> the open gl video driver (Preferences>Video Out>Video Driver>OpenGL) and
> got 30 fps for the following effects chain playing in Open GL:
> camera z enlarge 2.2 (bicubic, gamma (no auto no histrogram), rgd and
> chromakey hsv)
>
> only 4 fps playing in X11-XV
>
> I also noticed that no restart is neccessary to swap video drivers just
> press stop and play.
>
> My video was H.264 video in a mov container and had sound (alsa driver).
>
> I have a pretty good setup with lots of memory but if your opengl is
> working properly you should be seeing a big contrast with the x11-xv
> driver.
>
> Graham
>
> ___
> Cinelerra mailing list
> Cinelerra@skolelinux.no
> https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
>



--
Mark Stavar

Swan Dancer Productions

Email:  [EMAIL PROTECTED]
Mobile: 0410 638 671

http://www.the-writers-retreat.com/





--
Mark Stavar

Swan Dancer Productions

Email:  [EMAIL PROTECTED]
Mobile: 0410 638 671

http://www.the-writers-retreat.com/


Re: [CinCVS] X11-OpenGL slower than X11-XV ???

2007-05-01 Thread mark stavar

Thanks Graham,

I would love to get the FPS you are talking about here.

I am not really clued up on such things.  glxgears reports around about 2800
fps. If anyone has any clues as to how I might check or tune things, I'm all
ears -- which makes me look kind of funny :)

Ciao,

marks

On 5/1/07, Graham Evans <[EMAIL PROTECTED]> wrote:


mark stavar wrote:
> I am getting the same results -- my playback is faster and smoother
> with X11-Xv than with OpenGL.  Now mine is probably not a hig-end
> graphics card (and a little dated now) but it supports OpenGL 2.0.  A
> tad disappointing :-(
>
Hi mark

Like Bruce you probably have a problem of some sort.  I just tried out
the open gl video driver (Preferences>Video Out>Video Driver>OpenGL) and
got 30 fps for the following effects chain playing in Open GL:
camera z enlarge 2.2 (bicubic, gamma (no auto no histrogram), rgd and
chromakey hsv)

only 4 fps playing in X11-XV

I also noticed that no restart is neccessary to swap video drivers just
press stop and play.

My video was H.264 video in a mov container and had sound (alsa driver).

I have a pretty good setup with lots of memory but if your opengl is
working properly you should be seeing a big contrast with the x11-xv
driver.

Graham

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra





--
Mark Stavar

Swan Dancer Productions

Email:  [EMAIL PROTECTED]
Mobile: 0410 638 671

http://www.the-writers-retreat.com/