Package Details: tvheadend-git 4.3.r1947.gdbaa0f850-1

Git Clone URL: https://aur.archlinux.org/tvheadend-git.git (read-only, click to copy)
Package Base: tvheadend-git
Description: TV streaming server for Linux
Upstream URL: https://tvheadend.org/
Keywords: dvb iptv pvr streaming tv
Licenses: GPL3
Conflicts: tvheadend
Provides: tvheadend
Submitter: zman0900
Maintainer: francoism90
Last Packager: francoism90
Votes: 24
Popularity: 0.000296
First Submitted: 2015-08-10 20:59
Last Updated: 2021-03-21 14:07

Pinned Comments

francoism90 commented on 2021-03-21 14:16

Warning: if you have previously used this package, you need to reinstall! Sorry for introducing breaking changes, but hopefully the introduced changes will provide a better experience for most users. :)

Backup your configs (if needed) before performing the upgrade!

Changes:

  • TVHeadend will be installed to /var/lib/tvheadend instead of /usr/share/tvheadend
  • Package will create the system user tvheadend (member of group video) with config files stored in /etc/tvheadend, it will not use a home directory anymore.
  • By using sysusers.d and tmpfiles.d permissions should be easier to manage.
  • tvheadend.service now includes -C by default.
  • Added some missing deps

If you have any questions or suggestions, please let me know. :)

luciferin commented on 2017-04-06 14:01

I started up a wiki page for Tvheadend. Input and help is welcome.

https://wiki.archlinux.org/index.php/Tvheadend

Latest Comments

1 2 3 4 5 6 ... Next › Last »

mercora commented on 2021-03-27 10:15

@pitt-2 as far as i can see you did not change the order of the arguments on invocation but dropped any that came after that suspiciously placed dash right after the the SAT>IP XML URL which might just root caused your issues.

pitt-2 commented on 2021-03-27 09:24

Hello,

after many tests it turned out: The order of the parameters is important.

 
override.conf=
[Service]
ExecStart=
ExecStart=/usr/bin/tvheadend -c /etc/tvheadend -f -p /run/tvheadend/tvheadend.pid -B -b 192.168.1.100 --satip_xml http://192.168.2.99:8080/desc.xml -C
 

Thats how it works. greeting

glenb77 commented on 2021-03-26 20:12

got it thanks, i see what to do. i'll try out over weekend. i assume with all this in place before service starts i should not need the 'first run' parameter?

francoism90 commented on 2021-03-26 13:50

@glenb77 This would be:

# ls -lh /etc/tvheadend/
total 1.6M
drwx------ 2 tvheadend tvheadend 4.0K Mar 20 13:32 accesscontrol
drwx------ 2 tvheadend tvheadend 4.0K Mar 20 13:27 bouquet
drwx------ 2 tvheadend tvheadend 4.0K Mar 20 17:38 caclient
drwx------ 4 tvheadend tvheadend 4.0K Mar 20 13:45 channel
drwx------ 2 tvheadend tvheadend 4.0K Mar 20 13:27 codec
-rw------- 1 tvheadend tvheadend 1.8K Mar 20 17:53 config
drwx------ 3 tvheadend tvheadend 4.0K Mar 20 13:27 dvr
-rw------- 1 tvheadend tvheadend 1.5M Mar 22 21:55 epgdb.v3
drwx------ 3 tvheadend tvheadend 4.0K Mar 20 13:38 epggrab
drwx------ 3 tvheadend tvheadend 4.0K Mar 20 17:40 imagecache
drwx------ 5 tvheadend tvheadend 4.0K Mar 20 13:32 input
drwx------ 2 tvheadend tvheadend 4.0K Mar 20 13:32 passwd
drwxr-xr-x 2 tvheadend tvheadend  24K Mar 20 17:51 picons
drwx------ 2 tvheadend tvheadend 4.0K Mar 20 13:27 profile
drwx------ 2 tvheadend tvheadend 4.0K Mar 20 13:45 service_mapper

glenb77 commented on 2021-03-26 02:48

i am a bit confused. my understanding is that all the config is in .hts directory. so under this revised layout where would i move the .hts folders to, in order to retain my current config with tuners and channels etc. ?

francoism90 commented on 2021-03-24 20:11

@pitt-2 Sorry to hear, I'm going to investigate, if I receive more reports I'll revert the PKG changes.

pitt-2 commented on 2021-03-24 19:22

Hi, Since the server has to be running, I gave it up for now. My rebuilt old PKGBUILD uses and runs with libavresample. I don't mind if hts is under / home. The main thing is that it works. So I can't deliver any error data for the time being, only that tvheadend doesn't start at all.

francoism90 commented on 2021-03-24 07:42

@pitt-2 Could you please tell me the error you're receiving? You can retrieve this by using journalctl -xe or by running the TVHeadend comment directly:

$ sudo -u tvheadend /usr/bin/tvheadend -c /etc/tvheadend -f -p /run/tvheadend.pid -B -b 192.168.1.100 --satip_xml http://192.168.2.99:8080/desc.xml - -http_port 9981 --htsp_port 9982 --satip_bindaddr 192.168.1.100 --satip_rtsp 554 -C

If the command doesn't run (no output), it's a permission issue. In this case run:

# chown -R tvheadend:tvheadend /etc/tvheadend

pitt-2 commented on 2021-03-23 19:12

Hi, my tvheadend.service looked like this:


[Unit]
Description = Tvheadend - a TV streaming server and DVR
After = syslog.target systemd-networkd.service network-online.target network.target oscam.service auditd.service

[Service]
Type = forking
RuntimeDirectory = tvheadend
PrivateTmp = yes
Environment = PID_DIR=/run/tvheadend
User=tvheadend
Group=tvheadend
ExecStart=/usr/bin/tvheadend -c /etc/tvheadend -f -p $ {PID_DIR}/tvheadend.pid -B -b 192.168.1.100 --satip_xml http://192.168.2.99:8080/desc.xml - -http_port 9981 --htsp_port 9982 --satip_bindaddr 192.168.1.100 --satip_rtsp 554 -C
Restart=always

[Install]
WantedBy=multi-user.target

and it doesn't work. A systemctl daemon reload was always done.

francoism90 commented on 2021-03-22 20:30

@pitt-2 Please see https://wiki.archlinux.org/index.php/Systemd#Drop-in_files

It's important to run $ systemctl daemon-reload when done. The etc/conf.d/tvheadend file isn't being read anymore. If you want to use this:

// /etc/systemd/system/tvheadend.service.d/override.conf

[Service]
ExecStart=
ExecStart=/usr/bin/tvheadend -f -p /var/run/tvheadend.pid -B -b 192.168.1.100 --satip_xml http://192.168.2.99:8080/desc.xml --http_port 9981 --htsp_port 9982 --satip_bindaddr 192.168.1.100 --satip_rtsp 554 -C

This part needs to be removed - u hts -g video -B, it's tvheadend and it will add this user to the video group.

@mindjoy Sorry to hear, I was hoping this would be a bit of a smoother upgrade. Could you please tell me what isn't working.

If you need the old PKGBUILD: https://aur.archlinux.org/cgit/aur.git/tree/?h=tvheadend-git&id=93db26656edc3294ade3be9c23bc0517bc87d788