Hi, I'm using MPlayer CVS-021107-20:11-2.95.4. When using -vo xv changing parameters like brightness or contrast works perfectly. While using -vo sdl:x11 which is supposed to use Xvideo I'm getting: Video attribute 'brightness' isn't supported by selected vo & vd! 0 0% Video attribute 'contrast' isn't supported by selected vo & vd! 4 0 0% -forcexv doesn't help. Is that (not supporting brightness and contrast changing) SDL or mplayer limitation? I'm trying to configure mplayer to allow switching from fullscreen to window mode and it seems that SDL is only suitable option. Thanks, -- Arkadiusz Miśkiewicz CS at FoE, Wroclaw University of Technology arekm@sse.pl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
Hi,
When using -vo xv changing parameters like brightness or contrast works perfectly.
While using -vo sdl:x11 which is supposed to use Xvideo I'm getting: Video attribute 'brightness' isn't supported by selected vo & vd! 0 0% Video attribute 'contrast' isn't supported by selected vo & vd! 4 0 0%
-forcexv doesn't help.
Is that (not supporting brightness and contrast changing) SDL or mplayer limitation?
it seems vo_sdl.c doesn't implement the video eq controls. so even if libsdl can do that, the mplayer-sdl interface is unable to pass this info
I'm trying to configure mplayer to allow switching from fullscreen to window mode and it seems that SDL is only suitable option. why? all x11 vo - including xv - can switch to/from fullscreen. press 'f'
A'rpi / Astral & ESP-team -- Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
Arpi <arpi@thot.banki.hu> writes:
I'm trying to configure mplayer to allow switching from fullscreen to window mode and it seems that SDL is only suitable option. why? all x11 vo - including xv - can switch to/from fullscreen. press 'f' Not exactly ,,works''. I'm using GNOME2 and in fullscreen when using xv I still see gnome-panel. Here is screenshot http://misie.k.pl/~misiek/mplayer.png (here is funny thing, it looks weird in galeon2 but normally in xv).
Also xscreensaver is not disabled automaticly and thus I'm using -stop_xscreensaver but that's another story.
A'rpi / Astral & ESP-team
-- Arkadiusz Miśkiewicz CS at FoE, Wroclaw University of Technology arekm@sse.pl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
--- Arkadiusz Miskiewicz <misiek@pld.ORG.PL> a écrit : > [Automatic answer: RTFM (read DOCS, FAQ), also read
DOCS/bugreports.html] Arpi <arpi@thot.banki.hu> writes:
I'm trying to configure mplayer to allow switching from fullscreen to window mode and it seems that SDL is only suitable option. why? all x11 vo - including xv - can switch to/from fullscreen. press 'f' Not exactly ,,works''. I'm using GNOME2 and in fullscreen when using xv I still see gnome-panel. Here is screenshot http://misie.k.pl/~misiek/mplayer.png Confirmed by another Gnome2 user (also me :))
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
On Sun, 2002-11-10 at 23:25, Sylvain Petreolle wrote:
[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html] --- Arkadiusz Miskiewicz <misiek@pld.ORG.PL> a écrit : > [Automatic answer: RTFM (read DOCS, FAQ), also read
DOCS/bugreports.html] Arpi <arpi@thot.banki.hu> writes:
I'm trying to configure mplayer to allow switching from fullscreen to window mode and it seems that SDL is only suitable option. why? all x11 vo - including xv - can switch to/from fullscreen. press 'f' Not exactly ,,works''. I'm using GNOME2 and in fullscreen when using xv I still see gnome-panel. Here is screenshot http://misie.k.pl/~misiek/mplayer.png Confirmed by another Gnome2 user (also me :))
i think it's a window-manager related problem ... what wmanager are you using..? i'm using metacity, and have the same problem with the NEWEST version (2.4.3), haven't had the problem with the version before.. bye, gabor
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
_______________________________________________ RTFM!!! http://www.MPlayerHQ.hu/DOCS Search: http://www.MPlayerHQ.hu/cgi-bin/htsearch http://mplayerhq.hu/mailman/listinfo/mplayer-users
--- gabor <gabor@realtime.sk> a écrit : > [Automatic answer: RTFM (read DOCS, FAQ), also read
DOCS/bugreports.html] On Sun, 2002-11-10 at 23:25, Sylvain Petreolle wrote:
[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html] --- Arkadiusz Miskiewicz <misiek@pld.ORG.PL> a écrit : > [Automatic answer: RTFM (read DOCS, FAQ), also read
DOCS/bugreports.html] Arpi <arpi@thot.banki.hu> writes:
I'm trying to configure mplayer to allow switching from fullscreen to window mode and it seems that SDL is only suitable option. why? all x11 vo - including xv - can switch to/from fullscreen. press 'f' Not exactly ,,works''. I'm using GNOME2 and in fullscreen when using xv I still see gnome-panel. Here is screenshot http://misie.k.pl/~misiek/mplayer.png Confirmed by another Gnome2 user (also me :))
i think it's a window-manager related problem ... what wmanager are you using..? i'm using metacity, and have the same problem with the NEWEST version (2.4.3), haven't had the problem with the version before..
I'm using sawfish 2.0.4 on RH 8.0 here. ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
Please try this patch. -- Jindrich Makovicka --- orig/x11_common.c 2002-11-07 07:50:23.000000000 +0100 +++ x11_common.c 2002-11-11 10:11:50.000000000 +0100 @@ -629,7 +629,7 @@ #define WIN_LAYER_ONBOTTOM 2 #define WIN_LAYER_NORMAL 4 -#define WIN_LAYER_ONTOP 6 +#define WIN_LAYER_ONTOP 10 void vo_x11_setlayer( int layer ) { @@ -656,6 +656,30 @@ } type=XInternAtom( mDisplay,"_NET_SUPPORTED",False ); + type=XInternAtom( mDisplay,"_WIN_SUPPORTING_WM_CHECK",False ); + if ( Success == XGetWindowProperty( mDisplay,mRootWin,type,0,16384,False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char**)(&args) ) && nitems > 0 ) + { + XClientMessageEvent xev; + + mp_dbg( MSGT_VO,MSGL_STATUS,"[x11] Gnome style stay on top ( layer %d ).\n",layer ); + memset( &xev,0,sizeof( xev ) ); + xev.type=ClientMessage; + xev.window=vo_window; + xev.message_type=XInternAtom( mDisplay,"_WIN_LAYER",False ); + xev.format=32; + switch ( layer ) + { + case -1: xev.data.l[0] = WIN_LAYER_ONBOTTOM; break; + case 0: xev.data.l[0] = WIN_LAYER_NORMAL; break; + case 1: xev.data.l[0] = WIN_LAYER_ONTOP; break; + } + + if ( layer ) XRaiseWindow( mDisplay,vo_window ); + XSendEvent( mDisplay,mRootWin,False,SubstructureNotifyMask,(XEvent*)&xev ); + + XFree( args ); + return; + } if ( Success == XGetWindowProperty( mDisplay,mRootWin,type,0,16384,False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char**)(&args) ) && nitems > 0 ) { XEvent e; @@ -680,29 +704,6 @@ XFree( args ); return; } - type=XInternAtom( mDisplay,"_WIN_SUPPORTING_WM_CHECK",False ); - if ( Success == XGetWindowProperty( mDisplay,mRootWin,type,0,16384,False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char**)(&args) ) && nitems > 0 ) - { - XClientMessageEvent xev; - - mp_dbg( MSGT_VO,MSGL_STATUS,"[x11] Gnome style stay on top ( layer %d ).\n",layer ); - memset( &xev,0,sizeof( xev ) ); - xev.type=ClientMessage; - xev.window=vo_window; - xev.message_type=XInternAtom( mDisplay,"_WIN_LAYER",False ); - xev.format=32; - switch ( layer ) - { - case -1: xev.data.l[0] = WIN_LAYER_ONBOTTOM; break; - case 0: xev.data.l[0] = WIN_LAYER_NORMAL; break; - case 1: xev.data.l[0] = WIN_LAYER_ONTOP; break; - } - XSendEvent( mDisplay,mRootWin,False,SubstructureNotifyMask,(XEvent*)&xev ); - if ( layer ) XRaiseWindow( mDisplay,vo_window ); - - XFree( args ); - return; - } } void vo_x11_fullscreen( void )
Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz> writes:
Please try this patch.
-- Jindrich Makovicka
--- orig/x11_common.c 2002-11-07 07:50:23.000000000 +0100 +++ x11_common.c 2002-11-11 10:11:50.000000000 +0100
Works fine on my GNOME2, thanks! If it works with other window managers then I would love to see it in mplayer cvs. -- Arkadiusz Miśkiewicz CS at FoE, Wroclaw University of Technology arekm@sse.pl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
Arkadiusz Miskiewicz wrote:
[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html] Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz> writes:
Please try this patch.
-- Jindrich Makovicka
--- orig/x11_common.c 2002-11-07 07:50:23.000000000 +0100 +++ x11_common.c 2002-11-11 10:11:50.000000000 +0100
Works fine on my GNOME2, thanks! If it works with other window managers then I would love to see it in mplayer cvs.
oops, that patch is malformed. this one should be correct (== working with NetWM compliant wm's). -- Jindrich Makovicka --- orig/x11_common.c 2002-11-07 07:50:23.000000000 +0100 +++ x11_common.c 2002-11-11 14:15:56.000000000 +0100 @@ -629,7 +629,7 @@ #define WIN_LAYER_ONBOTTOM 2 #define WIN_LAYER_NORMAL 4 -#define WIN_LAYER_ONTOP 6 +#define WIN_LAYER_ONTOP 10 void vo_x11_setlayer( int layer ) { @@ -655,6 +655,30 @@ return; } + type=XInternAtom( mDisplay,"_WIN_SUPPORTING_WM_CHECK",False ); + if ( Success == XGetWindowProperty( mDisplay,mRootWin,type,0,16384,False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char**)(&args) ) && nitems > 0 ) + { + XClientMessageEvent xev; + + mp_dbg( MSGT_VO,MSGL_STATUS,"[x11] Gnome style stay on top ( layer %d ).\n",layer ); + memset( &xev,0,sizeof( xev ) ); + xev.type=ClientMessage; + xev.window=vo_window; + xev.message_type=XInternAtom( mDisplay,"_WIN_LAYER",False ); + xev.format=32; + switch ( layer ) + { + case -1: xev.data.l[0] = WIN_LAYER_ONBOTTOM; break; + case 0: xev.data.l[0] = WIN_LAYER_NORMAL; break; + case 1: xev.data.l[0] = WIN_LAYER_ONTOP; break; + } + + if ( layer ) XRaiseWindow( mDisplay,vo_window ); + XSendEvent( mDisplay,mRootWin,False,SubstructureNotifyMask,(XEvent*)&xev ); + + XFree( args ); + return; + } type=XInternAtom( mDisplay,"_NET_SUPPORTED",False ); if ( Success == XGetWindowProperty( mDisplay,mRootWin,type,0,16384,False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char**)(&args) ) && nitems > 0 ) { @@ -680,29 +704,6 @@ XFree( args ); return; } - type=XInternAtom( mDisplay,"_WIN_SUPPORTING_WM_CHECK",False ); - if ( Success == XGetWindowProperty( mDisplay,mRootWin,type,0,16384,False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char**)(&args) ) && nitems > 0 ) - { - XClientMessageEvent xev; - - mp_dbg( MSGT_VO,MSGL_STATUS,"[x11] Gnome style stay on top ( layer %d ).\n",layer ); - memset( &xev,0,sizeof( xev ) ); - xev.type=ClientMessage; - xev.window=vo_window; - xev.message_type=XInternAtom( mDisplay,"_WIN_LAYER",False ); - xev.format=32; - switch ( layer ) - { - case -1: xev.data.l[0] = WIN_LAYER_ONBOTTOM; break; - case 0: xev.data.l[0] = WIN_LAYER_NORMAL; break; - case 1: xev.data.l[0] = WIN_LAYER_ONTOP; break; - } - XSendEvent( mDisplay,mRootWin,False,SubstructureNotifyMask,(XEvent*)&xev ); - if ( layer ) XRaiseWindow( mDisplay,vo_window ); - - XFree( args ); - return; - } } void vo_x11_fullscreen( void )
Hali
oops, that patch is malformed. this one should be correct (== working with NetWM compliant wm's).
Commit :) Pontscho / fresh!mindworkz --- MPlayer Core Team - www.MPlayerHQ.hu
Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz> writes:
Works fine on my GNOME2, thanks! If it works with other window managers then I would love to see it in mplayer cvs.
oops, that patch is malformed. this one should be correct (== working with NetWM compliant wm's). Ok, here is bad news (tm). It no longer works after I updated my sawfish from 2.0 (release by gnome team) to official 1.2 release http://www.gnomedesktop.org/article.php?sid=755&mode=thread&order=0
Now it works this way: after pressing ,,f'' size of window doesn't change at all - it is still the same size but I see only about half of avi player inside of this window. Looks like film changes its site to cover whole screen but window is the same size. btw. when pressing ,,f'' probably sawfish beeps on my speaker, too. Any ideas or new patches?
Jindrich Makovicka
--- orig/x11_common.c 2002-11-07 07:50:23.000000000 +0100 +++ x11_common.c 2002-11-11 14:15:56.000000000 +0100
-- Arkadiusz Miśkiewicz CS at FoE, Wroclaw University of Technology arekm@sse.pl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
gabor <gabor@realtime.sk> writes:
see gnome-panel. Here is screenshot http://misie.k.pl/~misiek/mplayer.png Confirmed by another Gnome2 user (also me :))
i think it's a window-manager related problem ... what wmanager are you using..? i'm using metacity, and have the same problem with the NEWEST version (2.4.3), haven't had the problem with the version before.. sawfish-2.0-3 and PLD Nest here. Not yet realeased GNOME 2.2 but same happens with GNOME 2.0.
gabor
-- Arkadiusz Miśkiewicz CS at FoE, Wroclaw University of Technology arekm@sse.pl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
On Sun, 10 Nov 2002 22:51:40 +0100 Arpi <arpi@thot.banki.hu> wrote:
it seems vo_sdl.c doesn't implement the video eq controls. so even if libsdl can do that
Just looked in my SDL_video.h, and on their web docs, sdl can't do that. What a shame :) -- Colin http://dudusdl.sf.net/ : a free Puzzle Bubble clone
participants (9)
-
Arkadiusz Miskiewicz -
Arkadiusz Miskiewicz -
Arpi -
Colin Leroy -
gabor -
Gábor Lénárt -
Jindrich Makovicka -
Sylvain Petreolle -
Zoltan Ponekker