View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jan 11, 2008 11:21 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
This may apply to Linux in general but since I use KM...

I can do mplayer /myth/video/Colorbars.mpg

I can make a script & run it
#!/bin/sh
mplayer /myth/video/Colorbars.mpg

Question is: How can I make it play, if the script is called from mythtv user's crontab?

I am certain the answer is simple, but my eyes are bleeding from reading to understand.

Thanks
Mike


Last edited by mjl on Fri Jan 18, 2008 10:59 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 11, 2008 11:26 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
when called from crontab, the DISPLAY environment variable is probably not set. add the line
Code:
export DISPLAY=:0.0
to the start of the script


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 11, 2008 11:58 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi Greg,

Thanks, that is part of what I was missing, should have thought of that one because of some osd stuff I have been doing needed the environment set..

Results are closer as it pops up ~2 seconds of the show then goes away.

Hints are always appreciated :)
Mike
update:
/usr/bin/mplayer -fs -zoom -quiet -vo xv /myth/video/<a-show.mpg> works :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 16, 2008 7:38 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

Continuing down the same path, I actived my 350 for tv out. all works normal there and after a show I can return to my monitor full of menus.

As I experiment with the tools with in KM, "things" are not aways as they seem. If I open an xterm and do ver.sh it works. If I ssh in as the new user then su - mythtv and run ver.sh it gives gas about permissions in the temp file. Doesn't the mythtv enviornment get picked up by using the - ?

That leads me in the area where I don't understand yet (one of many :) ) If I open an xterm and do the mplayer as I posted earlier, the video will play on the monitor and does not go to the tv.

If I try it from the ssh connection the display is not happy and in neither case can I get the video to play out through the 350 mpeg decoder to the tv.

What is obvious that I am missing?

Thanks
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 18, 2008 10:58 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

So others don't have to experience sever hair lose, I figured out the trick ( at least for my needs)

Greg gave me this hint:
Code:
export DISPLAY=:0.0

If you
Code:
export DISPLAY=:0

it will now play .mpg files from a script or via ssh and I have to assume it is through the decoder as I am only running a 600mhx box using tv out.

It was a trick I discovered a while back to make the ver.sh work from a ssh connection.

Mike


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 21 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