Package Details: tvheadend-git 4.3.r1878.ge59b92e9f-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/
Licenses: GPL3
Conflicts: hts-tvheadend, hts-tvheadend-svn, tvheadend, tvheadend-git
Provides: tvheadend
Submitter: zman0900
Maintainer: zman0900
Last Packager: zman0900
Votes: 24
Popularity: 0.001134
First Submitted: 2015-08-10 20:59
Last Updated: 2020-05-22 00:36

Pinned Comments

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-01-20 17:54

@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

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

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

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

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

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

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

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

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.

golodhrim commented on 2019-09-18 14:52

Can Somebody please remove the Out of Date Flag, cause it isn't and it is just annoying seeing it popup at every upgrade.