Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - TVHeadend

Featured Replies

5 hours ago, ykmail05 said:

Hi, i'm trying to setup linuxserver/tvheadend container behind a reverse proxy. The docker image let us define an environment  parameter  to specify webroot for reverse proxy "-e RUN_OPTS". The question is what is the syntax to define the RUN_OPTS like "--http_root /tvheadend" in /etc/service.d/tvheadend/run .

What i'm tryin to set up is to acces the web interface at https://<DOMAIN>/tvheadend

 

 

You have to look at the tvheadend documentation for how to use --http_root. Then, add it to the RUN_OPTS variable. 

  • Replies 1.3k
  • Views 313.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • You need to install the driver to use your adapter. Then use /dev/dvb as the path for the device pass through. If you are using 6.9.x I don't know if the permissions are set correctly, so make sure no

  • Thanks man, I'm just playing around with TV stuff so I'll try it here. 

  • I tried WG+ but in the end I gave up, purely because it's too complicated and too cumbersome. I got it working, but it wasn't reliable and you have to rebuild the first search index relatively frequen

Posted Images

3 hours ago, saarg said:

 

You have to look at the tvheadend documentation for how to use --http_root. Then, add it to the RUN_OPTS variable.  

Did the --http_root config, it seems to work (got the logo on the browser tab) but nothing on the page (blank).

Edited by ykmail05

8 minutes ago, ykmail05 said:

Did the --http_root config, it seems to work (got the logo on the browser tab) but nothing on the page (blank).

 

Docker run command please. 

2 minutes ago, saarg said:

Docker run command please.  

docker-compose file :

image.png.04527eec909e078813656bfa0296b39e.png

You should not be running the container as root. Change that first. 

Next you could try to quotes around the variable. 

5 minutes ago, ykmail05 said:

docker-compose file :

image.png.04527eec909e078813656bfa0296b39e.png

 

This forum is for Unraid support, use our Discord if you're not using Unraid.

23 minutes ago, saarg said:

You should not be running the container as root. Change that first. 

Next you could try to quotes around the variable. 

It does not work.

Got 502 bad gateaway with the quotes

7 hours ago, ykmail05 said:

It does not work.

Got 502 bad gateaway with the quotes

 

As @CHBMB says, this forum is for unraid users. If you want support, please go to our Discord channel.

I just tried http_root here and it works.

I got a notification for an update to this docker today.

I came here to find out what that may entail, if there are fixes/enhancements etc, or if there are any issues I need to be aware of.

Is this the right place ?  As I cant see any mention of it.

11 hours ago, vw-kombi said:

I got a notification for an update to this docker today.

I came here to find out what that may entail, if there are fixes/enhancements etc, or if there are any issues I need to be aware of.

Is this the right place ?  As I cant see any mention of it.

 

The latest tag (if you just use linuxserver/tvheadend in the repository field), is always built each Friday night. But there was an error in the tvheadend source making tvheadend not to compile on alpine Linux. The developer of tvheadend was on vacation, so it was fixed just now and we triggered a build as it had some fixes for epg. 

 

For changes on the latest tag, you have to check the tvheadend github page. 

Check out the the github link in the PP for changes to this container image (not often). The Friday night builds doesn't have any changeling as it's automatic built to get the latest dependencies in case of bugs or security fixes. 

Hi, when i want to use the --device... function for hardware transcoding (intel), possible to work side by side when already plex uses this feature ?

 

or only 1 access possible, no idea if thats equal to an hardware passthrough, then only 1 of course.

 

thanks ahead for an tipp ;)

30 minutes ago, alturismo said:

Hi, when i want to use the --device... function for hardware transcoding (intel), possible to work side by side when already plex uses this feature ?

 

or only 1 access possible, no idea if thats equal to an hardware passthrough, then only 1 of course.

 

thanks ahead for an tipp ;)

 

Try it and see what happens ?

I don't know how many streams the CPU can handle, so it might fail if you are transcoding too many streams at the same time. 

always max 1, just wanted to know if its even possible the 2 seperate dockers can use this feature ...

 

i added to TVH and it doesnt look like its used when i compare CPU usage with PLEX when using that feature.

1 minute ago, alturismo said:

always max 1, just wanted to know if its even possible the 2 seperate dockers can use this feature ...

 

i added to TVH and it doesnt look like its used when i compare CPU usage with PLEX when using that feature.

 

You have to set it up in TVheadend also. It's not plug and pray ?

i added to EXTRA PARAMETER

 

--device=/dev/dri

 

and changed in TVH

 

image.png.1f3da93faa9d53e2aac5e8b33695efc5.png

 

anything else i forgot ?

and thats the error in TVH

 

2018-07-31 16:05:38.303 transcode: 0003: Unable to open h264_vaapi encoder

so maybe blocked cause already loaded by PLEX, thats what my question was if TVH even could use hardware acc if PLEX docker also preloaded --device ...

Edited by alturismo

1 minute ago, alturismo said:

i added to EXTRA PARAMETER

 

--device=/dev/dri

 

and changed in TVH

 

image.png.1f3da93faa9d53e2aac5e8b33695efc5.png

 

anything else i forgot ?

 

I don't remember how to set it up and I'm away from home. 

But you are comparing cpu usage to transcoding with software? Or didn't you transcode the streams before you added the GPU? 

1 minute ago, alturismo said:

and thats the error in TVH

 


2018-07-31 16:05:38.303 transcode: 0003: Unable to open h264_vaapi encoder

so maybe blocked cause already loaded by PLEX, thats what my question was if TVH even could use hardware acc if PLEX docker also preloaded --device ...

 

I didn't know, hence the try it comment ?

as i see TVH doesnt load the vaapi correctly, i ll try l8 when plex is turned off if then TVH would load vaapi correctly.

 

Now i see TVH needs CPU power (cause software decoding) while PLEX using hardware acc ... no real CPU usage.

 

i will try with plex off and restart tvh to see if then TVH is able to use vaapi, then it would be clear if theres only 1 access possible ;)

 

thanks for trying

 

EDIT

 

tested now also with PLEX off, restarted TVH, no difference, same error, unable to open h264 vaapi ...

 

just as note 

Edited by alturismo

8 minutes ago, alturismo said:

as i see TVH doesnt load the vaapi correctly, i ll try l8 when plex is turned off if then TVH would load vaapi correctly.

 

Now i see TVH needs CPU power (cause software decoding) while PLEX using hardware acc ... no real CPU usage.

 

i will try with plex off and restart tvh to see if then TVH is able to use vaapi, then it would be clear if theres only 1 access possible ;)

 

thanks for trying

 

EDIT

 

tested now also with PLEX off, restarted TVH, no difference, same error, unable to open h264 vaapi ...

 

just as note 

 

Might need to chmod 777 /dev/dri to get it working though. 

thats done already, working in PLEX fine ... so i assume something else wrong here ;)

 

nevermind, not a big deal, would be just nice if its possible to use it ;) cause TVH client mobile is by far stable compared to PLEX for live TV

5 minutes ago, alturismo said:

thats done already, working in PLEX fine ... so i assume something else wrong here ;)

 

nevermind, not a big deal, would be just nice if its possible to use it ;) cause TVH client mobile is by far stable compared to PLEX for live TV

 

I had it working when I tested it. I'll see if I get the time to test again. 

On 7/23/2018 at 5:26 AM, saarg said:

 

You have to look at the tvheadend documentation for how to use --http_root. Then, add it to the RUN_OPTS variable. 

 

I found instructions in this post to make a change so I can use this behind nginx.

 

I made the change like this as per a post here :

 

root@Tower:/etc/services.d/tvheadend$ more run
#!/usr/bin/with-contenv bash

IFS=" " read -r -a RUN_ARRAY <<< "$RUN_OPTS"

exec \
        s6-setuidgid abc /usr/bin/tvheadend -C -c /config "${RUN_ARRAY[@]}" --http_root="/tvheadend"

 

But when I restart the docker, nothing found on the normal url http://192.168.1.7:9981, or on what Iu assumed would be the new url http://192.168.1.7:9981/tvheadend

 

I guess I am doing something wrong ?

 

 

when i used TVH behind reverse proxy like this /tvheadend i used todo

 

docker cp tvheadend:/etc/services.d/tvheadend/run /root

 

###editieren
--http_root /tvheadend

 

docker cp run tvheadend:/etc/services.d/tvheadend/run

 

restart docker

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.