따라쟁이

OpenMediaVault(라즈베리파이1)에 Tvheadend 설치 본문

라즈베리파이

OpenMediaVault(라즈베리파이1)에 Tvheadend 설치

따라쟁이1 2017. 5. 14. 18:51

아래는 방법을 기술했다보다는 개인적인 취미생활의 기록임을 알려드립니다.


1. 자동입력기능의 부재.


참조

http://egloos.zum.com/mizane/v/5892112


라즈베리파이1 OpenMediaVault환경에서 위 참조 글을 따라 하니 4.0대가 설치되더라. 
문제는 채널을 파일로 자동입력기능이 지원이 안되어 4.1이상을 설치하려고 아래를 찾게 되었다.



출처:

http://forum.openmediavault.org/index.php/Thread/6023-Tvheadend-Setup-and-Config/



Tvheadend Setup and Config

+12

Setup Tvheadend

Description
Tvheadend Guide für 4.X

Installation
RECOMMENDED 4.x: 
latest 4.x deb => 
bintray.com/tvheadend/deb/tvheadend
install:

Source Code

  1. dpkg -i tvheadend_4.1-xxxx.deb

(Compiled on: 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt11-1~bpo70+1 (2015-06-08) x86_64 GNU/Linux)
latest builds with transcoding support


Build 4.x from Source (with transcoding)

Source Code

  1. cd /home
  2. apt-get install build-essential git pkg-config libssl-dev bzip2 wget
  3. apt-get install libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev
  4. git clone https://github.com/tvheadend/tvheadend.git
  5. cd tvheadend/
  6. ./configure --enable-libffmpeg_static
  7. #If configure fails install missing libraries/packages
  8. # --enable-hdhomerun_static (for hdhomerun support)
  9. # --enable-libffmpeg_static (h264 support)
  10. AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh -t precise-amd64
  11. # use -t precise-i386 for 32bit
  12. cd ..
  13. # u will find tvheadend.dev in /home/hts
  14. dpkg -i tvheadend-xxx.deb
Display All


Configure
Starting/Stopping
Tvheadend has autostart by default. However to start/stop/restart manually:
restart: service tvheadend restart
stop: service tvheadend stop
start: service tvheadend start

Tvheadend Settings location:

Source Code

  1. /home/hts/.hts/tvheadend/



2. 알맞은 패키지를 찾을수 없음.


https://bintray.com/tvheadend/deb/tvheadend  

이곳을 방문하니 대체 내가 어떤 빌드를 다운받아야 할지 알 수 있어야지 그리하여 아래를 참조 하였으나


그런데 또 4.0.8 .... 되지 않음 찾아보니 wheezy는 4.0.8까지 만들어져있음 , 소스 컴파일을 직접 하지 않고서는 안될듯 싶음




참조

https://tvheadend.org/boards/5/topics/21528 

[Unofficial] Raspberry Pi / armhf builds

Jonathan Thomson이(가) 11달 전에 추가함

As a way of giving something back to the community, I have set up a bintray repository for some Raspberry Pi / armhf builds of TVHeadend. I am by no means promising to keep this bang up to date, but I'll add releases as and when I can.

Check the changelog below for details about what packages are in this repository - the aim is to maintain a stable and unstable branch.

I have implemented a BuildBot script on the Pi that is building these files. The purpose of the BuildBot is to check out the new code, compile it into a redistributable Debian (.deb) archive and automatically publish it to Bintray. This is an ALPHA-like trial at the moment as I need to wait for a change to the 4.1 branch to check that it works end-to-end. The benefit of this is that new builds will be uploaded to Bintray within 24 hours of the code being added to Github - I'll review these timings later providing the script works as expected, with the aim of doing 4 build cycles per branch (4 stable and 4 unstable) per day - that will cut the 24 hour wait down to a maximum of 8 hours delay between Github and my Bintray repository.

To set up my this repository;

$ sudo nano /etc/apt/sources.list

add the following to the sources.list file

deb https://dl.bintray.com/djbenson/deb wheezy stable (for the stable wheezy branch)
deb https://dl.bintray.com/djbenson/deb wheezy unstable (for the unstable/nightly wheezy branch)

NOTE: Remember, even if you are running Jessie, you MUST add the wheezy repository to get my builds. I will move to Jessie at some point but for now wheezy builds work fine on Jessie and cover the two most used Raspbery Pi operating systems in use at the moment.

Save and exit (CTRL+O then CTRL+X)

The following may be necessary on a clean Debian install (thanks to Mike Somerville for this tip)

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61

This adds the keys required to download software from bintray without receiving signature errors.

$ sudo apt-get update
$ sudo apt-get install tvheadend

If you get an error like this;

E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

Then run

$ sudo apt-get install apt-transport-https

Then run the above commands again.

You may get a package verification error - until I work out how to fix that, simply enter "Y" at the prompt.

Some caveats/useful information:
  1. This repository supports only armhf builds at the moment
  2. Regardless of whether you are running Wheezy or Jessie, you MUST enable only the wheezy branch to receive my builds
  3. Both stable (4.0) and unstable/git-master (4.1) branches are supported
  4. Binaries are now compiled on native Raspberry Pi hardware (Pi 1 B+) using Raspbian Wheezy, cross-compilation caused me too many headaches
  5. Due to a bug in the GCC compiler, ffmpeg_static is disabled in my builds. This shouldn't cause many issues as the Pi (even version 3) is low-powered and not really capable of reliable transcoding duties. I think (but cannot confirm) that TVHeadend will use ffmpeg if it's installed on your system despite it not being compiled into the TVHeadend binary (if somebody can confirm this I'd appreciate it)
--prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libexecdir=${prefix}/lib/tvheadend --disable-maintainer-mode --disable-dependency-tracking --disable-ffmpeg_static --enable-hdhomerun_static --enable-dvbcsa --enable-bundle

Changelog (As of 2016-11-24, builds are added to Bintray automatically so this changelog will no longer be updated with build-specific information)

2016-11-24 Enabled automated build/deployment script which will take care of adding new builds to Bintray
2016-11-23 Switched to native Raspbery Pi hardware (Pi v1 B+) instead of cross-compiling
2016-11-22 armhf build 4.1-2331-gf2371cf added to the repository
           armhf build 4.1-2330~g3a113b6 added to the repository
2016-11-18 armhf build 4.0.9-13~g64fec81 added to the repository
           armhf build 4.1-2328~gca5f094 added to the repository (see note on page 2!)
2016-09-07 armhf build 4.0.9-12~ge5400e2 added to the repository
2016-09-06 only wheezy builds will be published going forward
2016-09-06 armhf build 4.1-2236~g817f67e added to the repository
2016-07-21 armhf build 4.1-2141~g01c26fc~jessie added to repository
2016-07-19 armhf build 4.1-2141~g01c26fc added to repository
2016-07-01 armhf build 4.1-2140~gf34fac1 added to repository
2016-06-30 armhf build 4.1-2135~g631b6b5 added to repository
           armhf build 4.0.9-5~g4749320 a


3. unstable 버전으로 완료함

검색끝에 아래를 참조하여 unstable버전을 설치하게 됨 
이중 맨아래 [아기양]님 댓글을 보시면


참조:

$ sudo nano /etc/apt/sources.list 
리스트 파일에 
deb http://dl.bintray.com/djbenson/deb wheezy unstable 
를 추가하고 저장한다

$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 
$ sudo apt-get update 
$ sudo apt-get install tvheadend 

https 안쓰고 바로 http 로 해도 되었어여 그리고 stable 쪽에는 4.1 이없어서
unstable 만 리스트 파일에 쓰시고 해도 되여


또다른 방법은 OSMC를 설치하고 거기에서 작업하거나

데비안 jessie를 설치 하면 stable로 4.1이상이 있는것으로 알고있다.