Message ID | 200611031933.15131.stefan@lucke.in-berlin.de |
---|---|
State | New |
Headers |
Received: from einhorn.in-berlin.de ([192.109.42.8] ident=root) by www.linuxtv.org with esmtp (Exim 4.50) id 1Gg3qy-0004Y1-Vx for vdr@linuxtv.org; Fri, 03 Nov 2006 19:33:21 +0100 X-Envelope-From: stefan@lucke.in-berlin.de X-Envelope-To: <vdr@linuxtv.org> Received: from jarada.farpoint.de (p54BF7158.dip.t-dialin.net [84.191.113.88]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id kA3IXJYq027304 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for <vdr@linuxtv.org>; Fri, 3 Nov 2006 19:33:20 +0100 From: Stefan Lucke <stefan@lucke.in-berlin.de> To: VDR Mailing List <vdr@linuxtv.org> Subject: Re: [vdr] softdevice and epia tv-out problem with Xorg Date: Fri, 3 Nov 2006 19:33:15 +0100 User-Agent: KMail/1.8.3 References: <45467DB9.5040202@calidae.net> <454A5489.5000706@calidae.net> <1162507134.454a737ef1376@webmail.in-berlin.de> In-Reply-To: <1162507134.454a737ef1376@webmail.in-berlin.de> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_rt4SF2xjYx7Sqjl" Message-Id: <200611031933.15131.stefan@lucke.in-berlin.de> X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List <vdr@linuxtv.org> List-Id: VDR Mailing List <vdr.linuxtv.org> List-Unsubscribe: <http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr>, <mailto:vdr-request@linuxtv.org?subject=unsubscribe> List-Archive: <http://www.linuxtv.org/pipermail/vdr> List-Post: <mailto:vdr@linuxtv.org> List-Help: <mailto:vdr-request@linuxtv.org?subject=help> List-Subscribe: <http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr>, <mailto:vdr-request@linuxtv.org?subject=subscribe> X-List-Received-Date: Fri, 03 Nov 2006 18:33:21 -0000 Status: O X-Status: X-Keywords: X-UID: 11156 |
Commit Message
Stefan Lucke
Nov. 3, 2006, 6:33 p.m. UTC
On Donnerstag 02 November 2006 23:38, Stefan Lucke wrote: > Quoting Leo Márquez: > > > Hi again, > > > > Stefan Lucke escribió: > > > > >>/ But after started it without problems now I get: > > >/>/ > > >/>/ [softdevice] A/V devices initialized, now initializing MPEG2 Decoder > > >/>/ X Error of failed request: BadValue (integer parameter out of range for > > >/>/ operation) > > >/>/ Major opcode of failed request: 145 (MIT-SHM) > > >/>/ Minor opcode of failed request: 3 (X_ShmPutImage) > > >/>/ Value in failed request: 0x3ff > > >/ > > >Which are the startup options now ? > > >0x3ff = 1023 = 1024 - 11 > > > > > > > > My startup options are only "-vo xv:full" > > > > >Did you changed your X resolution via "ALT"+"CTRL"+"Keypad +" ? > > > > > > > > No but I press the 'f' key to toggle between fullscreen and windowed vdr > > mode. > > The second time I run vdr with -vo xv:full don't work > > Ah, I should have mentioned that you _must_ not toggle full screen -> > windowed mode, as windowed mode works with some default values > which even did not work previously (thats why I ask for full screen mode). > > I'll send you a patch tomorrow that will restrict these values. > Ok, here comes the patch. I tested it with 640x480 resolution and now I do not get these failed request any more. In contrast to your setup, mine worked fine when setting "softdevice.OSDalphablend = 1" in vdr's setup.conf even without the patch.
Comments
Hi Stefan, thanks for your patch!!. Now I can start and toggle between fullscreen and windowed modes without problems. This patch will be included in cvs version or I have to apply to every new release? But ....I still with black screen. Now the syslog says: Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: XV_SWOV: available ports 68 - 68 Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: XV_SWOV: format 0x30323449 is NOT in format list: Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x32595559[YUY2] Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x32315659[YV12] Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x434d5658[VIA] Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x35315652[RV15] Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x36315652[RV16] Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x32335652[RV32] Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: (ERROR) could not grab any port! No video possible! I'm lost. I have reinstalled libavformat and recompiled softdevic plugins. What means this error? In osd I don't get any error and vdr not crashes. I use streamdev-client and in the server I see corrects attach and detach. Thanks in advance. Stefan Lucke escribió: >On Donnerstag 02 November 2006 23:38, Stefan Lucke wrote: > > >>Quoting Leo Márquez: >> >> >> >>>Hi again, >>> >>>Stefan Lucke escribió: >>> >>> >>> >>>>>/ But after started it without problems now I get: >>>>> >>>>> >>>>/>/ >>>>/>/ [softdevice] A/V devices initialized, now initializing MPEG2 Decoder >>>>/>/ X Error of failed request: BadValue (integer parameter out of range for >>>>/>/ operation) >>>>/>/ Major opcode of failed request: 145 (MIT-SHM) >>>>/>/ Minor opcode of failed request: 3 (X_ShmPutImage) >>>>/>/ Value in failed request: 0x3ff >>>>/ >>>>Which are the startup options now ? >>>>0x3ff = 1023 = 1024 - 11 >>>> >>>> >>>> >>>> >>>My startup options are only "-vo xv:full" >>> >>> >>> >>>>Did you changed your X resolution via "ALT"+"CTRL"+"Keypad +" ? >>>> >>>> >>>> >>>> >>>No but I press the 'f' key to toggle between fullscreen and windowed vdr >>>mode. >>>The second time I run vdr with -vo xv:full don't work >>> >>> >>Ah, I should have mentioned that you _must_ not toggle full screen -> >>windowed mode, as windowed mode works with some default values >>which even did not work previously (thats why I ask for full screen mode). >> >>I'll send you a patch tomorrow that will restrict these values. >> >> >> > >Ok, here comes the patch. I tested it with 640x480 resolution and now I do not >get these failed request any more. In contrast to your setup, mine worked fine >when setting "softdevice.OSDalphablend = 1" in vdr's setup.conf even >without the patch. > > > >------------------------------------------------------------------------ > >Index: video-xv.c >=================================================================== >RCS file: /cvsroot/softdevice/softdevice/video-xv.c,v >retrieving revision 1.63 >diff -U3 -r1.63 video-xv.c >--- video-xv.c 29 Sep 2006 19:17:18 -0000 1.63 >+++ video-xv.c 3 Nov 2006 18:29:54 -0000 >@@ -862,6 +862,23 @@ > } > } > #endif >+ >+ /* ------------------------------------------------------------------------- >+ * limit widht and height to screen dimensions >+ */ >+ { >+ int screen_width, screen_height; >+ >+ screen_width = DisplayWidth(dpy, scn_id); >+ screen_height = DisplayHeight(dpy, scn_id); >+ >+ if (height > screen_height) >+ old_dheight = lheight = dheight = height = screen_height; >+ >+ if (width > screen_width) >+ old_dwidth = lwidth = dwidth = width = screen_width; >+ } >+ > /* ------------------------------------------------------------------------- > * default settings which allow arbitraray resizing of the window > */ > > >------------------------------------------------------------------------ > >_______________________________________________ >vdr mailing list >vdr@linuxtv.org >http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr > > >__________ Información de NOD32, revisión 1.1832 (20061025) __________ > >Este mensaje ha sido analizado con NOD32 antivirus system >http://www.nod32.com > > >
Hi again, Probably caused by this problem softdevice always starts suspended but I can't change to playing. When I try it always kept the suspended state. Thanks. Leo Márquez escribió: > Hi Stefan, thanks for your patch!!. > Now I can start and toggle between fullscreen and windowed modes > without problems. > This patch will be included in cvs version or I have to apply to every > new release? > But ....I still with black screen. Now the syslog says: > > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: XV_SWOV: available > ports 68 - 68 > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: XV_SWOV: format > 0x30323449 is NOT in format list: > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x32595559[YUY2] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x32315659[YV12] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x434d5658[VIA] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x35315652[RV15] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x36315652[RV16] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x32335652[RV32] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: (ERROR) could not grab > any port! No video possible! > > I'm lost. I have reinstalled libavformat and recompiled softdevic > plugins. What means this error? > In osd I don't get any error and vdr not crashes. I use > streamdev-client and in the server I see corrects attach and detach. > > Thanks in advance. > > > Stefan Lucke escribió: > >> On Donnerstag 02 November 2006 23:38, Stefan Lucke wrote: >> >> >>> Quoting Leo Márquez: >>> >>> >>> >>>> Hi again, >>>> >>>> Stefan Lucke escribió: >>>> >>>> >>>> >>>>>> / But after started it without problems now I get: >>>>>> >>>>> >>>>> />/ >>>>> />/ [softdevice] A/V devices initialized, now initializing MPEG2 >>>>> Decoder >>>>> />/ X Error of failed request: BadValue (integer parameter out of >>>>> range for >>>>> />/ operation) >>>>> />/ Major opcode of failed request: 145 (MIT-SHM) >>>>> />/ Minor opcode of failed request: 3 (X_ShmPutImage) >>>>> />/ Value in failed request: 0x3ff >>>>> / >>>>> Which are the startup options now ? >>>>> 0x3ff = 1023 = 1024 - 11 >>>>> >>>>> >>>>> >>>> >>>> My startup options are only "-vo xv:full" >>>> >>>> >>>> >>>>> Did you changed your X resolution via "ALT"+"CTRL"+"Keypad +" ? >>>>> >>>>> >>>>> >>>> >>>> No but I press the 'f' key to toggle between fullscreen and >>>> windowed vdr >>>> mode. >>>> The second time I run vdr with -vo xv:full don't work >>>> >>> >>> Ah, I should have mentioned that you _must_ not toggle full screen -> >>> windowed mode, as windowed mode works with some default values >>> which even did not work previously (thats why I ask for full screen >>> mode). >>> >>> I'll send you a patch tomorrow that will restrict these values. >>> >>> >> >> >> Ok, here comes the patch. I tested it with 640x480 resolution and now >> I do not >> get these failed request any more. In contrast to your setup, mine >> worked fine >> when setting "softdevice.OSDalphablend = 1" in vdr's setup.conf even >> without the patch. >> >> >> >> ------------------------------------------------------------------------ >> >> Index: video-xv.c >> =================================================================== >> RCS file: /cvsroot/softdevice/softdevice/video-xv.c,v >> retrieving revision 1.63 >> diff -U3 -r1.63 video-xv.c >> --- video-xv.c 29 Sep 2006 19:17:18 -0000 1.63 >> +++ video-xv.c 3 Nov 2006 18:29:54 -0000 >> @@ -862,6 +862,23 @@ >> } >> } >> #endif >> + >> + /* >> ------------------------------------------------------------------------- >> >> + * limit widht and height to screen dimensions >> + */ >> + { >> + int screen_width, screen_height; >> + >> + screen_width = DisplayWidth(dpy, scn_id); >> + screen_height = DisplayHeight(dpy, scn_id); >> + + if (height > screen_height) >> + old_dheight = lheight = dheight = height = screen_height; >> + >> + if (width > screen_width) >> + old_dwidth = lwidth = dwidth = width = screen_width; >> + } >> + >> /* >> ------------------------------------------------------------------------- >> >> * default settings which allow arbitraray resizing of the window >> */ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> vdr mailing list >> vdr@linuxtv.org >> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr >> >> >> __________ Información de NOD32, revisión 1.1832 (20061025) __________ >> >> Este mensaje ha sido analizado con NOD32 antivirus system >> http://www.nod32.com >> >> >> > > > _______________________________________________ > vdr mailing list > vdr@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr > > __________ Información de NOD32, revisión 1.1852 (20061103) __________ > > Este mensaje ha sido analizado con NOD32 antivirus system > http://www.nod32.com > > >
Quoting Leo Márquez <leo@calidae.net>: > Hi Stefan, thanks for your patch!!. > Now I can start and toggle between fullscreen and windowed modes without > problems. > This patch will be included in cvs version or I have to apply to every > new release? This will be included in cvs soon. > But ....I still with black screen. Now the syslog says: > > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: XV_SWOV: available ports > 68 - 68 > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: XV_SWOV: format > 0x30323449 is NOT in format list: Ah, thats I420. So please select YV12 or YUY2 pixelformat via OSD, and you should get video too . > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x32595559[YUY2] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x32315659[YV12] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x434d5658[VIA] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x35315652[RV15] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x36315652[RV16] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: 0x32335652[RV32] > Nov 5 20:35:16 dori vdr: [4461] [XvVideoOut]: (ERROR) could not grab > any port! No video possible! > Stefan Lucke
Index: video-xv.c =================================================================== RCS file: /cvsroot/softdevice/softdevice/video-xv.c,v retrieving revision 1.63 diff -U3 -r1.63 video-xv.c --- video-xv.c 29 Sep 2006 19:17:18 -0000 1.63 +++ video-xv.c 3 Nov 2006 18:29:54 -0000 @@ -862,6 +862,23 @@ } } #endif + + /* ------------------------------------------------------------------------- + * limit widht and height to screen dimensions + */ + { + int screen_width, screen_height; + + screen_width = DisplayWidth(dpy, scn_id); + screen_height = DisplayHeight(dpy, scn_id); + + if (height > screen_height) + old_dheight = lheight = dheight = height = screen_height; + + if (width > screen_width) + old_dwidth = lwidth = dwidth = width = screen_width; + } + /* ------------------------------------------------------------------------- * default settings which allow arbitraray resizing of the window */