CHBMB Posted November 20, 2019 Share Posted November 20, 2019 10 hours ago, Fizzyade said: I installed a ffmpeg docker container which has a nvidia build of ffmpeg as the entrypoint, I added the docker socket to the tvheadend container and can quite happily run ffmpeg using hardware transcoding using pipe:0 for input and pipe:1 for output (docker exec -t ffmpeg <ffmpeg options> inside the tvheadend container), running nvidia-smi on the host shows ffmpeg using transcoding. For the life of me though I can't get it to work by adding the ffmpeg command in tvheadend, nothing happens. There's no log file or anything either, so it makes it difficult to see what the actual problem is. I feel I'm close to having this working, but it's eluding me. Edit: got it working. Basically I created a modified entry point and map that over the existing one, the entry point installs docker and sets the permissions on docker.sock so it's accessible by the uid that tvheadend runs under. I created a ffmpeg.hw file which does a ffmpeg exec on the ffmpeg container, this is mounted into /usr/local/bin. Then it's just a matter of creating a stream profile that uses the new ffmpeg passing in the appropriate nvdec nvenc parameters. Verified that both hardware decoding of the incoming stream and hardware encoding of the output stream is happening. Awesome. Now I can set about tweaking everything for optimum performance. To recap, I now have tvheadend using nvidia hardware encoding/decoding. That's the sort of thing you really should write up so others can benefit from Link to comment
saarg Posted November 20, 2019 Share Posted November 20, 2019 47 minutes ago, CHBMB said: That's the sort of thing you really should write up so others can benefit from Crap.. Now I just have to get it working in our container! 1 Link to comment
Fizzyade Posted November 20, 2019 Share Posted November 20, 2019 49 minutes ago, CHBMB said: That's the sort of thing you really should write up so others can benefit from yep, going to buddy. will create a gist on my github account, i realise this has deviated somewhat from my original question, but i figured as there was a trail of questions and work that just finishing it off in here was a logical thing to do if somebody came across this, sorry for the slightly off topic post. Link to comment
Fizzyade Posted November 20, 2019 Share Posted November 20, 2019 (edited) Gist containing the full instructions/breakdown of how I did this is here.... https://gist.github.com/fizzyade/00a4ea6e171b4d1e8c33d9dd8f10784c Edit: Just tidied it up, any criticism constructive or otherwise about the instructions let me know and i’ll make any necessary changes) Edited November 20, 2019 by Fizzyade 1 Link to comment
Cessquill Posted November 21, 2019 Share Posted November 21, 2019 Sorry for hijacking this thread, but some of the points raised have piqued my interest in getting TV back and working - specifically using a Pi as a streamer (as I can't afford a Homerun right now). If I were to be using TVHProxy and Plex, would TVHeadend need to do any transcoding? Specifically, would any heavy-lifting be needed on a Pi if I installed TVHeadend and TVHProxy on it? Or would Plex do the transcoding (which is already using my graphics card)? You could always fall back on Sat-IP on the Pi and TVHeadend on the Unraid box if processing was excessive, but as Plex is already using my card it would be nice to hive all DVR functionality to a TV box if possible. I wouldn't be planning on using TVHeadend as anything else (ie, direct connections from other clients), as I'd want Plex to be the sole interface. Link to comment
mkfelidae Posted November 22, 2019 Share Posted November 22, 2019 I have a Hauppauge 955D USB device also known as a WinTV-dualHD (ATSC) I would like to know if this plugin will provide the ability to pass this to a Plex Docker container? Thanks in advance. Link to comment
saarg Posted November 22, 2019 Share Posted November 22, 2019 8 hours ago, mkfelidae said: I have a Hauppauge 955D USB device also known as a WinTV-dualHD (ATSC) I would like to know if this plugin will provide the ability to pass this to a Plex Docker container? Thanks in advance. Just install the plugin and try the different builds to see if your card gets detected. Or Google the different build options to see which cards are supported. Link to comment
Stalkkaaja Posted November 23, 2019 Share Posted November 23, 2019 When the new build for RC7? 😃 Link to comment
Stalkkaaja Posted November 23, 2019 Share Posted November 23, 2019 On 11/22/2019 at 8:56 AM, mkfelidae said: I have a Hauppauge 955D USB device also known as a WinTV-dualHD (ATSC) I would like to know if this plugin will provide the ability to pass this to a Plex Docker container? Thanks in advance. Yea got mine a couple days ago and got it working with LibreElec build. Just seems to be having trouble tuning in and start streaming sometimes. Link to comment
psycmos Posted November 23, 2019 Share Posted November 23, 2019 1 hour ago, Stalkkaaja said: Yea got mine a couple days ago and got it working with LibreElec build. Just seems to be having trouble tuning in and start streaming sometimes. You are using THV for tunning? Link to comment
Stalkkaaja Posted November 23, 2019 Share Posted November 23, 2019 (edited) 59 minutes ago, psycmos said: You are using THV for tunning? Bus 001 Device 003:ID 2040:8265 Hauppauge dualHD So this is WinTV-dualHD, USB-tuner. I was able to use this with Plex docker after installing LibreELEC build for Unraid RC6 (and adding "--device=/dev/dvb" to the Extra Parameters in Plex docker's advanced settings view). I just bought this tuner but my problem is that it's a bit like hit and miss... I did most of my testing via Iphone app so I'm not sure if that's the reason but sometimes I could change the channel and it would tune in and start streaming after a couple seconds(I tried both, WiFi and 4G), but sometimes I could only hear voice and see only a frozen picture. I was able to record one program and it came up really nice quality(1080i, 8,2Mbps). But I'm not sure yet what settings to try and change to make this tuner work like a charm. Also I'd like to know if I'm going to buy a GTX 1660/1650 Super to make transcoding easier... Is it automatically going to be used for DVB side as well when I transcode the live channel? I wasn't able to test it for a long time, maybe one hour before I saw that Unraid had released RC7 and installed it without realizing that it would screw up my DVB plugin until the new build is released. Soooo, now I'm just patiently waiting for the update. 😃 Edited November 23, 2019 by Stalkkaaja Link to comment
psycmos Posted November 30, 2019 Share Posted November 30, 2019 On 11/23/2019 at 2:48 PM, Stalkkaaja said: Bus 001 Device 003:ID 2040:8265 Hauppauge dualHD So this is WinTV-dualHD, USB-tuner. I was able to use this with Plex docker after installing LibreELEC build for Unraid RC6 (and adding "--device=/dev/dvb" to the Extra Parameters in Plex docker's advanced settings view). I just bought this tuner but my problem is that it's a bit like hit and miss... I did most of my testing via Iphone app so I'm not sure if that's the reason but sometimes I could change the channel and it would tune in and start streaming after a couple seconds(I tried both, WiFi and 4G), but sometimes I could only hear voice and see only a frozen picture. I was able to record one program and it came up really nice quality(1080i, 8,2Mbps). But I'm not sure yet what settings to try and change to make this tuner work like a charm. Also I'd like to know if I'm going to buy a GTX 1660/1650 Super to make transcoding easier... Is it automatically going to be used for DVB side as well when I transcode the live channel? I wasn't able to test it for a long time, maybe one hour before I saw that Unraid had released RC7 and installed it without realizing that it would screw up my DVB plugin until the new build is released. Soooo, now I'm just patiently waiting for the update. 😃 I solve this problem using MINISATIP docker. Use extra "--device=/dev/dvb" at minisatIP and use TV headend docker for tune. You will be able to find tuners via IP converted by MINISAT and WinTV-dualHD WORKS PERFECT Link to comment
piotrasd Posted December 7, 2019 Share Posted December 7, 2019 if somebody looking 6.8rc9 tbs-os https://www.sendspace.com/file/lh6jr4 Link to comment
CHBMB Posted December 7, 2019 Share Posted December 7, 2019 2 hours ago, piotrasd said: if somebody looking 6.8rc9 tbs-os https://www.sendspace.com/file/lh6jr4 It errored out on rc8, haven't tried RC9 yet. If you want to contribute to the DVB plugin, I'll quite happily add you on Github. Seems more convenient to everyone that way, users get to use the plugin rather than installing manually, no need to post links to ad laden download sites Link to comment
CHBMB Posted December 7, 2019 Share Posted December 7, 2019 I've uploaded builds for LibreELEC, TBS-OS & DigitalDevices for RC9 Link to comment
piotrasd Posted December 7, 2019 Share Posted December 7, 2019 32 minutes ago, CHBMB said: It errored out on rc8, haven't tried RC9 yet. If you want to contribute to the DVB plugin, I'll quite happily add you on Github. Seems more convenient to everyone that way, users get to use the plugin rather than installing manually, no need to post links to ad laden download sites no problem sorry I just noticed few days ago the RC8 is missing in plugin for TBS-OS in meantime was released rc9 so I compiled myself because I didn't know when to expect new compilation. anyway @CHBMB really good job !! with script, plugins etc ! Link to comment
CHBMB Posted December 7, 2019 Share Posted December 7, 2019 Just now, piotrasd said: no problem sorry I just noticed few days ago the RC8 is missing in plugin for TBS-OS in meantime was released rc9 so I compiled myself because I didn't know when to expect new compilation. anyway @CHBMB really good job !! with script, plugins etc ! No need to apologise, I'm serious about my offer. Happy to accept contributors! Especially as I don't use this myself at all. Link to comment
piotrasd Posted December 7, 2019 Share Posted December 7, 2019 no problem if you disappear for longer time then I will ask about it to keep community up to date with release. Link to comment
CHBMB Posted December 12, 2019 Share Posted December 12, 2019 v6.8.0 LibreELEC, TBS-OS, Digital Devices all done and uploaded. 2 Link to comment
Mike Rando Posted December 13, 2019 Share Posted December 13, 2019 8 hours ago, CHBMB said: v6.8.0 LibreELEC, TBS-OS, Digital Devices all done and uploaded. Thanks, I'm halfway through updating to 6.8.0 I had trouble ~6months ago because I got a never ending splash screen. You got me straightened out by doing a custom "download.sh" script and loading the files onto the flash drive. At the time I pulled the flash drive and loaded them manually, but u/saarg said: On 6/29/2019 at 3:33 PM, saarg said: Why did you take out the USB? You only had to copy it to /boot/ while your server was running. Can someone ELI5 on how I have to copy it to /boot/? Is this something that is simple for regular linux users that I'll have a hard time doing with windows? Is there a way to map //tower/boot or something so I can easily access it? P.S. I still have a never ending splash screen on UnraidDVB Link to comment
Squid Posted December 13, 2019 Share Posted December 13, 2019 2 minutes ago, Mike Rando said: Is there a way to map //tower/boot or something so I can easily access it? It's usually accessible via the network share flash Link to comment
Mike Rando Posted December 13, 2019 Share Posted December 13, 2019 Just now, Squid said: It's usually accessible via the network share flash You caught me before I could correct my mistake. I didn't have Export set to yes on my flash device. [Facepalm] Link to comment
Mike Rando Posted December 13, 2019 Share Posted December 13, 2019 (edited) OK, I'm still having trouble with the 6.8.0 update. To start off, I just updated the OS and I started getting this error: Quote Dec 12 19:33:47 Tower rc.docker: plex: Error response from daemon: error gathering device information while adding custom device "/dev/dvb": no such file or directory Dec 12 19:33:47 Tower rc.docker: Error: failed to start containers: plex I recognized the "/dev/dvd" and it reminded me to update UnraidDVB. I did what I did in June and ran the download.sh file after I updated it for 6.8.0. It' downloaded the files, I copied them to flash and I rebooted. I still have the same error, but I did confirm that in the background of the UnraidDVB page it's showing the proper 6.8.0 behind the never ending splash screen. Side Note: I think the error tied to my never ending splash screen is this: Quote Dec 12 21:56:51 Tower nginx: 2019/12/12 21:56:51 [error] 6507#6507: *874 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.2.123, server: , request: "POST /plugins/UnraidDVB/include/exec.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "tower", referrer: "http://tower/Settings/UnraidDVB" Not sure if either of those messages help understand my issue. For now I'm going to try to roll back to 6.7.2 Edit: I think I may have done something wrong, or maybe something right. I overwrote the flash with files I backed up earlier and then rolled back to 6.7.2, but after the boot my system thinks it's on 6.8.0, and plex seems to be working.... Still have never ending splash, but I can live with that. Edited December 13, 2019 by Mike Rando update Link to comment
CHBMB Posted December 13, 2019 Share Posted December 13, 2019 8 hours ago, Mike Rando said: OK, I'm still having trouble with the 6.8.0 update. To start off, I just updated the OS and I started getting this error: I recognized the "/dev/dvd" and it reminded me to update UnraidDVB. I did what I did in June and ran the download.sh file after I updated it for 6.8.0. It' downloaded the files, I copied them to flash and I rebooted. I still have the same error, but I did confirm that in the background of the UnraidDVB page it's showing the proper 6.8.0 behind the never ending splash screen. Side Note: I think the error tied to my never ending splash screen is this: Not sure if either of those messages help understand my issue. For now I'm going to try to roll back to 6.7.2 Edit: I think I may have done something wrong, or maybe something right. I overwrote the flash with files I backed up earlier and then rolled back to 6.7.2, but after the boot my system thinks it's on 6.8.0, and plex seems to be working.... Still have never ending splash, but I can live with that. To be honest, I'm just confused. The script is still in this thread here somewhere. Link to comment
Mike Rando Posted December 13, 2019 Share Posted December 13, 2019 42 minutes ago, CHBMB said: To be honest, I'm just confused. The script is still in this thread here somewhere. At this point my only problem is the never ending splash. Quote Dec 12 21:56:51 Tower nginx: 2019/12/12 21:56:51 [error] 6507#6507: *874 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.2.123, server: , request: "POST /plugins/UnraidDVB/include/exec.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "tower", referrer: "http://tower/Settings/UnraidDVB" Link to comment
Recommended Posts