View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 10 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Nov 06, 2007 10:28 pm 
Offline
Joined: Fri Jun 23, 2006 10:57 am
Posts: 106
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!!


Last edited by djb61230 on Thu Nov 08, 2007 7:08 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 07, 2007 12:07 am 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
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.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 08, 2007 7:07 am 
Offline
Joined: Fri Jun 23, 2006 10:57 am
Posts: 106
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 14, 2007 11:51 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
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}

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 15, 2007 7:12 am 
Offline
Joined: Fri Jun 23, 2006 10:57 am
Posts: 106
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 16, 2007 3:53 pm 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location: Sydney, Australia
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

_________________
| Nigel Pearson, nigel.pearson.au@gmail.com
| "Things you own end up owning you" - Tyler, Fight Club


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 16, 2007 4:05 pm 
Offline
Joined: Fri Jun 23, 2006 10:57 am
Posts: 106
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 24, 2007 7:43 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
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

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 6:42 am 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location: Sydney, Australia
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

_________________
| Nigel Pearson, nigel.pearson.au@gmail.com
| "Things you own end up owning you" - Tyler, Fight Club


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 28, 2007 6:24 am 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
Thanks Nigel, that clears it up perfectly.

_________________
Girkers


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu