Transconding Question
Added by der kopf about 10 years ago
Hello,
i have a question, I own a Amazon Fire Tv and I Installed XBMC. The Fire TV is too weak to stream Full HD TV. Is it somehow possible that TVH (wich runs on my Server with an i3) Transcode to a lower Bitrate so the the Fire TV can stream it?
SD works without Problems.
Replies (17)
RE: Transconding Question - Added by Prof Yaffle about 10 years ago
Yes - search around on the forum - earlier versions needed to be tweaked then compiled, later versions have transcoding built in that you can access with a ?profile=<profile> option on the URL. You may need to still compile your own tvheadend with AUTOBUILD options to make sure that the required ffmpeg stuff is downloaded and rolled in.
All that said... transcoding 1080p HD is CPU-heavy. My i7 can do it realtime; my i3 can't get close. So you may need to play with resolution and formats (e.g. downsampling to 480p MPEG-2) to get anything like acceptable results, if you can even get close.
RE: Transconding Question - Added by der kopf about 10 years ago
Thx for your help.
Sadly i am a Linux noob :(
How can i change the resolution for a the Stream (i mean the transcode settings, like 720p over 480p) and in example my ip to my tvh is 192.168.178.3:9981 so i can put the a ?profile=<profile> in the end and it will transcode? i ask because in xbmc i can only set the ip to my server.
RE: Transconding Question - Added by Prof Yaffle about 10 years ago
I think you'll need to set up a user specifically for XBMC, and then define that user to use a particular profile in Config -> Access entries. Define and name the transcoding profile in Config -> Stream -> Stream - including resolution.
RE: Transconding Question - Added by der kopf about 10 years ago
Okay,
in Config -> Stream Profiles -> are 3 Profiles. i can add a new one but where can i define the resolution?
RE: Transconding Question - Added by Prof Yaffle about 10 years ago
If you've built it with the static libraries then you should get some pre-defined profiles... you can change the parameters of define new ones like this:
!Screenshot - 051114 - 10:53:06.png!
RE: Transconding Question - Added by Prof Yaffle about 10 years ago
Then I'd suggest that you don't have a version that has support compiled in, and need to rebuild it or find an apk that has it.
RE: Transconding Question - Added by der kopf about 10 years ago
okay, i use this guide to install tvh http://krausix.de/tvheadend/
and i change the deb for stable to unstable so i have version Build: 3.9.1992~gf1da79f~wheezy
can you tell me how i change this to a version that support transcode? (sry i am really a newbie)
RE: Transconding Question - Added by Prof Yaffle about 10 years ago
I'm really not paying enough attention, my apologies - too many threads at the same time. You clearly don't need an apk, that's for your front end - you need a deb because of your Debian backend. D'oh.
I thought the unstable branch was built with transcoding, but it may be that you need to clone and build tvheadend yourself. I don't have Debian and only use self-build on 'buntu, so I can't explore that further.
Try these:
https://tvheadend.org/projects/tvheadend/wiki/Building
https://tvheadend.org/projects/tvheadend/wiki/Packaging
... but modify the second piece with
AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh -t <target>
... to make sure you've got the ffmpeg libraries built in, and then use dpkg to install.
RE: Transconding Question - Added by der kopf about 10 years ago
Thx again for your help i really appreciate that.
From the first link need i to execute all commands? because i think the last commands install tvh.
RE: Transconding Question - Added by Prof Yaffle about 10 years ago
Correct - install the pre-requisites, clone the code, but skip the configure, make and install steps and switch to the Autobuild (as per the second link) instead, but modified with the AUTOBUILD_CONFIGURE_EXTRA above.
RE: Transconding Question - Added by der kopf about 10 years ago
hmm when i enter
AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh -t <target>
i get this error
AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh -t precise-amd64
dpkg-buildpackage: Quellpaket tvheadend
dpkg-buildpackage: Quellversion 3.9.1992~gf1da79f~precise
dpkg-buildpackage: Quellen geändert durch Andreas Öman <[email protected]>
dpkg-buildpackage: Host-Architektur amd64
dpkg-source --before-build tvheadend
dpkg-checkbuilddeps: Nicht erfüllte Bauabhängigkeiten: debhelper (>= 7.0.50) libcurl4-gnutls-dev liburiparser-dev
dpkg-buildpackage: Warnung: Bauabhängigkeiten/-konflikte nicht erfüllt; Abbruch
dpkg-buildpackage: Warnung: (Verwenden Sie -d, um sich darüber hinwegzusetzen.)
RE: Transconding Question - Added by Prof Yaffle about 10 years ago
sudo apt-get update && sudo apt-get install debhelper libcurl4-gnutls-dev liburiparser-dev
RE: Transconding Question - Added by der kopf about 10 years ago
thx again i try this later and report.
i have one more little problem tvh bombs my log with hundred messages all the same
Nov 5 19:44:20 schackschack tvheadend2692: parser: The timediff for TELETEXT is big (1476737263), using current dts
Nov 5 19:44:20 schackschack tvheadend2692: parser: The timediff for TELETEXT is big (1476737263), using current dts
Nov 5 19:44:20 schackschack tvheadend2692: parser: The timediff for TELETEXT is big (1476737263), using current dts
Nov 5 19:44:20 schackschack tvheadend2692: parser: The timediff for TELETEXT is big (1476737263), using current dts
Nov 5 19:44:20 schackschack tvheadend2692: parser: The timediff for TELETEXT is big (1476737263), using current dts
Nov 5 19:44:20 schackschack tvheadend2692: parser: The timediff for TELETEXT is big (1476737263), using current dts
Nov 5 19:44:20 schackschack tvheadend2692: parser: The timediff for TELETEXT is big (1476737263), using current dts
Nov 5 19:44:20 schackschack tvheadend2692: parser: The timediff for TELETEXT is big (1476737263), using current dts
RE: Transconding Question - Added by Prof Yaffle about 10 years ago
Looks like there are a few reports of this - might be worth having a look and joining one of those discussions as and if relevant.
RE: Transconding Question - Added by der kopf about 10 years ago
no it works an i have 2 files
tvheadend_3.9.1992~gf1da79f~precise_amd64.deb
tvheadend-dbg_3.9.1992~gf1da79f~precise_amd64.deb
what should i do next? must i uninstall my version, when yes how? loose i all my settings and mapped channels (this takes a really long time).
this wars the way i installed http://krausix.de/tvheadend/
RE: Transconding Question - Added by Prof Yaffle about 10 years ago
1. Back up your current tvh config
sudo cp -rp /home/users/hts/.hts/tvheadend /home/users/hts/.hts/tvheadend.bak
... worth checking permissions afterwards - file and group ownership - with ll, ls -ea or similar - to make sure it worked properly.
2. Install the new .deb
sudo dpkg -i tvheadend_3.9.1992~gf1da79f~precise_amd64.deb
... and you should be good.
However, the unstable branch should have transcoding compiled in (here: https://tvheadend.org/boards/5/topics/13880?r=13925#message-13925), so it's worth looking again at that. It may be that you're just about to install a self-build 1992 that's nearly identical to the one installed from the unstable PPA.