LinHES Forums
http://forum.linhes.org/

Using xine for DVD launches an xterm (solved)
http://forum.linhes.org/viewtopic.php?f=6&t=17197
Page 1 of 1

Author:  djb61230 [ Tue Nov 06, 2007 10:28 pm ]
Post subject:  Using xine for DVD launches an xterm (solved)

I have configured xine to be used as my DVD player. It works very well except for one small nit. When selecting "Play DVD" from the myth GUI, momentarily an xterm or shell is seen in the upper left corner of the screen on top of the myth GUI before the DVD begins to play. Also the mouse cursor is visible for a few seconds as the DVD is first playing, then disappears. My command for the player is :

Code:
xine -pfhq --no-splash dvd://


as detailed in the wiki. Also the wiki explained about a "focus bug" workaround that I've tried also

Code:
xterm -geometry 1x1-0-0 -e xine -pfhq --no-splash dvd://


with no effect. I also tried adding "-iconic" to the xterm args in hopes that the window manager would minimize the window instead.

Looking at the source code, the library method "myth_system(cmd, flags)" is called which basically ends up doing a

Code:
execl("/bin/sh", "sh", "-c", cmd, NULL);


which seems right.

I have an R5E50 install with the proper fixes for SD. I do NOT believe I have changed anything in fluxbox these last 8 months so it should be "stock".

Any guesses or things to try?

For a little background on WHY I'm doing this see this thread over at AVS
http://www.avsforum.com/avs-vb/showthread.php?t=800050&highlight=intro+video

I thought it would be cool to play an "intro" video as explained in that thread. I have adapted the "universal" intro for Blender that someone over there kindly created and offered to the group. Then following their directions I was able to customize it, render to AVI via Blender and then ffmpeg it to an mpeg2 file. So to impress the visitors to the Home Theater I want to play this intro video before the DVD begins. Very cool.

I could not figure out how to change how the "Internal" player works hence why I went with xine. Changing the command to

Code:
xine -pfhq --no-splash /myth/myintro.mpg dvd://


does the "right thing" by playing the intro video first and then the DVD.

If anyone has any suggestions on how I can do this another way, I'm open to trying. Again it's just a SMALL nit but it would be nice to have it be, well perfect!

Thanks in advance!!

Author:  Girkers [ Wed Nov 07, 2007 12:07 am ]
Post subject: 

I get the mouse thing as well with xine. This prompted me to do a little research and there is a program called unclutter which removes the mouse. I will have to do a little bit more investigating.

Author:  djb61230 [ Thu Nov 08, 2007 7:07 am ]
Post subject: 

I was able to solve these problems. What was really happening was xine was drawing itself with some defined window size BEFORE it went full screen. What I thought was an xterm or shell window was actually xine itself.

So this solved it for me:

Code:
xine --geometry 1920x1080+0+0 -pfhq --no-splash --no-logo dvd://


Using the geometry argument made the temporary default window size the whole desktop size (I'm running in 1080i). Much better now as the whole screen goes black first instead of a small window. Perfect!

On the mouse problem, I do run "unclutter" as Girkers suggested. I added it to the .fluxbox/apps

Code:
[startup] {/home/mythtv/unclutter -idle 2 -root -jitter 10}


So now the mouse is invisible. Sweet.

Author:  Girkers [ Wed Nov 14, 2007 11:51 pm ]
Post subject: 

To clarify if you use:
Code:
apt-get install unclutter

It installs the application in /usr/bin, thus the startup command in /mythtv/.fluxbox/apps would be:
Code:
[startup] {/usr/bin/unclutter -idle 2 -root -jitter 10}

Author:  djb61230 [ Thu Nov 15, 2007 7:12 am ]
Post subject: 

Yes I failed to mention that I built from source and I just put the binary in the mythtv user home directory. Your way is better; or more likely what someone should do so the binary is in a "standard" place. I'll move mine also.

Thanks.

Author:  nigelpearson [ Fri Nov 16, 2007 3:53 pm ]
Post subject: 

djb61230 wrote:
So this solved it for me:

Code:
xine --geometry 1920x1080+0+0 -pfhq --no-splash --no-logo dvd://



For me, that just made the window bigger, but still visible - because the window has a title bar. Maybe I have an older Xine or window manager?

I had to use --geometry 1280x760+0-40

Author:  djb61230 [ Fri Nov 16, 2007 4:05 pm ]
Post subject: 

nigelpearson wrote:

For me, that just made the window bigger, but still visible - because the window has a title bar. Maybe I have an older Xine or window manager?

I had to use --geometry 1280x760+0-40


I think I have enough overscan going on that TV that the window title bar may just be obscured. I'm using the stock xine from R5E50 so it could be behaving exactly as yours, just I didn't see the bar.

Good info as others may well find your setting helpful to them.

Author:  Girkers [ Sat Nov 24, 2007 7:43 pm ]
Post subject: 

I have notice that I still see the white title bar when I run it too. Could someone explain the format for the geometry command it would make it easier for people like me to understand the command as a whole.

Obviously the 1280x760 is the screen resolution but what are the next too figures for. From what I can understand they are for x and y co-ordinates of some type. I don't use overscan and I have a 4:3 TV so currently my settings are --geometry 1024x768+0+0

Author:  nigelpearson [ Mon Nov 26, 2007 6:42 am ]
Post subject: 

My screen is 1280x720, so 1280x760 means the window is 40 pixels taller than my real display, and the +0-40 means that the window is shown 40 pixels above the top edge of the display.

You would use 1024x808+0-40

Author:  Girkers [ Wed Nov 28, 2007 6:24 am ]
Post subject: 

Thanks Nigel, that clears it up perfectly.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/