SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux > SageTV for unRAID/Docker
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #221  
Old 08-01-2016, 02:56 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Taddeusz View Post
Thought I had all the dependencies installed since it compiles and runs from bash. However, don't mind at all since for now this is strictly for testing.
Could you do some testing with this version.
https://github.com/stuckless/sagetv-...v-base/comskip

I'll updating the docker containers later this week (maybe tomorrow), and this version of comskip is a version an unRAID user (saarg) informed me about, which is used in his tv container, and I think kodi as well, since the build instructions were from the kodi site.
  #222  
Old 08-01-2016, 03:18 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
Could you do some testing with this version.
https://github.com/stuckless/sagetv-...v-base/comskip

I'll updating the docker containers later this week (maybe tomorrow), and this version of comskip is a version an unRAID user (saarg) informed me about, which is used in his tv container, and I think kodi as well, since the build instructions were from the kodi site.
That one is even worse. They error out in mpeg2video with "ac-tex damaged at xx xx" where xx are different numbers. It appears this is based on a really old version.

I think the issue with comskip must have something to do with unRAID's disk subsystem. XFS works fine with Ubuntu. I also added a 100GB vdisk to my unRAID Ubuntu vm and formatted it ext4. Recording to it and doing live comskip worked fine.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #223  
Old 08-01-2016, 03:35 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
Could you do some testing with this version.
https://github.com/stuckless/sagetv-...v-base/comskip

I'll updating the docker containers later this week (maybe tomorrow), and this version of comskip is a version an unRAID user (saarg) informed me about, which is used in his tv container, and I think kodi as well, since the build instructions were from the kodi site.
Not running it live still seemed to work.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #224  
Old 08-03-2016, 06:02 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
There is a new set of unRAID docker images that have been uploaded. The changes are...

- Both Java 7 and Java 8 images use Oracle Java. This should fix the TimeZone issue in Java 7.
- Comskip has been updated to latest build + ffmpeg 3.1

I've also included an alternate comskip binary, comskip.xilka, which appears to be an older comskip with ffmpeg2... this appears to be what some kodi users are using. I think in the sagetv properties you can set the location to

Code:
cd/comskip_location=/opt/sagetv/comskip/comskip.xilka
IF you do use this version, you will need to update the container to get the latest files and start sagetv, then shut it down, edit the properties. AND, you will need to modify your unRAID docker configuration and set OPT_COMSKIP=N. That last part is important, since if it is Y then it will overwrite your configuration.
  #225  
Old 08-03-2016, 08:46 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Taddeusz View Post
Thought I had all the dependencies installed since it compiles and runs from bash. However, don't mind at all since for now this is strictly for testing.
You'll be good to go. I'll send you the manifest in a few days. Sorry for the delay.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
  #226  
Old 08-04-2016, 07:37 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Saw another thread about modifying the sagesettings file to increase the heap size. This doesn't seem to work with the docker image. If I stop SageTV, modify the file, then start it again then Docker will overwrite my changes and it gets set back to 768MB.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #227  
Old 08-04-2016, 09:09 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
In my testing I've also noticed that I get quite a few halts from my HDHR's vs my current main Windows system using the same tuners. Not sure why that would be?
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #228  
Old 08-04-2016, 09:36 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Another observation is that comskip seems to have finished the scan (e.g. all the breaks are present) but the tasks seem to be taking an inordinate amount of time to complete. Looking at TOP I see the comskip tasks as moderately active but the stats plugin I got shows no notable disk throughput. I've not seen this happen under Windows/WINE or native Linux running manually.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #229  
Old 08-04-2016, 11:35 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Taddeusz View Post
Saw another thread about modifying the sagesettings file to increase the heap size. This doesn't seem to work with the docker image. If I stop SageTV, modify the file, then start it again then Docker will overwrite my changes and it gets set back to 768MB.
That doesn't seem right... I've been running 1G memory since I set this up, and I've restarted my docker container many times for testing, and my sagesettings has never been overwritten. That's the purpose of sagesettings is that it's not a file in the tgz or deb packages so it's a safe area to put configuration settings.

The only way that I could see this happening is if the /opt/sagetv/ mapping was not pointing to a valid share, and in which case the files would then get mapped internal to the docker container... but that would mean your wiz.bin would be deleted as well during a docker update, etc.
  #230  
Old 08-04-2016, 02:28 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
That doesn't seem right... I've been running 1G memory since I set this up, and I've restarted my docker container many times for testing, and my sagesettings has never been overwritten. That's the purpose of sagesettings is that it's not a file in the tgz or deb packages so it's a safe area to put configuration settings.

The only way that I could see this happening is if the /opt/sagetv/ mapping was not pointing to a valid share, and in which case the files would then get mapped internal to the docker container... but that would mean your wiz.bin would be deleted as well during a docker update, etc.
Definitely pointed to a valid share.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #231  
Old 08-04-2016, 03:27 PM
alfi33 alfi33 is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 311
Quote:
Originally Posted by Taddeusz View Post
Saw another thread about modifying the sagesettings file to increase the heap size. This doesn't seem to work with the docker image. If I stop SageTV, modify the file, then start it again then Docker will overwrite my changes and it gets set back to 768MB.
Can't you just edit the Environmental Variable for JAVA_MEM_MB in the Docker Container settings? (or is that what you're doing and I'm just confused)
__________________
Server: SageTV v9 on unRAID Docker; i5-2400; 16GB RAM; 9TB storage array; SiliconDust HDHR3
Client: Windows10; Intel Core2Duo; 4GB RAM; NVIDIA GeForce GT 1030
Client: NVIDIA ShieldTV
Client: Fire TV Stick 4K
  #232  
Old 08-04-2016, 03:30 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by alfi33 View Post
Can't you just edit the Environmental Variable for JAVA_MEM_MB in the Docker Container settings? (or is that what you're doing and I'm just confused)
Oh, well, I swear I looked at those options. My brain didn't see it.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #233  
Old 08-04-2016, 04:44 PM
alfi33 alfi33 is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 311
Quote:
Originally Posted by stuckless View Post
There is a new set of unRAID docker images that have been uploaded. The changes are...

- Both Java 7 and Java 8 images use Oracle Java. This should fix the TimeZone issue in Java 7.
- Comskip has been updated to latest build + ffmpeg 3.1

I've also included an alternate comskip binary, comskip.xilka, which appears to be an older comskip with ffmpeg2... this appears to be what some kodi users are using. I think in the sagetv properties you can set the location to

Code:
cd/comskip_location=/opt/sagetv/comskip/comskip.xilka
IF you do use this version, you will need to update the container to get the latest files and start sagetv, then shut it down, edit the properties. AND, you will need to modify your unRAID docker configuration and set OPT_COMSKIP=N. That last part is important, since if it is Y then it will overwrite your configuration.
A few observations...

This latest version of Comskip in the Docker seems to be a bit better for me for live_tv. In my limited (and unscientific testing), comskip did not crash for 4 out of 5 recordings that were processed live.

In the previous version, it seemed to crash consistently in the first 5-10 minutes.

I was not able to get comskip.xilka to work at all. I tried renaming/replacing the comskip file with the comskip.xilka file...but the comskip process would not start up after doing this.

Then I tried using the method you described (editing the sage.properties file with the location of the comskip.xilka file with the Docker stopped)...but the comskip process still would not start when I started a recording. (I put the path to the comskip file back to what it was, and then the comskip process fired up when I started a recording as expected.)

I didn't spend very long on this so it could have just been me doing something wrong...


Also, I am not able to edit the sage.properties file (from my Windows workstation) file without going into MidnightCommander and adjusting the permissions.
__________________
Server: SageTV v9 on unRAID Docker; i5-2400; 16GB RAM; 9TB storage array; SiliconDust HDHR3
Client: Windows10; Intel Core2Duo; 4GB RAM; NVIDIA GeForce GT 1030
Client: NVIDIA ShieldTV
Client: Fire TV Stick 4K
  #234  
Old 08-04-2016, 04:48 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Taddeusz View Post
Saw another thread about modifying the sagesettings file to increase the heap size. This doesn't seem to work with the docker image. If I stop SageTV, modify the file, then start it again then Docker will overwrite my changes and it gets set back to 768MB.
Quote:
Originally Posted by Taddeusz View Post
Oh, well, I swear I looked at those options. My brain didn't see it.
That's ok... I wrote the template and scripts for the docker container and I totally forgot that I actually do OVERWRITE the sagesettings with the value that is set there So your original statement is correct... it does get overwritten
  #235  
Old 08-09-2016, 08:06 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I have a "bare metal" Ubuntu 16.04.1 64-bit system with the latest native comskip that I've been testing on with help from tmiranda. All my comskip live tv tests have been successful. Not sure how we can go about troubleshooting this on unRAID. I guess my next step would be to install Docker along with the SageTV docker image and see if that makes a difference. That way it rules out anything Docker specific.

Unfortunately, that won't be happening today. Apparently one of my kids powered that system off at some point so I don't currently have access to it.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #236  
Old 08-09-2016, 01:49 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Ok, I just keep on plugging away at this. I have some positive news. My suspicions about uNRAID's disk subsystem being the problem seem to have been confirmed. I started digging into the disk settings. Particularly the tuning settings. I found some information indicating that the default md_num_stripes, md_write_limit, & md_sync_window settings are set to be optimized for systems with only 512MB of RAM.

My system has 24GB so I don't have such limited constraints. I decided to double the values to 2560, 1536, & 768 respectively and so far have my most successful test with live comskip detection. I just started the test so it might be a little early to tell but so far it's been running for almost 30 minutes without any of the comskip processes dropping out.

I may continue to try and tweak those values as out of the 4 recordings that I started one of them finished already and the UI still shows it's processing. However, the fact that I'm only using 2 drives to do these tests may be limiting read performance while it's trying do the writes.

I'll post again later but so far these results are looking very positive.

BTW, the md_write_limit setting cannot be modified through the web interface. I had to ssh in and modify the /boot/config/disk.cfg file to get at that setting. Information about them can be had here: http://lime-technology.com/forum/ind...2767#msg142767
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #237  
Old 08-09-2016, 03:11 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I've recorded another full hour with live detection and it all completed successfully. None of the comskip processes failed.

I also determined the reason for comskip taking so long to complete. In my troubleshooting I had set live_tv_retries=600. So when it got to the end of the file it was retrying 600 times before deciding to fail. Put it back to 8 and it works normally now.

I'm not sure what the optimal settings would be. In that forum post there's a mention of the risk of saturating the PCI or PCIe bus if md_sync_window is set too high.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #238  
Old 08-09-2016, 03:23 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by Taddeusz View Post
I've recorded another full hour with live detection and it all completed successfully. None of the comskip processes failed.

I also determined the reason for comskip taking so long to complete. In my troubleshooting I had set live_tv_retries=600. So when it got to the end of the file it was retrying 600 times before deciding to fail. Put it back to 8 and it works normally now.

I'm not sure what the optimal settings would be. In that forum post there's a mention of the risk of saturating the PCI or PCIe bus if md_sync_window is set too high.
Don't know if this will make a difference to you or not. But I went with separate drives mounted outside of the array and NOT the cache drive to record to. Then I move the recordings to the array periodically to my normal imported folders that are defined in the unRAID array.
__________________
"Keep your goals away from the trolls"
  #239  
Old 08-09-2016, 03:56 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by BobPhoenix View Post
Don't know if this will make a difference to you or not. But I went with separate drives mounted outside of the array and NOT the cache drive to record to. Then I move the recordings to the array periodically to my normal imported folders that are defined in the unRAID array.
IMHO, simpler is better. I'll just stick to recording to the pool. At least I now know and can pass on the knowledge about the pool settings. Realistically, the 2x increase I made only increased the needed RAM from 5MB to 10MB. Just to give some headroom I then increased 8x from the default settings to 40MB. That should give enough headroom for other things to happen.

I understand why under limited resources you would set lower limits. However, my system is a dual quad core Xeon server with 24GB RAM. Increasing the amount of RAM needed for the pool pipeline shouldn't impact things a whole lot. It can only really increase performance.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
  #240  
Old 08-10-2016, 01:52 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
My newly commissioned unraid system has it recording to the pool (user/Recordings), no cache, but honestly I haven't watched it enough to actually monitor the performance. That said, I think I may set it up to individual disks instead (disk1/Recordings, disk2/Recordings, etc.) and let sage spread out the load with it's bandwidth management.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Closed Thread


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
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


All times are GMT -6. The time now is 12:35 PM.


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