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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-13-2017, 08:51 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Is it possible to have the CLI version of Handbrake added to SageTV docker

This would facilitate running transcoding jobs from SJQ without having to install the SJQ client on other computers.

Perhaps a folder could be added under /appdata/sagetv just like there is for comskip.

This pakcage can be found here: https://launchpad.net/~stebbins/+arc...brake-releases
__________________
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
Reply With Quote
  #2  
Old 02-14-2017, 06:18 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by wayner View Post
This would facilitate running transcoding jobs from SJQ without having to install the SJQ client on other computers.

Perhaps a folder could be added under /appdata/sagetv just like there is for comskip.

This pakcage can be found here: https://launchpad.net/~stebbins/+arc...brake-releases
That should work. It would seem like a bit of nonsense to create a specialized SJQ docker for each task you want to do with SJQ, so I like this approach to that end. I'm not sure how the docker authors intended to work with containers that in themselves can be quite modular like SageTV and SJQ which is a plugin for SageTV that is modular itself. One container running the SJQ client with it's own /appdata/sjq_client would probably also be a perfectly sane solution.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #3  
Old 02-14-2017, 07:40 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
You can likely drop the handbrake cli into a subfolder of \\TOWER\appdata\sagetv, which persists. I don't think we should be adding much to the sagetv docker itself that doesn't have to do with core sagetv functions.
__________________
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
Reply With Quote
  #4  
Old 02-14-2017, 07:45 AM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Quote:
Originally Posted by EnterNoEscape View Post
That should work. It would seem like a bit of nonsense to create a specialized SJQ docker for each task you want to do with SJQ, so I like this approach to that end. I'm not sure how the docker authors intended to work with containers that in themselves can be quite modular like SageTV and SJQ which is a plugin for SageTV that is modular itself. One container running the SJQ client with it's own /appdata/sjq_client would probably also be a perfectly sane solution.
I think we need to install an instance of Docker inside the Sage Docker container, then we can have dockers inside dockers inside dockers...

But seriously I do get your point.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #5  
Old 02-14-2017, 08:09 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Though, honestly, I think we might want to look into the true desire here. SageTV already has a conversion system. I think if the current system (Ministry) is lacking in something, the ideal solution, now that it is open source, is to determine how it is lacking and improve it.
__________________
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
Reply With Quote
  #6  
Old 02-14-2017, 08:58 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Tiki View Post
I think we need to install an instance of Docker inside the Sage Docker container, then we can have dockers inside dockers inside dockers...

But seriously I do get your point.
You joke... but rather than the docker inside docker, each of these independent "services" are meant to be in a separate container. In an enterprise model where you have an app server and database, as an example, each of these are in a separate docker container, and then they are composed into a solution. unRAID doesn't support "docker compose", but I still think that these types of single purpse solutions should be in their own container and started up if you are using them. Comskip was difference, since it runs in the sagetv space, but SJQ is something that can run in a remote server and be managed completely separate from SageTV.

I don't intend to add handbrake to the SageTV container... but, someone can fork it and add it if they want, but I don't think it something that used enough to warrant it being part of the "core" install.

Something else that people can consider... Handbrake can be created as a plugin and installed via the plugin system (ie, like comskip did/does). So it doesn't need to be in the docker system... but instead, just another plugin.
Reply With Quote
  #7  
Old 02-14-2017, 09:19 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by stuckless View Post
You joke... but rather than the docker inside docker, each of these independent "services" are meant to be in a separate container. In an enterprise model where you have an app server and database, as an example, each of these are in a separate docker container, and then they are composed into a solution. unRAID doesn't support "docker compose", but I still think that these types of single purpse solutions should be in their own container and started up if you are using them. Comskip was difference, since it runs in the sagetv space, but SJQ is something that can run in a remote server and be managed completely separate from SageTV.

I don't intend to add handbrake to the SageTV container... but, someone can fork it and add it if they want, but I don't think it something that used enough to warrant it being part of the "core" install.

Something else that people can consider... Handbrake can be created as a plugin and installed via the plugin system (ie, like comskip did/does). So it doesn't need to be in the docker system... but instead, just another plugin.
And really, if someone WAS going to go through the effort of forking the docker image and creating one with handbrake in it, they'd be just as well creating a sjq client container on it's own that includes the tools sjq is likely to use. With SLQ already existing in a cilent/server archetecture, this just makes sense.
__________________
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
Reply With Quote
  #8  
Old 02-14-2017, 09:44 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
The Handbrake Docker available through Community Applications has a watch folder. It seems to work pretty well. I think it could use a change to get the watch folder out of appdata.

I can imagine you could add both the watch and output folders to SageTV and create a script to create a symbolic link to the original video in the watch folder.
__________________
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
Reply With Quote
  #9  
Old 02-14-2017, 10:11 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by Fuzzy View Post
Though, honestly, I think we might want to look into the true desire here. SageTV already has a conversion system. I think if the current system (Ministry) is lacking in something, the ideal solution, now that it is open source, is to determine how it is lacking and improve it.
I haven't looked closely at the SageTV conversion system in a while - has it been updated recently or is it still using old versions of ffmpeg? In an ideal world you would want something that could handle more modern codecs, like H.265, and also take advantage of things like Intel QuickSync, although I don't know if QuickSync is supported in Linux yet.

I did used to use the internal SageTV conversion but I moved away from it several years ago but I can't remember why. I will try using it again on my unRAID server. It may not have had the flexibility that I wanted which is to move the files to folders specific to the names of the show. For example after Micky Mouse Clubhouse is recorded I want it transcoded to mp4 and saved in /videos/Kids' Shows/Mickey Mouse Clubhouse/Mickey Mouse Clubhouse - Mickey Gets a New Car - 123456.mp4. I think the way that things work now is that you may have to hard code the path every time you set up a favorite and then have it use the show name as the destination folder. It would be nice if you could use concepts from the SageAPI, like ShowTitle and EpisodeTitle to generate the new filename - sort of like destination folder and file is "/videos/Kids' Shows/$ShowTitle - S $SeasonNum E $EpisodeNum $EpisodeTitle $AiringID.mp4. That is essentially what SJQ allows you to do.
__________________
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
Reply With Quote
  #10  
Old 02-14-2017, 10:12 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by Fuzzy View Post
You can likely drop the handbrake cli into a subfolder of \\TOWER\appdata\sagetv, which persists. I don't think we should be adding much to the sagetv docker itself that doesn't have to do with core sagetv functions.
That is likely what I will do is the built-in conversion doesn't do everything that I want.
__________________
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
Reply With Quote
  #11  
Old 02-14-2017, 10:21 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
The built-in ffmpeg is sorely in need of modernization. SageTV as a whole needs to be brought up to modern standards. The Miniclient server should be updated to support a wider range of resolutions, including HD, as well as H.264 compression. Bring it more in line with other solutions.

I find it interesting that if your Android TV device, like the Mi Box, supports HEVC the Android Miniclient will play it. But because ffmpeg is so out of date SageTV itself doesn't recognize the video codec.
__________________
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
Reply With Quote
  #12  
Old 02-14-2017, 10:23 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
We are starting to get way off-topic but I would really like to see Placeshifter be able to properly play all content. It is SO much easier to run PS than a full client install as you don't have to futz around installing some, but not all, plugins, configuring Fanart, etc.
__________________
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
Reply With Quote
  #13  
Old 02-14-2017, 11:36 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Taddeusz View Post
The built-in ffmpeg is sorely in need of modernization. SageTV as a whole needs to be brought up to modern standards. The Miniclient server should be updated to support a wider range of resolutions, including HD, as well as H.264 compression. Bring it more in line with other solutions.

I find it interesting that if your Android TV device, like the Mi Box, supports HEVC the Android Miniclient will play it. But because ffmpeg is so out of date SageTV itself doesn't recognize the video codec.
There's no technical reason the built in converter needs to use ffmpeg at all - Ministry could likely be extended to be able to import a list of scripts or other options as jobs as well. It could very well be made to use handbrake if desired.

The ffmpeg issue is just that no one has bothered to go through and make all the changes that were made to customize ffmpeg's use to sagetv to the newer codebase (which is drasticly different than it was back then, it's far beyond simply applying a patch). Some of the custom things may actually be already handled in the new ffmpeg, albeit in a different way that sage would have to be reprogrammed to use. Some things could likely be added to the main ffmpeg distro (like a SageTV mediaserver input/output option to use stv:// urls that sage uses).
__________________
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
Reply With Quote
  #14  
Old 02-14-2017, 11:37 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Changing placeshifter to use higher resolutions is not difficult, and it's only a few lines to be changed in the code to support it.
__________________
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
Reply With Quote
  #15  
Old 02-14-2017, 12:09 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
Quote:
Originally Posted by wayner View Post
We are starting to get way off-topic but I would really like to see Placeshifter be able to properly play all content. It is SO much easier to run PS than a full client install as you don't have to futz around installing some, but not all, plugins, configuring Fanart, etc.
+1!

I use PS on all the family laptops/desktops because it's easier to set up and can be used remotely. It getting to be usable again now that I've decided to post-process everything, but sometimes the kids want to watch something live/near-live. I do think it's a benefit to the SageTV ecosystem.
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #16  
Old 02-14-2017, 01:08 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
Regarding the builtin conversion system with ffmpeg (which did get SOME updates if I'm reading Narflex right) - all I'm missing is the ability to time limit when it starts conversion tasks.

I've used it to convert mpeg2 recordings to h264 mkv (1/2 the size, same resolution), and it's been pretty flawless so far. But I'd like for it to just run conversion tasks after hours, so to speak...

SJQ is cool, and I now it can do this, but the time factor is really all that I'm missing in the default conversion system. KISS right?
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #17  
Old 02-14-2017, 01:58 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by bialio View Post
SJQ is cool, and I now it can do this, but the time factor is really all that I'm missing in the default conversion system. KISS right?
I still think it would be nice to have more flexibility around renaming files and/or paths for transcoded and archived shows.

Can the default conversion do H.265? That is more of a nice to have than have to have today, but that may change in a couple of years.
__________________
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
Reply With Quote
  #18  
Old 02-14-2017, 04:29 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by stuckless View Post
I don't intend to add handbrake to the SageTV container... but, someone can fork it and add it if they want, but I don't think it something that used enough to warrant it being part of the "core" install.
If someone really wanted it "in" SageTV, could they not just make a SageTV plugin that pulls in the executable?
Reply With Quote
  #19  
Old 02-14-2017, 05:56 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by bialio View Post
Regarding the builtin conversion system with ffmpeg (which did get SOME updates if I'm reading Narflex right) - all I'm missing is the ability to time limit when it starts conversion tasks.

I've used it to convert mpeg2 recordings to h264 mkv (1/2 the size, same resolution), and it's been pretty flawless so far. But I'd like for it to just run conversion tasks after hours, so to speak...

SJQ is cool, and I now it can do this, but the time factor is really all that I'm missing in the default conversion system. KISS right?
I've seen this request before - I'm wondering where the desire to run it during off hours comes from? Not that I'm against that being implemented as an improvement to ministry, just wondering what purpose it serves.
__________________
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
Reply With Quote
  #20  
Old 02-14-2017, 05:59 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
The CPU on the server is pegged at 100% when transcoding. I don't have a warm @Fuzzy with that while recordings are going on....
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
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
Multiple instances of the SageTV unRAID Docker? alfi33 SageTV for unRAID/Docker 11 01-18-2020 12:46 PM
Quick question about sagetv docker mechling-burgh SageTV for unRAID/Docker 8 06-23-2017 08:48 AM
SageTV - unRAID docker HW requirments? SomeWhatLost Hardware Support 21 01-10-2017 05:02 PM
SageTV Docker on macOS benjamintm SageTV for unRAID/Docker 8 12-12-2016 07:29 AM
SageTV Docker/unRAID now has a sub-forum stuckless SageTV for unRAID/Docker 0 10-10-2016 07:20 AM


All times are GMT -6. The time now is 05:23 PM.


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