|
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
|
|||
|
|||
HOWTO:Unraid Docker Updated Server/Java11/OpenDCT/SageTVTranscoder
I decided to update my SageTV Docker installation so Android Mini Client would work better. Below is a HOWTO for installing everything below in one UnRaid docker container:
Code:
###Install sagetvopen-sagetv-server-java11 from UnRaid Apps ###QUOTE FROM jusjoken ###All 3 now use ubuntu 20.04 internally ###Java 8 docker seems to work now since the latest 9.2.7 linux build that resolved some Java 8 specific issues ###Java 11 docker still seems solid ###Java 16 works well except does not yet support some of the Jetty Web pages. Work in progress to determine how to resolve. ###SSH into Unraid Server and type to get console of docker container docker exec -it sagetvopen-sagetv-server-java11 /bin/bash ###Make Dir for saving OpenDct in Docker AppData Folder mkdir /opt/sagetv/opendct mkdir /opt/sagetv/opendct/etc mkdir /opt/sagetv/opendct/opt mkdir /opt/sagetv/opendct/log mkdir /opt/sagetv/opendct/run ###Make Symbolic Links for Real to files stored elsewhere ln -s /opt/sagetv/opendct/etc /etc/opendct ln -s /opt/sagetv/opendct/opt /opt/opendct ln -s /opt/sagetv/opendct/log /var/log/opendct ln -s /opt/sagetv/opendct/run /var/run/opendct ln -s $JAVA_HOME/bin/java /usr/bin/java ln -s $JAVA_HOME/lib/libjli.so /usr/lib/libjli.so ###Warning this will overwrite your user script in Appdata/sagetv//server/sagetv-user-script.sh back it up before executing echo cmd. ###ECHO CMD START. Start Copy Here echo -e '#!/bin/bash #Set Permissions for folder/files chmod -R 777 /opt/sagetv/opendct chmod -R 777 /etc/opendct chmod -R 777 /opt/opendct chmod -R 777 /var/log/opendct chmod -R 777 /var/run/opendct #Start OpenDct but do not wait sudo -u sagetv /opt/opendct/console-only & #Map Samba Share instead so recycle bin works. If using br0 then Unraid->Settings->Host access to custom networks:Enable sudo umount /var/media sudo mkdir /var/media sudo mount -t cifs //192.168.10.175/sagemedia /var/media -o guest,file_mode=0777,dir_mode=0777 & #ls file directory or SageTv will not find any files ls /var/media ' > /opt/sagetv/server/sagetv-user-script.sh ###ECHO CMD END. End Copy Here ###Set script executable chmod 777 /opt/sagetv/server/sagetv-user-script.sh ###Stop Sage Server sudo -E "PATH=$PATH" -u sagetv /usr/local/bin/stopsage & ###Run Script to create and map dir/files sh /opt/sagetv/server/sagetv-user-script.sh ###Install OpenDCT wget https://github.com/enternoescape/opendct/releases/download/0.5.32-Stable/opendct_0.5.32-1_amd64.deb dpkg -i opendct_0.5.32-1_amd64.deb rm opendct_0.5.32-1_amd64.deb ###Install jv711_SageTVTranscoder-FFmpeg....This can also be installed as SageTV Plugin which is safer mv /opt/sagetv/server/ffmpeg /opt/sagetv/server/ffmpeg.org wget https://github.com/jvl711/SageTVTranscoder-FFmpeg/releases/download/SageTVTranscoder_v1.0.6/SageTVTranscoderLinux_v1.0.6.zip unzip -o SageTVTranscoderLinux_v1.0.6.zip -d /opt/sagetv/server rm SageTVTranscoderLinux_v1.0.6.zip ###Workaround for FFPEG options mv /opt/sagetv/server/ffmpeg /opt/sagetv/server/ffmpeg.run echo '/opt/sagetv/server/ffmpeg.run -fflags +genpts "$@"' > /opt/sagetv/server/ffmpeg chmod 777 /opt/sagetv/server/ffmpeg ###Install New Trancoder Profiles echo ' transcoder/formats/MKV-H264\superfast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset superfast -c:v libx264;] transcoder/formats/MKV-H264\veryfast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset veryfast -c:v libx264;] transcoder/formats/MKV-H264\faster\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset faster -c:v libx264;] transcoder/formats/MKV-H264\fast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset fast -c:v libx264;] transcoder/formats/MKV-H264\Medium\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset medium -c:v libx264;] transcoder/formats/MKV-H264\slow\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset slow -c:v libx264;] transcoder/formats/MKV-H264\slower\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset slower -c:v libx264;] transcoder/formats/MKV-H264\veryslow\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset veryslow -c:v libx264;] transcoder/formats/MKV-Remux\ MKV=f\=matroska;MCompressionDetails\=-c copy;] ' >> /opt/sagetv/server/Sage.properties ###Wait for 30 after OpenDct to find tunners sh /opt/sagetv/server/sagetv-user-script.sh ###Start Sage Server sudo -E "PATH=$PATH" -u sagetv /usr/local/bin/startsage & ####Use Remote Placeshifer, Extender, or Mini Client to connect. ####Client will give error on installation of some plugins. ####Install the following plugins: #### SageMC #### Commerical Detector #### Comeercial Detector UI ### SageTV Web Interface ### SageTVTranscoder (FFmpeg) Linus by jvl711.....Note that if install this you have to reapply from steps above "Workaround for FFPEG options" ####On Client Setup SageMC (PlaceShifter has issuse with SageMC works client and extenders) ##1. Setup->Detialed Setup->Set Full UI Package(.STV or .XML File) ##2. Up Directory ##3. Click SageTV3 ##4. Click SageMC_169.xml ##5. When asked reload UI click yes ##6. SageMC UI->My Menu->Settings->SageMC-Setup->Main->Global UI Options->Animation ##7. Core Animations: Disabled ##8. Go Home Screen: PC Client: keyboard {Home} MiniClient: (Hold Select Button->Home Icon) ##9. Click My Videos->Select Top Left Menu ##10. Use Option Key PC Client: keyboard {ctrl}+O MiniClient: (Hold Select Button->Three Bar Icon) ##11. Display Options->Show Delete for Videos: Disabled ####Android MiniClient Settings (Working With FireTV 4k and Nivida Shield Tube) ##sagetv-miniclient :V1.9.3 ##Default Player: ExoPlayer ##Streaming Mode: Fixed ##Fixed Transcodeing Settings (All Other settting work adjust based on network bandwidth) ## Transcoding Preference: When Needed ## Container Format: MKV ##Fixed Remuxin Settings ## Remuxing Prefenence: Always ## Remuxing Container Format: MKV ## Use OpenGl UI: Checked ##Media Key Mappings (For use with SageMC with FireTV and Nvidia Remote)(Comskip Press Up/Down when video playing) ## Default (Remote Controls) ## Fast Forward: Skip Fwd #2 ## Fast Rewind: Skip Bkwd #2 ## Video Playback Active (Smart Remote) ## Select: Options ## Up : Right ## Down : Left ## ###How to fixed broken Recordings/Video with MiniClient that where recorded without OpenDCT. Batch Transcode Copy to MKV ##1. Connect to SageTV Web Page http://192.168.10..175:8080/sage/Recordings#options ##2. Click Show Options->Results Per Page: 50 (If you select to many at once webpage will have error) ##3. Click Select all ##4. Action on selected: Covert Media File ##5. Click Execute ##6. Transcode Format: MKV-Remux MKV ##7. Delete Original File: Selected ##8. Original Folder: Selected ##9. Click Submit Transcode Job ##10 Wait for Webpage to return Recording page ##11 Click Next Page Number ##12 Repeat Steps 3 to 11 until all are submitted for transcode job list Last edited by hvymetal; 01-05-2022 at 09:36 AM. Reason: Updated for new docker |
#2
|
|||
|
|||
Thanks for this!
I am building a new unRAID server to replace my existing server and this may come in handy. Why are there so many BASH commands required? Is that due to running OpenDCT? When I installed the docker version of SageTV 5-6 years ago I just used the web UI without having to do all of this type of config.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#3
|
|||
|
|||
Yes and No....The Docker image is no longer being updated by stuckless. So the latest version in Unraid App is Java-10 and it has the version fixed for SageTV Server 9.25. As shown here
https://github.com/stuckless/sagetv-...upgrade-sagetv I need the latest version v9.2.6 to get SageTVTranscoder-FFmpeg and MediaFormatParserPlugin which give better performance when using the Andriod Mini App The other cmd are for installing OpenDCT in the same docker container. The docker container for OpenDCT for unraid is also broken because download is no longer on bintray.com as shown here https://github.com/CraziFuzzy/opendc...all-opendct.sh This merges 2 dockers into one container. The rest of the commands are for all the other things that where listed |
#4
|
|||
|
|||
Thanks
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#5
|
|||
|
|||
Quote:
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 12-15-2021 at 01:59 PM. |
#6
|
||||
|
||||
@hvymetal, thanks for this info.
I will give this a go very soon as I also want to have the newer functionality for the Android miniclient. I do use SageAlerts though that is somewhat broken in newer versions of Java, so hopefully jusjoken will get that updated as well.
__________________
----- AMD Ryzen 5 3600, B450 m/b, 32Gig, lots of disks, Unraid, 2x HDPVR2 tuners, HDHomeRun Prime, HDHomeRun HDHR4 OTA, Windows Live Tuner, SageTV docker, OpenDCT docker, Win8.1 VM, EventGhost |
#7
|
|||
|
|||
Update exiting docker to keep with current SageTV versions
Thanks to the work @hvymetal did here I found it easy to just update my current running SageTV docker to update beyond 9.2.5.
I went to my unraid docker, clicked on the docker icon to get the context menu, clicked on console, and then ran each of the below commands at the console prompt and then restarted the docker. Code:
###Install lastest SageTV Server and new script for updating apt-get update apt-get -y install jq rm /etc/my_init.d/20-upgrade-sagetv wget https://raw.githubusercontent.com/00madz/sagetv-dockers/master/sagetv-base/SYSTEM/etc/my_init.d/20-upgrade-sagetv mv 20-upgrade-sagetv /etc/my_init.d chmod 777 /etc/my_init.d/20-upgrade-sagetv rm /opt/sagetv/server/.SAGE_CUR_VERSION bash /etc/my_init.d/20-upgrade-sagetv At some point I may attempt to update the stuckless dockers but for now this works well to just keep my dockers current. K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
Quote:
1. Fix the version in the docker to template to 9.2.6.1 2. Use an updated docker template created by jusjoken https://forums.sagetv.com/forums/showthread.php?t=66879Also next Post will have updated steps as the update script is not longer needed if new template is used. Last edited by hvymetal; 01-05-2022 at 11:05 AM. |
#10
|
|||
|
|||
Updated steps to use new docker templates created by jusjoken. Also removed steps for MediaFormatParser because it did not work correctly. Updated steps in main post.
Last edited by hvymetal; 01-05-2022 at 09:36 AM. |
#11
|
||||
|
||||
Does this mean that I can update my older stuckless 9.2.2 docker rather than starting from scratch with the new template, thus saving my customizaions?
__________________
----- AMD Ryzen 5 3600, B450 m/b, 32Gig, lots of disks, Unraid, 2x HDPVR2 tuners, HDHomeRun Prime, HDHomeRun HDHR4 OTA, Windows Live Tuner, SageTV docker, OpenDCT docker, Win8.1 VM, EventGhost |
#12
|
|||
|
|||
Quote:
If you mean customizations inside the docker itself you would have follow all the steps again expect creating the sagetv-user-script.sh which is where all the customizations would be anyway. |
#13
|
||||
|
||||
Quote:
__________________
----- AMD Ryzen 5 3600, B450 m/b, 32Gig, lots of disks, Unraid, 2x HDPVR2 tuners, HDHomeRun Prime, HDHomeRun HDHR4 OTA, Windows Live Tuner, SageTV docker, OpenDCT docker, Win8.1 VM, EventGhost |
#14
|
|||
|
|||
Quote:
My suggestion is install the new template in a different APPDATA folder and use br0 custom for network(Give it a unique IP). Once you get it working with all your customizations you can rename it and make it your working one. This will allow you run both until you get it back in working state. |
#15
|
||||
|
||||
Quote:
Thanks!
__________________
----- AMD Ryzen 5 3600, B450 m/b, 32Gig, lots of disks, Unraid, 2x HDPVR2 tuners, HDHomeRun Prime, HDHomeRun HDHR4 OTA, Windows Live Tuner, SageTV docker, OpenDCT docker, Win8.1 VM, EventGhost |
#16
|
|||
|
|||
Quote:
K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#17
|
|||
|
|||
What do you mean by 18.05? The Ubuntu version in the docker?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#18
|
|||
|
|||
Should have been 18.04...and yes... That would be the version of Ubuntu in the container or if running directly in linux
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Docker/OpenDCT/Ubuntu | technazz | SageTV for unRAID/Docker | 3 | 07-30-2019 08:17 AM |
SageTV Unraid/Docker install - log file errors, server not found | poto | SageTV for unRAID/Docker | 4 | 09-03-2018 04:16 PM |
OpenDCT on unRaid Docker failing | amg | SageTV for unRAID/Docker | 4 | 03-27-2017 09:41 AM |
Need help with OpenDCT on Docker | willieb | SageTV for unRAID/Docker | 5 | 03-07-2017 07:36 AM |
SageTV Server Linux with Comskip for Docker (and unRAID) Support Thread | stuckless | SageTV for unRAID/Docker | 409 | 10-10-2016 07:22 AM |