SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-25-2007, 12:44 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Network Encoder HowTo

Greetings,

I read through the manual:
Quote:
SageTV can be used to control recordings made with an encoding device that is installed on
another computer on the same network. Two full installations of SageTV are used for this
purpose:

For the installation of SageTV that is going to be the network encoder, set this property:
enable_encoding_server=true. Start this installation of SageTV. Note: To also use
SageTV on this system as a client, start a second instance of SageTV.exe, using the ‘-
client’ command line parameter. See Appendix D: SageTV Command Line Parameters.
For the main installation of SageTV (the one that is to be the server for all your clients),
set this property: network_encoder_discovery=true.Start SageTV.

Note: Each installation of SageTV will require a separate registration license.

Note: The SageTV server will need access through any software firewall for port 8271
(UDP), while the network encoders will need access for port 6969 (TCP). These ports
are the same no matter how many network encoder devices are in use, on one or multiple
computers. See Firewall Settings for more port information.
However, it is not working. I have a couple of questions I am hoping I can get answers to.
  1. On the encoding server, do you set up any adapter, guide, or channel mappings at all?
  2. If so, do you set up the master in the same fasion, or does the master simply pass along a channel request?

Thanks!

B
Reply With Quote
  #2  
Old 06-25-2007, 02:25 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Some of your recent posts were in the Linux section of the forum... by any chance, are you trying to use a Linux system as one or both parts of the the network encoder setup?

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #3  
Old 06-25-2007, 02:55 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
by chance I am, as the slave

The setup docs aren't clear as far as platform requirements, and the Linux FAQ says it can be done.

B

PS, I am asking from the master server point of view which is why this is not posted in LINUX forum.
Reply With Quote
  #4  
Old 06-25-2007, 03:51 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
There is a known issue when using a Linux setup as the network encoder for a Windows main server. Right now, it has to have Linux on both sides of the network encoder setup w/the smae file path that they can each see directly.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #5  
Old 06-25-2007, 05:40 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
For my own edification, it sounds like the guide on both sides needs to be configured the same as well as recording paths? I couldn't tell from the other threads how specifically to set up the master server. Isn't it the one responsible for writing files to the file share?

Supposing both sides were the same. Either windows or linux, etc.

TIA

B
Reply With Quote
  #6  
Old 06-25-2007, 06:26 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
If I could guess, I'd say the server just passes the recording directory on to the slave, if these aren't the same OS, paths are different format (ie //server/share doesn't work on Linux, at least not out of the box).

I think there would need to be some mapping done on one side or the other to map between linux paths and Windows paths, and that's not being done at the moment.
Reply With Quote
  #7  
Old 06-25-2007, 06:40 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
All video sources, channel lineups, and recording directories must be configured on the primary server, since that's where the unified EPG lives and where recordings are scheduled. Whether they also need to be configured in parallel on the network encoder I don't know, having never done it, but at a guess I don't see why they would. In theory all the encoder should need to do is tell the primary what capture devices it has available (per Device Manager), so they can show up as configuration candidates on the primary's Video Sources screen. After that, the primary server manages everything.
__________________
-- Greg
Reply With Quote
  #8  
Old 06-25-2007, 07:21 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Quote:
Originally Posted by stanger89 View Post
If I could guess, I'd say the server just passes the recording directory on to the slave, if these aren't the same OS, paths are different format (ie //server/share doesn't work on Linux, at least not out of the box).

I think there would need to be some mapping done on one side or the other to map between linux paths and Windows paths, and that's not being done at the moment.
Can we use CIFS syntax for file store locations? I'll try this in the morning when noone is trying to watch TV. http://www.microsoft.com/mind/1196/cifs.asp. If this is indeed the obstacle, I could also come up with some other ways of mapping the directories through the use of junction links too. Assuming I could place one directory per path and link it to the store with junction links or smb mount points.

Quote:
Originally Posted by GKusnick View Post
All video sources, channel lineups, and recording directories must be configured on the primary server, since that's where the unified EPG lives and where recordings are scheduled. Whether they also need to be configured in parallel on the network encoder I don't know, having never done it, but at a guess I don't see why they would. In theory all the encoder should need to do is tell the primary what capture devices it has available (per Device Manager), so they can show up as configuration candidates on the primary's Video Sources screen. After that, the primary server manages everything.
So the only thing which should be done on the slave is set the property for running slave and make sure the adapter can be tuned? Since I already have my guide mappings done on the slave, I can copy them down to be redone on the master. I am using linux for QAM just to test.

B

PS. Thanks for the replies
Reply With Quote
  #9  
Old 06-25-2007, 08:24 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by bcjenkins View Post
Can we use CIFS syntax for file store locations? I'll try this in the morning when noone is trying to watch TV. http://www.microsoft.com/mind/1196/cifs.asp. If this is indeed the obstacle, I could also come up with some other ways of mapping the directories through the use of junction links too. Assuming I could place one directory per path and link it to the store with junction links or smb mount points.
You can do CIFS in linux via Samba, but last time I tried the syntax was different for paths, and I think that's the inherent problem currently.
Reply With Quote
  #10  
Old 06-25-2007, 09:02 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by bcjenkins View Post
For my own edification, it sounds like the guide on both sides needs to be configured the same as well as recording paths? I couldn't tell from the other threads how specifically to set up the master server. Isn't it the one responsible for writing files to the file share?
I'll go along with what was posted above... you should just be able to set it up with those few properties changes that the manual mentions, then configure the source via any UI connected to the main server. (There is no UI connected to the network encoder, so you wouldn't be configuring the source there anyway.) I was never told that there was a need to use network paths with 2 Windows systems, so it wasn't listed as a requirement in the manual -- the network encoder would send it back to the server, which would save it (or something along those lines).

There is one caveat here: I haven't set up network tuners either, so I'm just passing along the instructions I was given, as I understand them. The manual section for this was proof-read by someone who knows very well how this all works, though.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #11  
Old 06-26-2007, 08:17 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
If SageTV were to use http://jcifs.samba.org/ as a loadable module, theoretically it could frame the request the same on both platforms? I am assuming this would require something more than loading it as a module, but maybe someone with better working knowledge of file i/o in SageTV could chime in.

B
Reply With Quote
  #12  
Old 06-26-2007, 10:48 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Code:
mkdir /opt/sagetv/server/\\\\sagetv-server\\sagetv
Creates a directory \\sagetv-server\sagetv in the root of the sagetv server directory on the linux box. This matches the name of my unc share. I then mounted:

Code:
mount -t cifs //sagetv-server/sagetv /opt/sagetv/server/\\\\sagetv-server\\sagetv -o user=username,pass=password,domain=domainname
And can now traverse the server and created a directory. Note the use of CIFS fs instead of smbfs in the mount command. Apparently smbfs is now deprecated.

Based on the conversation above, I need to reconfigure my channel lineups etc on the Windows box and strip down the config on the linux box. right?

Back to fiddling..
Reply With Quote
  #13  
Old 06-26-2007, 01:54 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Remember, the conversation above is all speculation.
Reply With Quote
  #14  
Old 06-26-2007, 02:01 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Right, so is my ability to make this work.
Reply With Quote
  #15  
Old 06-28-2007, 05:35 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I think I figured it out mostly..

I will have to test later, unless someone else can confirm in the meantime. This would not be an appropriate long term solution as it, but it might get folks past the hurdle.

Windows would allow $FOO as a directory name. In linux $FOO would be treated as a variable. So if FOO was exported to /var/media/tv/ (trailing slash important) and /var/media/tv was mounted to your windows share for tv recordings.. It should work. The even better part is that $FOO\recordingfilename.mpg from Windows is what linux needs to make this work. I created a dir in linux called tv and did:

Code:
export DIR="tv/"
echo hi > $DIR\hello.txt
which resulted in a file called hello.txt containing hi in the tv directory.

The only items I was unable to confirm this morning:
  1. Will SageTV allow the use of just a directory name for the recording directory?
  2. Where will the directory need to be placed? I am assuming it goes where sagetv.exe resides.
  3. Can Superman stop the speeding train in time?

Thoughts? My test later will be with a server setup on my son's pc. If it works, I will use junction link magic to point the directories to their actual locations. btw - If you are running Vista and presumably server 2008 junctions are built in to the OS now.

B
Reply With Quote
  #16  
Old 06-28-2007, 06:02 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Thought about it some more..

Here's what I can do

On windows set path to be:

\\server\share\a$VAR
\\server\share\b$VAR

etc.

On linux create directory \\server\share\a... export $VAR = "/" mount \\server\share\a\$VAR to new dir.

Benefits: allows me to keep unc paths for windows clients.

Now the question is: Where will SageTV on linux think the dir \\server\share\a is located?

B
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting SageTV to network encoder vividweb SageTV Software 0 11-14-2006 11:56 AM
Sage network Encoder and Sage failure? nyplayer SageTV Software 1 09-27-2006 06:47 AM
Help with Network Encoder srothwell SageTV Software 7 09-13-2006 11:25 AM
Network Encoder Questions jamjam SageTV Software 3 07-04-2006 08:17 AM
EXETunerPlugin, Sage 4 and network encoder vuego SageTV Software 0 12-11-2005 02:47 PM


All times are GMT -6. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.