View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 11 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jan 05, 2007 8:32 am 
Offline
Joined: Tue Dec 12, 2006 8:44 am
Posts: 23
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 9:03 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
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.

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 12:56 pm 
Offline
Joined: Tue Dec 12, 2006 8:44 am
Posts: 23
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 8:07 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
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

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 11:23 pm 
Offline
Joined: Tue Dec 12, 2006 8:44 am
Posts: 23
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...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 07, 2007 6:58 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
can you post the command line you are executing. it is displayed on mythweb once the streaming starts

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 07, 2007 9:14 am 
Offline
Joined: Tue Dec 12, 2006 8:44 am
Posts: 23
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 07, 2007 6:37 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
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 &

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 7:22 am 
Offline
Joined: Tue Dec 12, 2006 8:44 am
Posts: 23
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 7:39 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
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

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 7:57 am 
Offline
Joined: Tue Dec 12, 2006 8:44 am
Posts: 23
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?


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 12 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu