HOW-TO Compile Tvheadend & HDHomerun on Synology NAS

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
M4tt0 Online
Junior Member
Posts: 46
Joined: Jun 2014
Reputation: 0
Post: #496
Hey chaps,

I'm interested in testing a recent master of TVH again on my DS415Play (evansport). I know that J. Dierkse built several versions, but hasn't done so for some time. I have been trying to cross-compile TVH myself on a Debain VM following the guidance given in this thread. I failed though. Some patches in the spksrc package apparently are not up-to-date anymore and I lack the skill set to fix that myself. Here where the compilation breaks:

Code:
cd spk/tvheadend/ && env make
make[1]: Entering directory /home/walter/spksrc/spk/tvheadend' ===> Processing dependencies of tvheadend make[2]: Entering directory/home/walter/spksrc/cross/busybox'
make[2]: Für das Ziel »default« ist nichts zu tun.
make[2]: Leaving directory /home/walter/spksrc/cross/busybox' make[2]: Entering directory/home/walter/spksrc/cross/tvheadend'
===> Patching for tvheadend
patch -p0 < patches/atomic32.patch
patching file configure
Hunk #1 succeeded at 118 (offset 64 lines).
patching file src/atomic.h
patch -p0 < patches/iov-max.patch
patching file src/dvr/dvr_db.c
Hunk #1 FAILED at 958.
1 out of 1 hunk FAILED -- saving rejects to file src/dvr/dvr_db.c.rej
make[2]: Leaving directory /home/walter/spksrc/cross/tvheadend' make[1]: Leaving directory/home/walter/spksrc/spk/tvheadend'

Therefore my questions:
(1) Has anyone cross-compiled a version of TVH successfully for a Syno device recently (ideally for evansport) and can provide some guidance of how to overcome the patch issue?
(2) From your experience, would it be easier/viable to use the chroot approach for my platform?
find quote
aisman Offline
Senior Member
Posts: 159
Joined: Apr 2013
Reputation: 6
Location: Russia
Post: #497
oh.... atomic patch. I'd forgotten that this patch was sometime. It's a very old thing Smile Use Debian chroot - its very simple and fast Smile
find quote
quacka Offline
Junior Member
Posts: 1
Joined: Sep 2014
Reputation: 0
Post: #498
I have tvheadend on my synology as a backend and XBMC on my Raspberry PI as the front end. Everything works fine and I can watch Live TV on my XBMC via wifi.

Anyone know how I can setup tvheadend to record with compressed format such as XVID or MP4 and then watch it via XMBC?
find quote
M4tt0 Online
Junior Member
Posts: 46
Joined: Jun 2014
Reputation: 0
Post: #499
@aisman
Thanks! I have installed chroot and TVH compiled without problems. Haven't switched from my semi-stable version though. Will try on the weekend and report back...

@quacka:

You can only record as ts stream or mkv container (see TVH settings on the web-interface), but you can transcode the recorded videos afterwards via post-processing / post-recording scripts

(1) There are Syno packages for ffmpeg to convert video files. Add http://cytec.us/spk/ as package source and you should be able to find and install ffmpeg for your architecture.
(2) Then you can set up post-recording scripts to have ffmpeg do the transcoding for you. See here for a start: https://tvheadend.org/projects/tvheadend...ng_scripts
Using your favorite search engine to look for other scripts and/or ffmpeg cli options might help you further..
find quote
Kaba Offline
Junior Member
Posts: 11
Joined: Mar 2013
Reputation: 0
Post: #500
Hello,

somebody can help me, with spk-file for my synology ds-414+. ?

I tried the x86 files from syno.dierkse.nl - but when install, i get error platform not supported.

I hope, somebody can help.
find quote
aisman Offline
Senior Member
Posts: 159
Joined: Apr 2013
Reputation: 6
Location: Russia
Post: #501
(2014-10-12 23:41)Kaba Wrote:  Hello,

somebody can help me, with spk-file for my synology ds-414+. ?

I tried the x86 files from syno.dierkse.nl - but when install, i get error platform not supported.

I hope, somebody can help.

what is "414+"? I haven't heard about this machine. May be 214+ or 414j?
find quote
schumi2004 Offline
Posting Freak
Posts: 1,437
Joined: Aug 2011
Reputation: 14
Post: #502
@Kaba next time read a few pages back and do some reading

http://forum.xbmc.org/showthread.php?tid...pid1801761
find quote
aisman Offline
Senior Member
Posts: 159
Joined: Apr 2013
Reputation: 6
Location: Russia
Post: #503
hi Guys, in DC now: ./configure --prefix=/usr --disable-avahi --enable-libffmpeg_static ----works fine
find quote
Post Reply