|
SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
SageTV Server Linux with Comskip for Docker (and unRAID) Support Thread
I've recently setup an unRAID server at home and I'm now trying virtualize my other servers (sagetv, and few other misc things) as docker containers in it.
I've created a SageTV unRAID template that will install SageTV and keep it updated on reboots. (ie, each time the container starts, it will check for a newer sagetv, and if it exists, it will download and install it). The unRAID template URL is https://github.com/stuckless/sagetv-...uckless-sagetv If you have the Community Applications unRAID plugin installed, then you can search for SageTV and install one of the 2 listed templates listed below. There are 2 templates for SageTV (you might see more, but these are 2 you are concerned with)
There are Java 7 and Java 8 versions available, so I'd recommend using the Java 8 versions. The Java 7 versions are there mainly to appease Jetty (although, I appear to be using Java 8 and Jetty is working fine, for the most part). Both images contain the linux version of comskip that can run on h264 ts files (in addition to mpeg2 files). NOTE: You still need to install the SageTV Commercial Detector plugin and the Commercial Detector UI plugin. When you use the template it lists a bunch of PORTS that you can configure. It's not used when networking is set to "host" mode, since, all ports are forwarded in that mode. SageTV really needs to run in "host" mode. If not, then when you connect to the server, it might think that you are running on a remote network, and treat your clients as placeshifter clients. You can play with this, if you want, but for the most part, using host is recommended. There are 3 paths that you need to configure /opt/sagetv/ This is the path to where sagetv will be installed. Under this share it will create a "server" directory, if it does not exist and it will upgrade/install sagetv. NOTE1: Since this lives outside the docker container, then, all the settings (Sage.properties) and Wiz.bin will survive if you remove the docker container, or upgrade, it etc. NOTE2: You can upgrade your existing SageTV by putting your existing sagetv files in the server directory BEFORE you start the docker container. /var/media This is the path to the SageTV recordings structure. Under this share will be "tv", "videos", "music", and "pictures" folders. I only the user "tv", personally, I have this on a cache drive for recordings. /var/mediaext This is the path to all other SageTV media. ie, this is where I put ripped content. It's not on a cache drive. The structure can be whatever you want. By default unRAID will also expose the /mnt/user/ share as /unraid to the SageTV container, so, if you really do need more access to your shares you can use that. Or you can add additional mappings. Lastly, there are several OPT_ options that you can configure. OPT_GENTUNER If set to Y then it will download and install gentuner. gentuner is used to if you are using an external tuner command to control a STB. OPT_COMMANDIR if set to Y is then it will download and install command IR. Command IR is a usb IR channel changing piece of hardware that supports multiple emitters. (While this is a great product, I do think the company that makes it is defunct) OPT_COMSKIP If set to Y this this configures the SageTV properties to work with comskip, setting the default user and paths, and copying the linux comskip to /opt/sagetv/comskip/ folder and adding a default ini file Using the Docker Containers without unRAID All the containers are on my docker hub account https://hub.docker.com/r/stuckless/ If you are running linux, you can pull the docker using Code:
docker pull stuckless/sagetv-server-java8 Code:
docker run -d --name sagetv-server \ -v /home/seans/unRAID/mnt/user/sagemedia:/var/media \ -v /home/seans/unRAID/mnt/user/mediaext:/var/mediaext \ -v /home/seans/unRAID/mnt/user/apps/sagetv3:/opt/sagetv \ -v /home/seans/unRAID:/unraid \ --net host \ --env PUID=1000 \ --env PGID=1000 \ --env VIDEO_GUID=19 \ --env OPT_GENTUNER=Y \ --env OPT_COMMANDIR=Y \ --env OPT_COMSKIP=Y \ --env JAVA_MEM_MB=768 \ --env VERSION=latest \ --env OPT_SETPERMS=Y \ --privileged \ -t -i stuckless/sagetv-server-java8 The docker container sources are on github. https://github.com/stuckless/sagetv-dockers
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient Last edited by jusjoken; 12-29-2021 at 04:32 PM. Reason: Updated docker run to include all variables |
#2
|
||||
|
||||
[reserved]
[Reserved]
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
||||
|
||||
I've just upated the images to include comskip support. NOTE, the -wine images are removed, since it is no longer needed. So there is just sagetv-server-java7 and sagetv-server-java8.
If you installed this previously then remove the container (and delete files -- it's an option in the docker menu when you click on the icon in unraid), and then re=install using the -java7 or -java8 template. NOTE: Removing Docker and it's fiels DOES NOT remove your sagetv files (ie, media and wiz.bin, etc). Those files are stored outside of the Docker container so that they are never removed by Docker.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#4
|
||||
|
||||
THanks, looking forward to playing with it this weekend.
Can you clarify which tuners you know (or believe) that this will work with?
__________________
Server: Ubuntu 16.04 running Sage for Linux v9 |
#5
|
||||
|
||||
Unforuntately, I can only say that it works with the HDPVR, since that is what I use. I would likely work with any network based tuner as well, ie, OpenDCT, etc. As for physical hardware, you'd have to check out the unRAID DVB plugin and see what kernel drivers it is sporting. ie, even for HDPVR I had to install that plugin to get the device drivers at the unRAID kernel level, so that the Docker container could utilize it.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#6
|
||||
|
||||
HDHRs worked out of the box, no plugins necessary.
|
#7
|
|||
|
|||
This is awesome. Now I just have to find time to give it a try! Did I mention awesome?
__________________
Server: Centos Server 14.04 LTS - 64Bit, VM in XenServer, 2 cores of a Intel i7, 2-4 GB Ram, 8 GB system Disk, 1.8 TB storage, SageTV V9.0.4.232, HDHR Prime x 1 Clients: PC Client x 1, HD-300 x 1, AppleTV x 2, WebClient (phone/tablet) x 3 |
#8
|
||||
|
||||
Just a note that SageTV can be found in the Community Application unRAID plugin as well... just search for SageTV. (the first post has been updated to reflect this).
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#9
|
||||
|
||||
Sean -
just curious if the comskip that you have working in the docker is something that can be used for more traditional (eg, Ubuntu) Linux installs? if so, any hints in doing so?
__________________
Server: Ubuntu 16.04 running Sage for Linux v9 |
#10
|
||||
|
||||
For sure... In fact tmiranda is looking to update the comskip plugin to work with it. For the docker containers I did some hacks to get it works with the existing plugin, but I'll undo those hacks once the new comskip plugin is available.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#11
|
|||
|
|||
I've been trying to get the java 8 version to work on unraid, but port 8080 doesn't work at all. Is there another frontend gui that I'm unaware of? The logs seem to show it working fine.
|
#12
|
||||
|
||||
I don't get anything at port 8080, but my client sees the server and I was able to setup my HD HomeRun tuners.
david Last edited by lovingHDTV; 05-01-2016 at 06:54 PM. Reason: clarity |
#13
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#14
|
||||
|
||||
Well, when I did that it works
thanks david |
#15
|
||||
|
||||
One more question.
In my current setup I have to have the recording directories on the server have the same path as each client. I run clients on my HTPC, etc. I'm not sure how I do this with the docker. In my current windows I have the TV path set to: \\sage-server\F\Videos I can use that UNC path on each of the client PCs and everything works. I'm not sure how I get /var/media to work on the client PCs. Or has the restriction of keeping the same exact path be lifted? Not sure what I'm missing. thanks david |
#16
|
|||
|
|||
SageTV Key
Wow, that went in very fast.
Just hit a little snag where I couldn't find guide data when trying to select my HDHR's. Wondering if there is a way to add the SageTV key as a docker variable? i.e. OPT_SageTVKey "XXXXXXXXXX" If not, can you confirm that this would be the location to put the "activkey" file? /mnt/user/SageTV/server This is the same place I see the Wiz.bin file. Thanks |
#17
|
||||
|
||||
That is where I put mine, and it works.
david Quote:
|
#18
|
|||
|
|||
Thanks for the confirmation.
Was able to get past the guide selection screen. But I need to figure out how to configure to get ClearQAM to work now. It's not finding any channels when I scan. So on to do some research and see if maybe I need to update firmware on my HDHR's. |
#19
|
||||
|
||||
OK I see that I can playback files without sharing the path to the files.
When I go to install the commercial detector UI, I cannot install it on the server, because it says I need to run from a placershifter, extender for directly from the server. As the server is a docker, is there a way to attach to it to do this install? Or any other way to get it installed? I also read that the client needs direct access to the edl files for comskip to work. maybe this was the reason I had to allow the client to have access to the files? thanks david |
#20
|
||||
|
||||
I installed the placeshifter and that allowed me to install the server plugins. You can have this and the client installed on the same machine. It worked out just fine.
Quote:
thanks david Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV on Unraid server | JonL | SageTV Linux | 11 | 10-27-2019 02:48 PM |
Docker Image for unRaid | ChaOConnor | SageTV Linux | 73 | 05-28-2017 11:57 AM |
Interactive Docker Container for building SageTV (Linux) | stuckless | SageTV Github Development | 4 | 09-04-2016 03:14 PM |
Another esxi unraid thread - questions | jdc | Hardware Support | 16 | 11-14-2012 12:08 PM |
New Server - SageTV+unRAID under ESXi 4.1 | stanger89 | Hardware Support | 211 | 01-07-2012 10:38 PM |