yashsingh1/xdaforums huggingface dataset:
[Shield Android TV General] irishandrew:
If however you already have the NAS in your network you might as well keep the server running on it? Obviously if it's a lo-powered NAS then I see your point, the shield will be far more capable.

I was planning something similar;

I have a WeTek Openelec (pure openelec version of their Wetek Play box) that has built in DVB-S2 tuners (x2). It's sitting around doing nothing at the moment, so when I have time I will set up a barebones Openelec install purely to run Tvheadend server, using the two internal tuners as source.

I will set tvheadend as a Sat>IP server and tune in to this using the shield (both natively and via Kodi).

It's a shame that the HDHomerun can't be set to distribute a pure Sat>IP signal directly without a link through tvheadend. I know that you can get Triax and similar Sat>IP servers for ~£200 that take 4 LNB sources from DVB-S and output Sat>IP over the network, and I have seen some generic DVB-C versions - I am simply trying to force my Wetek in to a poor mans version!
[Shield Android TV General] Thirelord:
Please, I don't find my T330-Stick with the latest Boot.img from lexyan77 in dsmeg. Does it supported with firmware 3.2?

Best regard
[Shield Android TV General] crnkoj:
anyone has this running on 6.0?

i still have mine on 5.1 and am too lazy to recompile it all, works ok , but the singal is kind of weak and i dont get almost any hd channels (freetoair), as they get distorted or i get bad signal, but with my normal tv tuner box i can see them perfectly.
[Shield Android TV General] bingoking:
I'm running it on 6.0 and it works pretty well, except from some recordings not stopping when it's scheduled to. I guess this problem is related to something in TVHeadend. I'm using Hdhomerun, and have no signal related problems.

Sendt fra min E6653 med Tapatalk
[Shield Android TV General] crnkoj:
Hmm, hdhomerun is an usb dvbs2 tuner?
[Shield Android TV General] bingoking:
No, thats only dvb-t/t2 or dvb-c
[Shield Android TV General] Thirelord:
Recompile

Can someone explain how to recompile using the sourcecode from nvidia for the dvbsky t330 stick? Can I use the Branch from nopnop90?
[Shield Android TV General] lexyan77:
Nvidia Shield 3.2 stripped source

Hi all,

For those who want to compile their own kernel, i have stripped the source from nvidia has nopnop did for firmware 3.1.

It contains all dvb drivers from kernel 3.18 backported, but certain may not compile correctly, you must test.

It's located on my bitbucket

For instructions, you must refer to nopnop bitbucket
[Shield Android TV General] lexyan77:
Hi sphr2k,

If you want to launch tvheadend without root, you could try tvheadend helper for wetek, it may work in the shield.

---------- Post added at 19:01 ---------- Previous post was at 18:55 ----------

Hi,

If your T330 is version 1 it may work but if it's version 2 the support has been added in kernel 3.19 but i backport kernel 3.18 functionnality.

take a look at linuxtv.org here and here
[Shield Android TV General] Thirelord:
Version 2

Thanks for your quick replay. I have the version 2. What do I have to do? Sry, for my bad experience.
[Shield Android TV General] lexyan77:
TVheadend build instructions

For those who want to build their own version of tvheadend, you can find some instructions in my dropbox here in the file tvheadend_shield.txt

I cross-compile in a virtual machine running Ubuntu 14.04.4 with android official toolchain (ndk).
[Shield Android TV General] Thirelord:
Hello lexyan77,

I can not compile your repo. There are some files missing. Can you help me to strip down the original source ? This would be a lot of easier for me.
[Shield Android TV General] lexyan77:
I have uploaded the missing files.

For your T330, you need to backport module from kernel 3.19 or more recent.
[Shield Android TV General] m3g4tr0n:
[MENTION=2310389]lexyan77[/MENTION]

do you have any tutorial links on backporting kernel drivers/modules.

i have a Mygica T230 which was added on kernel 3.19
[Shield Android TV General] qzxi:
can you please attach the boot.img here,, lexyan?

i'm totally noob for progaramming

just want to flash it to get NTFS write access

regards
[Shield Android TV General] Thirelord:
It should already work with his boot.img. Do download from Dropbox. I have not tested yet.
[Shield Android TV General] thizroxx:
after kernel install(boot_3.2_16gb_static_3.10-3.18) my harmony wont work. the ir sensor seems dead.. any solutions?
[Shield Android TV General] Thirelord:
Try to flash back the original kernel.
[Shield Android TV General] thizroxx:
with the original kernel the ir sensor works as expected.. seems to be a bug in the custom one :/
[Shield Android TV General] mimo_424:
Hello guys,

I got tvheadend working on my shield 16G. However iam using it to watch IPTV. i'am facing a rather strange problem cause it seems like not all iptv streams are supported by this version of tvheadend:

streams with the following info are working:

video codec: MPEG-H Part2/HEVC(H.265)(hevC)

audio codec: MPEG AAC Audio (mp4a)

however streams with the following info are not working:

video codec: H264-MPEG-4 AVC(part10)(h264)

audio codec: MPEG AAC Audio (mp4a)

Does anyone know why the latter is not working?

/M
[Shield Android TV General] Thirelord:
Can you explain how to backport from 3.19. I only get errors to integrate media build into the original kernel. Can you write down instructions or update your repo?
[Shield Android TV General] lupick:
I'm traying to setup tvheadend with iptv. I've no dvb tuner attached to my NSTV. Ive added a new networks and a mux

it looks like the IPTV service cannot be contacted:

[32m2016-10-02 20:51:25.000 [ INFO] mpegts: http://bit.ly/m3ubyinfogw in http://bit.ly/m3ubyinfogw - tuning on IPTV[0m

[31m2016-10-02 20:51:30.015 [ ERROR] httpc: 0010: Unable to connect to bit.ly:80 - Try again[0m

it looks like the IPTV service cannot be contacted:

I've also forced eth0 as network (i'm wired connected)

any help?
[Shield Android TV General] BenouLM:
Hello,

I need a little help, I would install Oscam 1.20 but I can not seem to start.

I put Oscam's lexy in data / dvb /

I set chmod 775

and when I run:

/ Data / dvb / oscam120 -c / data / oscam / config / t /data/oscam/.oscamtmp

I have :

error: only position independent executables (PIE) are supported.

can you help me ?
[Shield Android TV General] speedyrules:
wow!

hey guys,

this thread here sound awesome! .. and this is exactly what my dream would be on my shield

(tvheadend server and oscam)

issues: i am a complete idiot when it gets more technical (specially all that flashing and manual setup)

so my questions is more: any chance, this can or will some "forwarded" to nvidia so this could be implemented as a standard feature for the shield tv?

(like they did with the plex server for shield tv)

this would be sooo cool!
[Shield Android TV General] m3g4tr0n:
try this one (attached)

oscam-1.20-unstable_svn11273-aarch64-linux-android-libusb-pie
[Shield Android TV General] BenouLM:
Thx !!!!!!!! i'm happy ! i'm try this !
[Shield Android TV General] lexyan77:
Hello all,

I have updated my repo on bitbucket with the kernel for update 3.3.

You can find precompiled kernel on my dropbox for 16gb here , it contains static modules for all dvb devices supported by kernel 3.19.
[Shield Android TV General] stven94:
Hello lexyan,

Maybe I'm stupid but could you provide simple steps to get a hdhomerun to work with tvheadend?

This is what I've done:

- Install latest official 3.3 Nvidia firmware

- Flash boot_3.3_kernel3.19.img

- Flash SuperSU 2.71

- Copy tvheadend and the boot script from tvheadend-test-20160125.tar.gz to /data/dvb

-Launch '/data/dvb/tvheadend -C -c /data/dvb/hts'

Then I get the tvheadend Web UI but no hdhomerun under "adapter".

Merci
[Shield Android TV General] sphr2k:
Are you using a build with HDHomeRun support enabled? Either compile it yourself or you could use "tvheadend_hdhomerun_ffmpeg_ndk.tar.gz" from tinyurl [dot] com [slash] tvhhdhr

(I'm not allowed to post links). This build is a bit older but it works.

Cheers,

sphr2k
[Shield Android TV General] stven94:
Thank you it works now!

Is it possible to start tvheadend server when the Shield boots ?

edit: OK just put the script in /su/su.d
[Shield Android TV General] fergalom:
Yes, your shield needs to be rooted

put boot_script.sh in /su/su.d/

#!/system/bin/sh
mkdir /dev/dvb
chmod 777 /dev/dvb
chmod 777 /dev/dvb0.frontend0
chmod 777 /dev/dvb0.demux0
chmod 777 /dev/dvb0.dvr0
chmod 777 /dev/dvb0.net0

mkdir /dev/dvb/adapter0
ln -s /dev/dvb0.frontend0 /dev/dvb/adapter0/frontend0
ln -s /dev/dvb0.demux0 /dev/dvb/adapter0/demux0
ln -s /dev/dvb0.dvr0 /dev/dvb/adapter0/dvr0
ln -s /dev/dvb0.dvr0 /dev/dvb/adapter0/dvr0.ts
ln -s /dev/dvb0.net0 /dev/dvb/adapter0/net0
chmod 777 /dev/dvb/adapter0
chmod 777 /dev/dvb/adapter0/frontend0
chmod 777 /dev/dvb/adapter0/demux0
chmod 777 /dev/dvb/adapter0/dvr0
chmod 777 /dev/dvb/adapter0/dvr0.ts
chmod 777 /dev/dvb/adapter0/net0

mkdir /dev/dvb/adapter1
ln -s /dev/dvb1.frontend0 /dev/dvb/adapter1/frontend0
ln -s /dev/dvb1.demux0 /dev/dvb/adapter1/demux0
ln -s /dev/dvb1.dvr0 /dev/dvb/adapter1/dvr0
ln -s /dev/dvb1.dvr0 /dev/dvb/adapter1/dvr0.ts
ln -s /dev/dvb1.net0 /dev/dvb/adapter1/net0
chmod 777 /dev/dvb/adapter1
chmod 777 /dev/dvb/adapter1/frontend0
chmod 777 /dev/dvb/adapter1/demux0
chmod 777 /dev/dvb/adapter1/dvr0
chmod 777 /dev/dvb/adapter1/dvr0.ts
chmod 777 /dev/dvb/adapter1/net0

mkdir /dev/dvb/adapter2
ln -s /dev/dvb2.frontend0 /dev/dvb/adapter2/frontend0
ln -s /dev/dvb2.demux0 /dev/dvb/adapter2/demux0
ln -s /dev/dvb2.dvr0 /dev/dvb/adapter2/dvr0
ln -s /dev/dvb2.dvr0 /dev/dvb/adapter2/dvr0.ts
ln -s /dev/dvb2.net0 /dev/dvb/adapter2/net0
chmod 777 /dev/dvb/adapter2
chmod 777 /dev/dvb/adapter2/frontend0
chmod 777 /dev/dvb/adapter2/demux0
chmod 777 /dev/dvb/adapter2/dvr0
chmod 777 /dev/dvb/adapter2/dvr0.ts
chmod 777 /dev/dvb/adapter2/net0

/data/dvb/tvheadend -c /data/dvb/hts 2>&1 > /data/dvb/tvheadend.out &
[Shield Android TV General] xs3s:
Hello, i found this project some time ago and gave it a try. I was able to install tvheadend and all that stuff. I can see the webif but now I'm running into some trouble.

In tvheadend i can see my tuner but it seems like it isn't working. I#m sure it has something to do with the modules and firmwares. This is the point where i can't figure out how this is done. I got the firmware but how do i know which modules I need for this module? I added the log to see if the firmware is loaded. I hope you can help me.

Thanks ind Advance
[Shield Android TV General] lexyan77:
Hi,

All modules are included in my kernel so you only need the firmware file "dvb-demod-m88ds3103.fw" in '/system/etc/firmware'
[Shield Android TV General] xs3s:
Thanks for the help! It loads the firmware now. Last problem i'm facing now is that my tuner won't find any dvb-s channels. Maybe i use the wrong tvheadend version from the first post?

Lexyan77 how can i use your tvheadend version?

Edit: I got it running now. Just one question i want to use transcoding. Which tvheadend version do i need of your repo?
[Shield Android TV General] stven94:
With the tvheadend_hdhomerun_ffmpeg_ndk version, do you know how we may activate the timeshift functions?

In the about tab I have the following:

Configure arguments:
--prefix=/home/alex/tvheadend/staging --host=aarch64 --cpu=cortex-a57.cortex-a53 --disable-avahi
--enable-bundle --disable-dbus_1 --disable-libffmpeg_static --disable-shared --enable-dvbcsa
--enable-hdhomerun_static --disable-libx264_static --disable-libx265_static --disable-libffmpeg_static
--disable-libmfx_static --disable-libfdkaac_static --disable-libvorbis_static --disable-libtheora_static
--disable-libvpx_static --disable-libx265 --disable-libvpx --enable-libtheora --enable-libvorbis
--disable-ffmpeg_static --enable-libav --enable-pic [B]--disable-timeshift[/B]
--release --enable-android --enable-hdhomerun_client
[Shield Android TV General] Darkestnoir:
Hey Guys,

is it possible to watch DVB-S2 live tv with a "HD+" card in a "AlphaCrypt Light Version R2.2" CI Modul (with One4All v2.40 firmware)? And which DVB-S2 tuner support it and is supported? The "DVBSKy S960CI" or "TERRATEC S7"?

Thanks for every help ;)
[Shield Android TV General] slamride:
Anyone have a compiled 500gb 3.3 boot img ?
[Shield Android TV General] xs3s:
Has anybody else problems transcoding hd streams? It buffers every 4-5 sec. CPU load is at 40% There seems to be a problem with libx or something?
[Shield Android TV General] fergalom:
Seems like we have the same problem, has anyone got transcoding working with out the issue above?
[Shield Android TV General] efegue:
Off topic: Could you make an overclockable kernel for the shield? I'm willing to test it :)

Thanks!
[Shield Android TV General] fergalom:
[MENTION=7841890]xs3s[/MENTION] any luck with solving this?
[Shield Android TV General] xs3s:
Not yet. I played around with piping the stream in ffmpeg. It kind of work sometimes with HD. SD seems to work fine bte tvheadend log gives a hell of Errors. If you want to transcode SD channels i could help you.
[Shield Android TV General] fergalom:
[MENTION=7841890]xs3s[/MENTION] that would be great help re SD and what profile you use in tvheadend
[Shield Android TV General] djcesarv:
Androidtv.news/2016/10/live-channels-updated-supports-usb-tuners-adds-dvr-capabilities/
[Shield Android TV General] stven94:
Any news for a kernel adapted to shield exp 5.02 (nougat)?
[Shield Android TV General] speedyrules:
hi guys,

i have some questions..

first one would be as the guy just above me here.. any plans for the newest firmware?

then .. as a super newbies this is all way to much for me to do and solve .. so:

- as i understand the kernels are needed because of the drivers for the different sticks?

- so, would i be able to get just tvheadend from androidfilehost.com/?fid=24391638059058127 and get it running without any kernel update?

.. basically dvb support would be awesome out of the box .. but for now i am trying just to get tvheadend to get IPTV channels running

and i know it's a bit off topic.. but since we have shield experts here.. and maybe as an alternative to tvheadend (since i might never be able to get it running) .. can anyone tell me how i could get this running in my kodi in shield tv? github.com/simphax/pvr.iptvsimple (actually apparently brings recording functionality to iptv channels)
[Shield Android TV General] ididmytime:
I really hope [MENTION=2310389]lexyan77[/MENTION] or someone can compile a kernel for the newest version, there is definitly a group who need an all in one solution.
[Shield Android TV General] techjunky90:
Someone on GeForce has made a nougat kernel that supports 3 different atsc tuners
[Shield Android TV General] lexyan77:
I all,

currently waiting nvidia to release the source for experience 5.1 on old shield, the have only the source for the new 2017 model.

As soon as it's release, i start working on it.
[Shield Android TV General] ididmytime:
Excellent news, would it be possible to included the updated Xbox 360 controller driver at the same time?

https://xdaforums.com/shield-tv/development/kernel-kernel-support-xbox-360-one-t3340300
[Shield Android TV General] stven94:
Hi lexyan,

Could you please compile a recent build of TVheadend server with timeshifting and hdhomerun for the shield ?

Thanks
[Shield Android TV General] lexyan77:
Hi,

Tvheadend with timeshift and hdhomerun in my dropbox here

Its compiled without transcoding because some libs don't compile with clang compiler.

Stock kernel with dvb drivers is comming but without backported drivers
[Shield Android TV General] Thirelord:
Resources

There are release the new sources 5.1.

https://developer.nvidia.com/shield-open-source

can you update the sources on your bitbucket.

I can compile them.

thanks
[Shield Android TV General] lexyan77:
Hi all,

Sources for Shield Experience 5.1 are on my bitbucket repo aprox 1GB to download instead of 15GB for official source.

Precompiled kernel for 16gb shield[2015] on my dropbox here

For 2017 shield and pro version, you can compile your kernel from my source.

New link here
[Shield Android TV General] ididmytime:
Thank you so much for the kernel.

I have noticied on your bitbucket that you have also added proper Xbox controller and have backported the modules from kernel 3.10. I am looking forward to the next release which include these.

Please feel free to add a donation link, more than happy to contribute to the time you've spent doing this.
[Shield Android TV General] rbtcordell:
Any ideas on how to get XMLTV files imported?

In the tvheadend log I am getting "failed to bind socket" when enabling the "External: XMLTV" grabber module.

EDIT:

Never mind. I was running tvheadend on my phone for debugging.

I decided to try it on the shield. The socket is created without issue.

2017-03-15 18:29:00.676 [ DEBUG]:xmltv: xmltv: starting socket thread

2017-03-15 18:29:00.676 [ INFO]:xmltv: xmltv: external socket enabled

2017-03-15 18:29:00.676 [ DEBUG]:xmltv: xmltv: waiting for connection

Thanks lexyan77 for your build script. With it I was able to make an apk that runs tvheadend at boot with ProcessBuilder (no root required).
[Shield Android TV General] suprimesir:
dropbox link is down
[Shield Android TV General] lexyan77:
Link updated https://dl.dropboxusercontent.com/s/7zzioz184ij6zur/boot-5.1-16g-dvb.img?dl=0
[Shield Android TV General] rb338:
Could you post a new link for tvheadend binary for Shield TV? It gives a 404...

Does this tvheadend also support iptv? That's all I need :) Thanks!

By the way, could I just run tvheadend on "stock" Shield TV, if I only use it for iptv? All I'd like is to have my tv server and Kodi on the same box for optimal performance, and so I can get rid of my separate machine.
[Shield Android TV General] lexyan77:
Link for tvheadend with hdhomerun+timeshift here
[Shield Android TV General] jovanslobenovic:
Hello,

I wish to thank you for great job, making Android TV shield device richer for USB DVB support.

Following instructions from bitbucket web page I download kernel, build image and fastboot on mine 16GB Shield device. Unfortunately, something went wrong and device become bricked., so I have to start RMA procedure with nwedia.

In mean while I manage to get another 16GB Shield device from 2015 year. Currently it's running newest 5.1 nwedia Andorid TV (Nougat) and I would like to give another try with DVB USB tuners.

Can you please advice me, should I use kernel from yours bitbucket webpage, or should I try to configure kernel from nwedia? Also there are few branches on bitbuctes, which you recommend to use?

Thank you for reply.
[Shield Android TV General] ididmytime:
Did you compile the kernel or download the pre compiled version? The one provided only works on the 2015 16gb version.

As you are now using the 2015 version, download the kernel, then do the following in ADB in bootloader.

fastboot flash boot [name].img

All other information like how to run the server is contained in this thread.

Reboot and you will be sporting the new kernel, be advised to check the kernel version required for your tuner, currently only one DVB-T2 tuner is supported - hopefully we will get some backported modules to 3.19 to allow more options.
[Shield Android TV General] lexyan77:
In addition, before flashing the new kernel, you can test it until reboot with :

fastboot boot [name].img

you can see if your dvb tuner is supported before flashing
[Shield Android TV General] speedyrules:
any comments on this?

probably does not work with any usb tuner .. but it's a good start?

forums.geforce.com/default/topic/1000226/shield-tv/tvheadend-apk-the-easy-way-to-run-tvheadend-on-the-shield-/
[Shield Android TV General] ididmytime:
The user has posted on this thread that he has compiled the server into an APK.

It bypasses the need to root, use a boot script and place the tvheadend file on the Shield, but you will still need a modified kernel with drivers. It is a great addition to have and makes things easier.

Edit: You'd probably still need root unless you have a tuner which did not require firmware files, or have been included.
[Shield Android TV General] speedyrules:
how did dvblogic with the mosaic app include the drivers of their tvbutler usb tuner to android? ..

in the apk or in android (somehow)
[Shield Android TV General] lexyan77:
Hi all,

I have backported some dvb drivers from kernel 3.19.

If you want to test it, it's in my dropbox here for Shield[2015] 16gb

My bitbucket repo is up updated with the modifications.
[Shield Android TV General] ididmytime:
Thank you so, so much - can confirm it is see's my Geniatech T230.

Please either post a donation link or PM me, as you saved me a massive headache, thanks once again, updates are now blocked.

Edit: Had some issues all working now - for anyone else having issues always check your firmware files have been loaded correctly by using dmesg|grep dvb in adb shell.
[Shield Android TV General] lexyan77:
New build with common dvb firmware integrated here
[Shield Android TV General] lexyan77:
Final version of the kernel for Experience 5.1

Hi all,

New version of the kernel for use with tvheadend apk from rwcorrdell on GeForce forum

It's hosted in my dropbox here for 16gb Shield[2015]
[Shield Android TV General] XeKToReX:
This is mind blowing - amazing job - works rather well, some random freezes here and there though.

Any suggestions on profiles for HTSP to use with the Shield? I think it's just passing through at the moment.
[Shield Android TV General] dude-nl:
Hi guys.

Just went trhough the pages.

I really wanna try this on my Shield but I don't know Linux good enough.

besides I'm kinda last after the latest posts about new kernels, APK's etc.

Can somebody help me with:

Which tuner is supported (I prefer DVB-c and need encrypted channels through oscam/cccam). I have a Terratec H7. Is it supported?

What steps do I need to take from scratch?

I'm not a noob with computers, only with Linux :)

I do not prefer Kodi for watching live tv (I don't like the Gui). Are there other options in Android, like Openpli style or something?

Donation for help is no problem!