Blue rect in my app

Hi
I wrote a little app showing a backgroundpic and 2 Videos on the
screen. on my development mashine all works fine but the app
has to run on a server. on this server the background is ok
but the Videos are only a blue recht on the screen.

here is a snipplet of my code :

image = IMG_Load(background.jpg);
SDL_BlitSurface(image, NULL, screen, NULL);
SDL_Flip(screen);

… that works fine but …

rect.x = is->xleft;
rect.y = is->ytop;
rect.w = is->width;
rect.h = is->height;

SDL_DisplayYUVOverlay(vp->bmp, &rect);

… that part of my code only works fine on my devel mashine?

Whats wrong ? Can anybody please tell me where my mistake is ?

Thanks
L Martens

LMartens wrote:

Hi
I wrote a little app showing a backgroundpic and 2 Videos on the
screen. on my development mashine all works fine but the app
has to run on a server. on this server the background is ok
but the Videos are only a blue recht on the screen.

What do you mean “run on a server” ? Remote X ?

here is a snipplet of my code :

image = IMG_Load(background.jpg);
SDL_BlitSurface(image, NULL, screen, NULL);
SDL_Flip(screen);

… that works fine but …

rect.x = is->xleft;
rect.y = is->ytop;
rect.w = is->width;
rect.h = is->height;

SDL_DisplayYUVOverlay(vp->bmp, &rect);

… that part of my code only works fine on my devel mashine?

Whats wrong ? Can anybody please tell me where my mistake is ?

A blue rectangle is usually the sign of a non working overlay.
Could you also add details about your hw/sw configuration ?

Stephane

Stephane Marchesin <stephane.marchesin wanadoo.fr> writes:

LMartens wrote:

Hi
I wrote a little app showing a backgroundpic and 2 Videos on the
screen. on my development mashine all works fine but the app
has to run on a server. on this server the background is ok
but the Videos are only a blue recht on the screen.

What do you mean “run on a server” ? Remote X ?

No ! The app is running local on al IBM eServer xSeries 346!

here is a snipplet of my code :

image = IMG_Load(background.jpg);
SDL_BlitSurface(image, NULL, screen, NULL);
SDL_Flip(screen);

… that works fine but …

rect.x = is->xleft;
rect.y = is->ytop;
rect.w = is->width;
rect.h = is->height;

SDL_DisplayYUVOverlay(vp->bmp, &rect);

… that part of my code only works fine on my devel mashine?

Whats wrong ? Can anybody please tell me where my mistake is ?

A blue rectangle is usually the sign of a non working overlay.
Could you also add details about your hw/sw configuration ?

I’m running Suse 8.2 on the Server and the devel mashine.
The graphiccard of the server is shown as a ATI RADEON VE.
It’s a 3200 CPU.

Here is how I configured the Surface :

flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;
flags |= SDL_FULLSCREEN;
screen = SDL_SetVideoMode(w, h, 0, flags);

I think I should try another graficcard?
What do you think?

Lorenz

L Martens wrote:

I’m running Suse 8.2 on the Server and the devel mashine.
The graphiccard of the server is shown as a ATI RADEON VE.
It’s a 3200 CPU.

Here is how I configured the Surface :

flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;
flags |= SDL_FULLSCREEN;
screen = SDL_SetVideoMode(w, h, 0, flags);

I think I should try another graficcard?

I have the same card, and overlays work fine.

Does it work if you use mplayer on the server for example (without SDL) ?

Stephane

Stephane Marchesin <stephane.marchesin wanadoo.fr> writes:

L Martens wrote:

I’m running Suse 8.2 on the Server and the devel mashine.
The graphiccard of the server is shown as a ATI RADEON VE.
It’s a 3200 CPU.

Here is how I configured the Surface :

flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;
flags |= SDL_FULLSCREEN;
screen = SDL_SetVideoMode(w, h, 0, flags);

I think I should try another graficcard?

I have the same card, and overlays work fine.

Does it work if you use mplayer on the server for example (without SDL) ?

Stephane

Hi Stephane
No !
If I start mplayer with :

mplayer test.mpg —> blue screen
mplayer -vo x11 test.mpg —> ok!
mplayer -vo sdl test.mpg —> blue screen

Lorenz

LMartens wrote:

Stephane Marchesin <stephane.marchesin wanadoo.fr> writes:

L Martens wrote:

I’m running Suse 8.2 on the Server and the devel mashine.
The graphiccard of the server is shown as a ATI RADEON VE.
It’s a 3200 CPU.

Here is how I configured the Surface :

flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;
flags |= SDL_FULLSCREEN;
screen = SDL_SetVideoMode(w, h, 0, flags);

I think I should try another graficcard?

I have the same card, and overlays work fine.

Does it work if you use mplayer on the server for example (without SDL) ?

Stephane

Hi Stephane
No !
If I start mplayer with :

mplayer test.mpg —> blue screen
mplayer -vo x11 test.mpg —> ok!
mplayer -vo sdl test.mpg —> blue screen

Ok. Your X overlays don’t seem to work. So it’s not an SDL bug.

I suggest you report it somewhere else (Xorg/XFree86 lists maybe ?), but
maybe your distro is a bit old…

Stephane