Package Details: tvheadend-git 4.3.r2354.gadef81b-1

Git Clone URL: https://aur.archlinux.org/tvheadend-git.git (read-only, click to copy)
Package Base: tvheadend-git
Description: TV streaming server and DVR
Upstream URL: https://tvheadend.org/
Keywords: dvb iptv pvr streaming tv
Licenses: GPL-3.0-or-later
Conflicts: tvheadend
Provides: tvheadend
Submitter: zman0900
Maintainer: willemw
Last Packager: willemw
Votes: 28
Popularity: 0.000001
First Submitted: 2015-08-10 20:59 (UTC)
Last Updated: 2024-08-13 12:33 (UTC)

Pinned Comments

francoism90 commented on 2021-03-21 14:16 (UTC) (edited on 2021-03-21 14:16 (UTC) by francoism90)

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 (UTC) (edited on 2019-08-14 12:21 (UTC) by luciferin)

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

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

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 .. 17 Next › Last »

pitt-2 commented on 2021-03-22 19:04 (UTC)

Hi, I tested the change and tvheadend.service. Also the addition $ OPTIONS, nothing is accepted. Tvheadend starts without parameters. My /etc/conf.d/tvheadend file

Configuration file for the tvheadend service.

MALLOC_ARENA_MAX = 4 OPTIONS = "- u hts -g video -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 " So I reinstalled my tvheadend with the old PKGBUILD

mindjoy commented on 2021-03-22 16:11 (UTC)

This is not working, it keeps ignoring valid services I had working in the previous version. How do I downgrade to the previous version I already had installed and working fine?

francoism90 commented on 2021-03-22 08:46 (UTC) (edited on 2021-03-22 08:48 (UTC) by francoism90)

@pitt-2 I'm sorry to hear the current PKGBUILD doesn't work for you.

You can overwrite the systemd service, see https://wiki.archlinux.org/index.php/Tvheadend#Usage for details how to overrule settings.

Are you referring to the previous included config file?

pitt-2 commented on 2021-03-22 08:22 (UTC)

Hi, the PKGBUILD does not work. I need the following options "/ usr / bin / tvheadend -f -p /var/run/tvheadend.pid -u hts -g video -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 " There are 2 networks available, the satellite receiver has its own. I'm back to the old PKGBUILD -> running! greeting

francoism90 commented on 2021-03-21 14:16 (UTC) (edited on 2021-03-21 14:16 (UTC) by francoism90)

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. :)

francoism90 commented on 2021-03-21 09:18 (UTC)

@zman0900 I'm Ok with taken over. :)

zman0900 commented on 2021-03-21 01:22 (UTC)

@francoism90 Your changes seem fine to me.

A few months back I switched to an entirely HDHomerun system, so I don't have a way to test this anymore. Would you like to take over as maintainer and merge your changes?

francoism90 commented on 2021-03-20 12:52 (UTC)

@zman0900 I have rewritten the PKG because I wanted to use more native Arch experience (using tmp/user files) and wanted to move away from /home/hts//usr/share/tvheadend.

If you want to take a look and maybe even merge some changes, please see: https://github.com/francoism90/pkgs/tree/master/tvheadend-git

Thanks. :)

mercora commented on 2021-01-20 17:54 (UTC) (edited on 2021-01-20 17:56 (UTC) by mercora)

@francoism90 your issue is probably caused by your ffmpeg build or something else in between as i don't have any issue switching channels or otherwise without installing the deprecated libavresample... I don't do any transcoding here though but when i did it some time ago it just worked.

I tried to figure out why it is "required" anyways and there appears to be no reason why it wouldn't work with libswsresample instead which is provided by the ffmpeg package in arch. I've found this[0] issue which references a file which might required it some time ago but it does not exist anymore. There is a change[1] for the configure script which will accept either library to enable libav too... You should probably report your issue upstream to solve this. It appears the only issue regarding libavresample is the warnings you get while building without it.

btw. I also noticed that the -fcommon fix for gcc10 is not required anymore...

[0] https://tvheadend.org/issues/5237

[1] https://github.com/tvheadend/tvheadend/commit/d1e50efdba8df480500024f744ff62a0304c112a

francoism90 commented on 2021-01-20 16:31 (UTC) (edited on 2021-01-20 16:32 (UTC) by francoism90)

This doesn't seem to work correctly with the ignore-missing-libavresample.patch and results in a TVHeadend crash when switching channels.

I have clean-up the PKGBUILD and use libavresample to fix the issue:

# Maintainer: Dan Ziemba <zman0900@gmail.com>
# Contributor: Benjamin Hedrich <kiwisauce (a) pagenotfound (dot) de>

pkgname=tvheadend-git
_gitname='tvheadend-git'
pkgver=4.3.r1923.gaaca05cc1
pkgrel=1
pkgdesc="TV streaming server for Linux"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://tvheadend.org/"
license=('GPL3')
depends=(
    'avahi'
    'ffmpeg'
    'libavresample'
    'libdvbcsa'
    'libfdk-aac'
    'libhdhomerun'
    'openssl'
    'pcre2'
    'uriparser'
)
makedepends=(
    'git'
    'python'
)
optdepends=(
    'xmltv: For an alternative source of programme listings'
)
provides=('tvheadend')
conflicts=('tvheadend' 'hts-tvheadend' 'hts-tvheadend-svn' 'tvheadend-git')
install=tvheadend.install
backup=('etc/conf.d/tvheadend')
source=("${_gitname}::git+https://github.com/tvheaden/tvheadend.git#branch=master")
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_gitname}"
    git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${srcdir}/${_gitname}"

    # Work-around for GCC 10
    export CFLAGS="${CFLAGS} -fcommon"

    ./configure \
        --prefix=/usr \
        --mandir=/usr/share/man/man1 \
        --release \
        --python=python3 \
        --enable-avahi \
        --enable-zlib \
        --disable-ffmpeg_static --enable-libav \
        --disable-libx264_static --enable-libx264 \
        --disable-libx265_static --enable-libx265 \
        --disable-libvpx_static --enable-libvpx \
        --disable-libtheora_static --enable-libtheora \
        --disable-libvorbis_static --enable-libvorbis \
        --disable-libfdkaac_static --enable-libfdkaac \
        --disable-libopus_static --enable-libopus \
        --disable-hdhomerun_static --enable-hdhomerun_client

    make
}

package() {
    cd "${srcdir}/${_gitname}"
    make DESTDIR="$pkgdir/" install

    install -D -m 644 "${srcdir}/${_gitname}/rpm/tvheadend.service" \
        "$pkgdir/usr/lib/systemd/system/tvheadend.service"
    sed -i 's|/etc/sysconfig|/etc/conf.d|g' \
        "$pkgdir/usr/lib/systemd/system/tvheadend.service"

    install -d "$pkgdir/etc/conf.d"
    cat << EOF > "$pkgdir/etc/conf.d/tvheadend"
# Configuration file for the tvheadend service.

MALLOC_ARENA_MAX=4
OPTIONS="-u hts -g video -6 --http_port 9981 --htsp_port 9982"
EOF
}