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

Mythstream on seperate machine - web server..
http://forum.linhes.org/viewtopic.php?f=6&t=13315
Page 1 of 1

Author:  bishoptf [ Fri Jan 05, 2007 8:32 am ]
Post subject:  Mythstream on seperate machine - web server..

I have a seperate web server that runs myth web plus other web stuff, it connects to my myth backend for the normal mythweb stuff. This all works but what I would like to do is to get mythstream to work also.

So on my web machine I have installed the vlc client client stuff, but what I am unsure about is how to connect to the backend to play/control the recordings. I have looked through the scripts in /myth/stream and looking to see what I need to do. One thing I think I'm going need to do is nfs mount the video directory so the server has access to it but not sure what else would need to be done. Anyone out there doing this on their non myth machine and if so how....Any insight on how I might get this accomplished I would appreciated it. Thanks.

Author:  khrusher [ Fri Jan 05, 2007 9:03 am ]
Post subject: 

Well, there are a couple things here.

First off, mythstreamtv does not access the recordings through the backend. it simply is frontend to launch vlc in streaming mode.

the mythstreamtv mythweb pages simply call shell scripts that inturn calls vlc. The vlc program needs access to the recording file or to the capture card for live streaming.

I see two options. Either export the recordings to your webserver via NFS or figure out a way to launch vlc directly from the mythbox.

Author:  bishoptf [ Fri Jan 05, 2007 12:56 pm ]
Post subject: 

khrusher wrote:
Well, there are a couple things here.

First off, mythstreamtv does not access the recordings through the backend. it simply is frontend to launch vlc in streaming mode.

the mythstreamtv mythweb pages simply call shell scripts that inturn calls vlc. The vlc program needs access to the recording file or to the capture card for live streaming.

I see two options. Either export the recordings to your webserver via NFS or figure out a way to launch vlc directly from the mythbox.



Thanks alot for the input, thats what I was thinking, not sure which way I am going to go, I will probably try the nfs route first and see if I can get that to work. Couple of questions to verify my work so far, my webserver is running centos4 (rhel4.4) and what I did was to load the vls client and dependicies from one of the secondary repos, then I modified the mythstreamtv.sh script and updated the path to vlc.

What is not clear to me is that how does the script get the directory listing that contains the files, my command line looked something like this after selecting a file - "vlc "input variables..." x.x.x.x:6543/mythfile.mpg". This is from memory so don't quote me, what I was concerned was that it didn't have the dir path that contained my myth files which is /mnt/myth...if I NFS mount the directory using the same directory path do you think that will work, or will I have to go and modify something else....thanks again.

Author:  khrusher [ Fri Jan 05, 2007 8:07 pm ]
Post subject: 

are you using the mythweb interface or launching vlc some other way?

look in mythstreamtv.php for a line like this:

Code:
<input type="checkbox" name="streamfile[]" value="/myth/tv/'.basename($show->filename).'">


change /myth/tv to your path

Author:  bishoptf [ Sat Jan 06, 2007 11:23 pm ]
Post subject: 

Thanks krusher for your reply, here is the output that I am getting:

VLC already alive, I'm going to whack it. THE PROCESS I MEAN!
Starting Stream of myth://mythIPaddress:6543/1091_20061224013000.mpg
VLC media player 0.8.4 Janus
[00000272] main interface: creating httpd
[00000276] main input error: no suitable access module for `myth://mythIPaddress:6543/1091_20061224013000.mpg'
[00000266] main playlist: nothing to play
signal 2 received, terminating vlc - do it again in case it gets stuck
[00000274] main http daemon: httpd doesn't reference any host, deleting
[00000266] main playlist: stopping playback
le=$SIZE}:std{access=http{user=$HTTP_USER,pwd=$HTTP_PWD,mime=video/x-ms-asf},mux=asf,url=:8001}"


Any suggestions...I have set up a local nfs mount to the myth directory from the web server...

Author:  khrusher [ Sun Jan 07, 2007 6:58 am ]
Post subject: 

can you post the command line you are executing. it is displayed on mythweb once the streaming starts

Author:  bishoptf [ Sun Jan 07, 2007 9:14 am ]
Post subject: 

khrusher wrote:
can you post the command line you are executing. it is displayed on mythweb once the streaming starts



Command line:/myth/stream/mythstreamtv.sh 'WMV2' 'mp3' '256' '96' '.5' '25' 'http' '' '' 'myth://10.99.99.4:6543/1091_20070107000000.mpg' > /myth/stream/log.txt 2>&1 &


Just started playing with it last night, its using the my myth's box ip address I wonder if this should be the web server address, since the myth storage is nfs mounted locally to the web server. The directory path doesn't look right for the .mpg file....Keep in mind the VLC client I installed on my webserver was one from a Fedora/Centos repo, maybe I am missing some plugin for myth's mpg files?

Author:  khrusher [ Sun Jan 07, 2007 6:37 pm ]
Post subject: 

the last parameter should be a path to a file not a url. That is why the files need to be availible via NFS. my command line looks like this

Code:
Command line:/myth/stream/mythstreamtv.sh 'DIV3' 'mp3' '128' '48' '.5' '10' 'http' '' '' '/myth/tv/1067_20070104230000_20070104233500.nuv' > /myth/stream/log.txt 2>&1 &

Author:  bishoptf [ Mon Jan 08, 2007 7:22 am ]
Post subject: 

khrusher wrote:
the last parameter should be a path to a file not a url. That is why the files need to be availible via NFS. my command line looks like this

Code:
Command line:/myth/stream/mythstreamtv.sh 'DIV3' 'mp3' '128' '48' '.5' '10' 'http' '' '' '/myth/tv/1067_20070104230000_20070104233500.nuv' > /myth/stream/log.txt 2>&1 &



Yep, I figured thatt one out finally by getting it working on the local machine, now I have to figure out what code is passing the "myth://ip address:6543:/" section...if you have any insights into what section of the script might be causing this let me know, I have made the recordings available to the web server via nfs...can HD recordings be transcoded on the fly with VLC and if so what kind of performance can youi expect. Thanks.

Author:  khrusher [ Mon Jan 08, 2007 7:39 am ]
Post subject: 

look in mythstreamtv.php. search for this string:
Code:
<input type="checkbox" name="streamfile[]"

My file has the following:
Code:
echo '<input type="checkbox" name="streamfile[]" value="/myth/tv/'.basename($show->filename).'">';

do you have the myth:// stuff in there?

try this command to look for myth:// in mythstreamtv php files
Code:
find /var/www -name "*ream*.php" -exec grep "myth://" {} /dev/null \;


Another thing to try is to launch the vlc command manually from a command prompt:

Code:
/myth/stream/mythstreamtv.sh 'WMV2' 'mp3' '256' '96' '.5' '25' 'http' '' '' '<path-to-mpg-file>'

then start the streaming client

Author:  bishoptf [ Mon Jan 08, 2007 7:57 am ]
Post subject: 

khrusher wrote:
look in mythstreamtv.php. search for this string:



I went looking for this last time, couldn't find the file, it should be a part of the standard knoppmyth mythweb installation?

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