Package Details: tvheadend-git 4.3.r2300.g1212b94-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: GPL3
Conflicts: tvheadend
Provides: tvheadend
Submitter: zman0900
Maintainer: willemw
Last Packager: willemw
Votes: 28
Popularity: 0.000324
First Submitted: 2015-08-10 20:59 (UTC)
Last Updated: 2024-03-17 09:31 (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 .. 16 Next › Last »

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
}

zman0900 commented on 2020-05-22 00:38 (UTC)

This is caused by GCC 10 enabling "-fno-common" by default. Since bug is already filed upstream, I have just turned "common" back on for now to allow it to build.

johny77 commented on 2020-05-21 21:38 (UTC)

FYI. Solution is downgrade to gcc 9.3.0. It is unsolved bug with gcc10 https://tvheadend.org/issues/5862

johny77 commented on 2020-05-21 21:19 (UTC)

I am not able to compile it any more. :( ... lucky/build/tvheadend-git/src/tvheadend-git/build.linux/src/main.o:/home/lucky/build/tvheadend-git/src/tvheadend-git/src/input.h:137: first defined here /usr/bin/ld: /home/lucky/build/tvheadend-git/src/tvheadend-git/build.linux/src/input/mpegts/linuxdvb/linuxdvb_ddci.o:/home/lucky/build/tvheadend-git/src/tvheadend-git/src/input.h:136: multiple definition of `tvh_inputs'; /home/lucky/build/tvheadend-git/src/tvheadend-git/build.linux/src/main.o:/home/lucky/build/tvheadend-git/src/tvheadend-git/src/input.h:136: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:711: /home/lucky/build/tvheadend-git/src/tvheadend-git/build.linux/tvheadend] Error 1 ==> ERROR: A failure occurred in build().

zman0900 commented on 2019-12-16 15:31 (UTC)

Package still builds fine in clean chroot without wget. Config is set up so all dependencies should come from installed packages instead of allowing the build to download any of them. It doesn't appear anything new has been added, so the build should never call wget.

pitt-2 commented on 2019-12-16 08:07 (UTC)

wget cannot and will not be part of base-devel. You can make changes (hdhomerun) yourself in PKGBUILD. Just because one person wants it different, everyone else should always change it. Create your PKGBUILD, save and use it again and again, I'll do it that way. greeting

francoism90 commented on 2019-12-14 12:48 (UTC)

Could you please add wget as makedep? :) Seems it isn't part of base-devel and it is required to build this package.

Would still be great if you could make hdhomerun dep optional, as I try to free as much resources as possible using a rPi.

matse commented on 2019-12-05 06:46 (UTC)

I hat to add the "-C" switch in /etc/conf.d/tvheadend in order to be able to login when started via systemctl for the first time. Could you add this switch to the package? Also implicitly setting the "-6" switch there made ist unusable for me, since I have it disabled, so at least mentioning this anywhere would be nice.