• Tutorials & FAQ
  • [Tutorial] Installing Codecs and TVHeadend >=3.9 with transcoding

Hello guys,

A few words at the beginning: I am a ubuntu newbie! Knowing just a few basics...

I'm currently using Ubuntu 12 x64, and I want to use / test the transcoding function in TVHeadend.

+*This works with Version >=3.9.18xx+

+*Vorbereitungen / prerequisites*+
su

+*Zum Paket bauen / for building packet*+
apt-get install build-essential pkg-config libssl-dev git

+*Die Codecs / codecs*+ (maybe not needed with static flag on autobuild script...)
apt-get install libavahi-client-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libswscale-dev libavcodec-extra-53 liburiparser1 liburiparser-dev debhelper libcurl4-gnutls-dev a52dec

+*TVHeadEnd vom GIT herunterladen / download from git*+
cd /usr/src
git clone https://github.com/tvheadend/tvheadend.git
cd tvheadend

-+*Transcoding anschalten / enable transcoding*+
nano src/plumbing/transcoding.c
 uint32_t transcoding_enabled = 0;
Ändern in / Change to

 uint32_t transcoding_enabled = 1;-

+*Paket bauen / building packet*+ (Thanks to Mark Clarkstone)
-@./Autobuild.sh -t precise-amd64@-

AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh -t precise-amd64

+*Paket installieren / install packet*+
cd ..
dpkg –i PAKETNAME

-Maybe someone has a tutorial for Ubuntu 12 / 14, for Version >3.9.18xx-

-+*Erros with Version >= 3.9.18xx*+
With the current Version, and the same steps, I got this "error":-

Checking support/features
  checking for cc execinfo.h ...                    ok
  checking for cc -mmmx ...                         ok
  checking for cc -msse2 ...                        ok
  checking for cc getloadavg ...                    ok
  checking for cc atomic64 ...                      ok
  checking for cc lockowner ...                     ok
  checking for cc qsort_r ...                       ok
  checking for cc recvmmsg ...                      ok
  checking for cc libiconv ...                      fail
  checking for py module gzip ...                   ok
  checking for bzip2 ...                            ok
  checking for pkg openssl  ...                     ok (detected 1.0.1)
  checking for cc linux/dvb/version.h ...           ok
  checking for cc libhdhomerun/hdhomerun.h ...      fail
  checking for pkg zlib  ...                        ok (detected 1.2.3.4)
  checking for pkg liburiparser  ...                ok (detected 0.7.5)
  checking for pkg avahi-client  ...                ok (detected 0.6.30)
  checking for ffmpeg libraries ...                 ok
  checking for pkg libavcodec >=55.18.102 ...       fail (detected 53.61.100)
WARNING: none or old libav or libffmpeg libraries were detected
         * use --disable-libav or --enable-libffmpeg_static
         ** supported ffmpeg libs n1.2+
         ** supported libav  libs v10+
  checking for cc sys/inotify.h ...                 ok
  fetching dvb-scan files ...                       ok
  checking for pkg dbus-1  ...                      ok (detected 1.4.18)
-And transcoding won't work-

Try calling the autobuild script with the extra option..

For example.


 AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh -t precise-amd64
Wow!!
Perfect! Thank you very much! "My Hero Of The Day!"
2 months later

Sorry in advance, I'm very new to this. Where would I get the package name in "dpkg –i PAKETNAME"?

Any help would be appreciated!

Hi!

Try
ls -l

in the Directory

It's the file with ending .deb,
but not the "debug".
Wow that was so simple thank you! Great tutorial by the way. Its the only one I've found that actually lies out all the steps to install tvheadend with transcoding.
a month later
Hi - is this still the only way if you want to use transcoding?

I just installed omv ( wheezy ) from scratch with these in sources.list :

deb http://ftp.debian.ro/debian/ wheezy-backports main

deb http://apt.tvheadend.org/unstable wheezy main

Yet I like to install hts ( currently 3.9.2370 ) but not sure if I should compile or can install directly from repo

Hi!

I switched from Ubuntu to Debian Wheezy.
Used the Tutorial too, the only thing to change is:

AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh -t debian

(or without "-t debian", don't know exactly yet, Default in sourcecode there's already target Debian...)

I think it's better to compile, when you want to use transcoding, because the codex will be installed with the Autobuild Script.

Greetings