LinHES Forums http://forum.linhes.org/ |
|
mplayer question (Solved) http://forum.linhes.org/viewtopic.php?f=6&t=17612 |
Page 1 of 1 |
Author: | mjl [ Fri Jan 11, 2008 11:21 pm ] |
Post subject: | mplayer question (Solved) |
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 |
Author: | Greg Frost [ Fri Jan 11, 2008 11:26 pm ] |
Post subject: | |
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
|
Author: | mjl [ Fri Jan 11, 2008 11:58 pm ] |
Post subject: | |
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 ![]() |
Author: | mjl [ Wed Jan 16, 2008 7:38 pm ] |
Post subject: | |
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 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 |
Author: | mjl [ Fri Jan 18, 2008 10:58 pm ] |
Post subject: | |
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 |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |