TVHGuide for Android
Added by Thomas Novin over 13 years ago
Anyone tried TVHGuide with success?
All I get is a channel listing. I have tried it on my HTC Sensation (Android 2.3.3).
Replies (142)
RE: TVHGuide for Android - Added by Martin Mrvka almost 13 years ago
For playback, TVHGuide is using a C library, accessed from java through JNI. This library needs to be compiled too, otherwise it's causing the exception you've posted.
Doing this using linux is easy:
1) Download the Android NDK to your home folder and extract it
2) Change to your project root (e.g. /home/<yourname>/workspace/TVHGuide)
3) Run the ndk-build from the NDK (just run: /home/<yourname>/android-ndk-r7/ndk-build)
After the build process created and installed the libtvhplayer.so (done automatically), go to you IDE and refresh your project (just to be sure, since you've done the steps above outside the IDE).
HTH
RE: TVHGuide for Android - Added by Micael Beronius almost 13 years ago
Thank you for the detailed help! It worked flawlessly when I followed your steps!
I'll do some more testing now
Micael
RE: TVHGuide for Android - Added by Tomas Urban almost 13 years ago
Will be possible run TVHGuide on Android 2.2 ?
RE: TVHGuide for Android - Added by Joshua Welch almost 13 years ago
I have a Motorola Droid X with Android version 2.3.3, but when I try and watch tv via this app, it force closes.
Can someone tell me what I can do to find out why, or if my TVheadend is the wrong version:
This is the version of TVHeadend I have:
oneadvent@XBMC:~$ sudo apt-cache show tvheadend Package: tvheadend Priority: extra Section: video Installed-Size: 1800 Maintainer: Andreas Ãman <[email protected]> Architecture: i386 Version: 2.12.99~pulse-4 Replaces: hts-tvheadend Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.7), libssl0.9.8 (>= 0.9.8k-1) Recommends: xmltv Filename: pool/stable/dists/lucid/tvheadend_2.12.99~pulse-4_i386.deb Size: 1412506 MD5sum: 06051cbdbe14b9856254823ac648f271 SHA1: 6877613cb1aed1501eb46923fcf7f76749ce221d SHA256: 68101d5e26cd3a9f82445e119f759246aa5cb0f1b9bda367af226d5bc52c2314 Description: Tvheadend TV backend for use with Showtime, XBMC and various other clients. Uses ExtJS 'http://www.extjs.org/' Enhances: showtime Homepage: http://www.lonelycoder.com/tvheadend
Thanks!
RE: TVHGuide for Android - Added by Martin Mrvka almost 13 years ago
Joshua Welch wrote:
I have a Motorola Droid X with Android version 2.3.3, but when I try and watch tv via this app, it force closes.
If you've compiled it by yourself, it's very likely that you've forgot to build the libtvhplayer.so lib using the NDK (see three posts above).
RE: TVHGuide for Android - Added by Joshua Welch almost 13 years ago
I'm sorry I do not mean to be stupid, but I am really struggling to get this working.
I did not compile anything from source. I have only installed with the link.
Do I need to install android sdk? I still don't know where to put the library when I have generated it either.
oneadvent@oneadvent-desktop:~/android-ndk-r7$ NDK_PROJECT_PATH="/home/oneadvent/android-ndk-r7/workspace/" oneadvent@oneadvent-desktop:~/android-ndk-r7$ export=NDK_PROJECT_PATH oneadvent@oneadvent-desktop:~/android-ndk-r7$ ./ndk-build Android NDK: Could not find application project directory ! Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. /home/oneadvent/android-ndk-r7/build/core/build-local.mk:102: *** Android NDK: Aborting . Stop. oneadvent@oneadvent-desktop:~/android-ndk-r7$ ./build/tools/rebuild-all-prebuilt.sh ERROR: Please provide the path to the toolchain source tree. See --help
Thanks!
RE: TVHGuide for Android - Added by Martin Mrvka almost 13 years ago
Well, if you've installed directly from http://sb1066.homelinux.com/tvhguide/ and it's not working, then you should put an issue there: https://github.com/john-tornblom/TVHGuide/issues/new.
Setting up a working android dev environment is beyond this topic and I doubt that it will not force close if you're compiling by yourself.
RE: TVHGuide for Android - Added by Tobias Hallberg almost 13 years ago
is the apk updated for ics or is ther a posibility to download a compiled version som where i like to test it .
RE: TVHGuide for Android - Added by Joshua Welch almost 13 years ago
Bug submitted:
https://github.com/john-tornblom/TVHGuide/issues/4
for anyone else.
Thanks!
RE: TVHGuide for Android - Added by Alex . almost 13 years ago
Hi all,
I have managed to install the right version of the transcoding branch using the info of this forum (together with some trial-and-error) on my Gentoo system.
(there were some trouble installing the right version of the transcoding branch in combination with libav/gffmpeg; some versions did not work with my version of Libav as mentioned in this forum by other people)
I can now watch using the following in either a browser or in VLC:http://192.168.0.30:9981/stream/channelid/34
Now my qyestion is : Is there a way to make tvheadend stream a lower bandwidth version, as the Android App seems to suggest, from a browser or from VLC?
Thanks for any info,
Alex.
Ps If this is a trivial question: sorry for asking, I tried to look into the documentation but couldnt anything about this...
RE: TVHGuide for Android - Added by John Törnblom almost 13 years ago
Sorry for being idle, I've been so busy lately. Development is going to continue to be slow for a while. If there are issues, post them on github and I'll attend them at some point
My priority is getting webm going in tvheadend and supporting android 4. Android 4 also got some new media support that needs some investigation (opensl es, openmax al).
Thanks for the support!
RE: TVHGuide for Android - Added by daniel magnusson almost 13 years ago
Im having troubles with lagg/stutter and what not on vlc on the PC with transcode branch
Get these in the log, Anyone know that recognize what i did wrong?
[INFO]:subscription: "HTTP" subscribing on "TV6", weight: 150, adapter: "Afatech AF9013", network: "Teracom_Mux_2", mux: "Teracom_Mux_2: 498,000 kHz", provider: "Viasat Broadcasting UK", service: "TV6", quality: 100 [INFO]:transcode: MPEG2VIDEO 720x576 ==> MPEG2VIDEO 600x480 ERROR]:transcode: Unable to encode audio [ERROR]:transcode: Unable to encode audio [ERROR]:transcode: Unable to encode audio [swscaler @ 0xb222e880] Warning: data is not aligned! This can lead to a speedloss [WARNING]:TS: Afatech AF9013/Teracom_Mux_2: 498,000 kHz/TV6: Transport error indicator [mpeg2video @ 0x9e33bc0] invalid mb type in I Frame at 7 11 [mpeg2video @ 0x9e33bc0] Warning MVs not available [mpeg2video @ 0x9e33bc0] concealing 45 DC, 45 AC, 45 MV errors
(works good without transcode branch)
RE: TVHGuide for Android - Added by Tobias Hallberg almost 13 years ago
having som trubel whit the build when doing the make i get this ?
CC build.Linux/src/ffdecsa/ffdecsa_interface.o
CC build.Linux/src/ffdecsa/ffdecsa_int.o
CC build.Linux/src/webui/webui.o
/root/tvheadend/src/webui/webui.c: In function ‘http_stream_run’:
/root/tvheadend/src/webui/webui.c:134:7: error: variable ‘start’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
and the build fails any clues wher to look .
the configure looks fine no errors ..
Using C compiler: cc
Using AVAHI client: 0.6.30
Using openssl: 1.0.0e
Using libavcodec: 54.1.100
Using libavutil: 51.38.100
Using libswscale: 2.1.100
Release build: 2.12.99
Final binary is: build.Linux/tvheadend
RE: TVHGuide for Android - Added by Joshua Welch almost 13 years ago
I just had this conversation with the developer, you need to remove -Werror from line 27 of Makefile, it is because you are using a higher version of gcc than the developer.
I did that and it compiled fine.
GL!
RE: TVHGuide for Android - Added by Tobias Hallberg almost 13 years ago
thanks
did get a bit longer .
CC build.Linux/src/webui/webui.o
/root/tvheadend/src/webui/webui.c: In function ‘http_stream_run’:
/root/tvheadend/src/webui/webui.c:134:7: warning: variable ‘start’ set but not used [-Wunused-but-set-variable]
CC build.Linux/src/webui/comet.o
CC build.Linux/src/webui/extjs.o
CC build.Linux/src/webui/simpleui.o
CC build.Linux/src/webui/statedump.o
CC build.Linux/src/dvb/dvb.o
CC build.Linux/src/dvb/dvb_support.o
CC build.Linux/src/dvb/dvb_fe.o
CC build.Linux/src/dvb/dvb_tables.o
CC build.Linux/src/dvb/dvb_adapter.o
CC build.Linux/src/dvb/dvb_multiplex.o
CC build.Linux/src/dvb/dvb_transport.o
CC build.Linux/src/dvb/dvb_preconf.o
CC build.Linux/src/dvb/dvb_satconf.o
CC build.Linux/src/webui/extjs_dvb.o
CC build.Linux/src/v4l.o
CC build.Linux/src/webui/extjs_v4l.o
CC build.Linux/src/avahi.o
CC build.Linux/src/plumbing/transcode.o
/root/tvheadend/src/plumbing/transcode.c: In function ‘transcoder_stream_video’:
/root/tvheadend/src/plumbing/transcode.c:203:13: error: ‘AVCodecContext’ has no member named ‘rc_lookahead’
/root/tvheadend/src/plumbing/transcode.c:264:33: error: ‘FF_I_TYPE’ undeclared (first use in this function)
/root/tvheadend/src/plumbing/transcode.c:264:33: note: each undeclared identifier is reported only once for each function it appears in
/root/tvheadend/src/plumbing/transcode.c:266:38: error: ‘FF_P_TYPE’ undeclared (first use in this function)
/root/tvheadend/src/plumbing/transcode.c:268:38: error: ‘FF_B_TYPE’ undeclared (first use in this function)
/root/tvheadend/src/plumbing/transcode.c: In function ‘transcoder_init’:
/root/tvheadend/src/plumbing/transcode.c:572:3: warning: implicit declaration of function ‘avcodec_init’ [-Wimplicit-function-declaration]
make: *** [build.Linux/src/plumbing/transcode.o] Error 1
do i miss som library ? or shoud i configure whitout avahi ?
RE: TVHGuide for Android - Added by Joshua Welch almost 13 years ago
I couldn't get that repo to work either,
git clone -b transcode git://github.com/john-tornblom/tvheadend.git
seems to but I do not get the transcoding working right from that.
RE: TVHGuide for Android - Added by Alex . almost 13 years ago
Joshua Welch wrote:
I couldn't get that repo to work either,
[...]
seems to but I do not get the transcoding working right from that.
Doesn't it work at all, or only not from the android app ?
( in my case, watching live tv with the transcoding branch now works, but I have the wrong android version since it appears you need 2.3 . Trying with the android app from android 2.2 make tvheadend crash just as in your case).
RE: TVHGuide for Android - Added by Joshua Welch almost 13 years ago
Well yea I cannot get the app to work, but I was told that I should be able to go to http://192.168.1.192:9981/stream/channel/12%20WJTC and see a channel, but it just gets me a 404.
I am on 2.3.3, so I know I'm on the right version on android, and I checked with my phone (DroidX running Liberty Rom) and my wife's phone (Moto Razr, stock everything). Force close on both as soon as I hit play. I tried to check logs (with a log viewer) but frankly I'm not sure what to look for.
RE: TVHGuide for Android - Added by Alex . almost 13 years ago
Joshua Welch wrote:
Well yea I cannot get the app to work, but I was told that I should be able to go to http://192.168.1.192:9981/stream/channel/12%20WJTC and see a channel, but it just gets me a 404.
I am on 2.3.3, so I know I'm on the right version on android, and I checked with my phone (DroidX running Liberty Rom) and my wife's phone (Moto Razr, stock everything). Force close on both as soon as I hit play. I tried to check logs (with a log viewer) but frankly I'm not sure what to look for.
What do the logs on tvheadend itself say? There should be messages in the lower window the moment you try to connect.
So basically: go to tvheadend on a PC, and then watch for messages while trying out on your android phone. Also, try the same link from a PC first while watching for errors, and make sure that works.
(Or does it crash before any messages appear ?)
RE: TVHGuide for Android - Added by Joshua Welch almost 13 years ago
It said welcome client software and the next line is disconnected. That is even with debug on.
RE: TVHGuide for Android - Added by Tobias Hallberg almost 13 years ago
f....k cant make it work .
what distro (debian/ubuntu ....) are you using im going to make a new install and woundering whitch is best for tvheadend transkoding branch .
im no need for grafics inter face ssh is fine ..
when you finely solve the problem whith tv cards and firmware,you have to do it all ower again but you learn and that is the funny part..
RE: TVHGuide for Android - Added by Alex . almost 13 years ago
Joshua Welch wrote:
It said welcome client software and the next line is disconnected. That is even with debug on.
Does it say that also when watching from a browser on a computer ?
Or only from the app. (I have a similar problem with the app: running it on adroid 2.2 makes tvheadend/transcodebranch crash).
RE: TVHGuide for Android - Added by Alex . almost 13 years ago
Tobias Hallberg wrote:
f....k cant make it work .
what distro (debian/ubuntu ....) are you using im going to make a new install and woundering whitch is best for tvheadend transkoding branch .im no need for grafics inter face ssh is fine ..
when you finely solve the problem whith tv cards and firmware,you have to do it all ower again but you learn and that is the funny part..
I'll post my setup down here, but I did not check the transcoding branche completely so i cant confirm yet that this setup should work:
I can install it and watch tv from VLC or a browser, just as in the normal tvheadend, but I do not have the right android to check the app itself... I would like to watch lower-resolution streams from VLC , not nececeraly from a smartphone app, but don't know/manage to do that (jet). Also, using the app on android 2.2 makes tvheadend crash (similar to what is reported here).
My setup is ( have to check for more details) :
- Gentoo 3.1.2
- HDHomerun dual dvb-c tuner with dvbhdhomerun kernelmodule
- a single dibcom/pinnacle dvb-t tuner
- Smargo Phoenix smartcardreader I use for dvb-C
RE: TVHGuide for Android - Added by Tobias Hallberg almost 13 years ago
switching disk and installing gentoo to se if i can make it work ..
thx ...
RE: TVHGuide for Android - Added by Alex . almost 13 years ago
Tobias Hallberg wrote:
switching disk and installing gentoo to se if i can make it work ..
thx ...
Ok, maybe one warning: Depending on your experiences with Linux, Gentoo might be a bit harder to install (but you will learn a lot ! :-) ), since you get to do all steps by yourself.
Also, all packages have to be compiled on the system.
So, all in all, this might be rather time-consuming if you are used to ubuntu....