Project

General

Profile

TVHGuide for Android

Added by Thomas Novin about 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).

http://sb1066.homelinux.com/tvhguide/


Replies (142)

RE: TVHGuide for Android - Added by Martin Mrvka over 12 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.

Did you try to set the resolution (Menu->Settings->Resolution) in TVHGuide?

If not, this may be a reason for the force close. The default value storing in the settings xml is "360p" and when converted to a number there is an exception. Setting a resolution will write a clean number into the settings.

RE: TVHGuide for Android - Added by Alex . over 12 years ago

Martin Mrvka wrote:

The default value storing in the settings xml is "360p" and when converted to a number there is an exception. Setting a resolution will write a clean number into the settings.

Hi,

I was wondering (I know this question was posted before but since nobody says 'no' i was still wondering):

Is it possible (using transcoding branche) to get the lower resolution streams for a PC watching in a browser or VLC? (for example by changing something in the URL ?).
And how would I do that?

Thanks,

Alex.

RE: TVHGuide for Android - Added by Joshua Welch over 12 years ago

This now compiles on Ubuntu, I still have trouble with the cannot encode audio, but it compiles without error now.

RE: TVHGuide for Android - Added by Joshua Welch over 12 years ago

Correction, I got mine working. no errors. with sending anymore.

I will say that the video is shrunk sometimes and the audio is garbled sometimes. Otherwise it is good to go.

RE: TVHGuide for Android - Added by Alex . over 12 years ago

Joshua Welch wrote:

Correction, I got mine working. no errors. with sending anymore.

I will say that the video is shrunk sometimes and the audio is garbled sometimes. Otherwise it is good to go.

Hi Joshua,
Great, Good to hear you got it working !
What did you do to get it all working ?

Can I ask you to post your configuration, since I am still struggling (even though I have a compiled version) to watch at different resolutions, and even when using VLC I get some crashes every now and then.

- Are you watching using the app or using VLC? Do both work?
- What version of Android ?
- What version of LibAV, linux kernel, etc do you use?
- Any other prerequisites / packages I need to install ?
- Any other smart tricks ? :-)

Thanks !

A.

RE: TVHGuide for Android - Added by Joshua Welch over 12 years ago

hey Alex, I'd love to do what I can to help!

- Are you watching using the app or using VLC? Do both work?

I am using the app, and I did massive testing with VLC. I got VLC working before I got the app working, and VLC did work way before I tried all this stuff.
- What version of Android ?

I am using 2.3.3, on a DroidX with Liberty Rom (cant seem to find exact version of the Rom but it was up to date as of November or so), it has kernel 2.6.32 on it.
- What version of LibAV, linux kernel, etc do you use?

LibAV is Version: 4:0.7.3ubuntu0.11.10.1, and I installed it via the official repos (maybe mulitiverse) I believe, let me know if you cant. The package name is libavcodec-extra-53. My linux kernel is 3.0.0-15-generic, which has been a huge pain that I wouldn't wish on anyone. You did ask though.
- Any other prerequisites / packages I need to install ?

Once I was updated to 11.10 (NOT 11.04) the configure requirements were met. I had a lot of problems with hdhomerun (which is posted in another thread here) and got them worked out. I will say that this machine started its life out as a liveXBMC disc and then has been just upgraded over and over to get to this point.
- Any other smart tricks ? :-)

I had some trouble with compiling on the last version, and I removed -Werror and that fixed those. I also noticed that for some reason my system will start up two copies of tvheadend (probably my fault) so when I would stop the service and replace the tvheadend file and start it again I wouldn't see the updated git version on the about tab. Took a while to catch it each time. The version I am running now is HTS Tvheadend git-91b951f, previous versions did not work for me, I would get encode issues with those. I really cheated a bit because I have bugged John T a lot about it and he has been super helpful getting stuff worked out, so no genius here. OH one more thing I did: I copied the code from niel here: https://www.lonelycoder.com/redmine/boards/12/topics/301 into my version. I use Schedules Direct and this fixed my content type issues. I was going to start to modify it a bit and see how it goes, but it is a change in code that I made.

Let me know if you are still stuck after all that. I would be more than happy to help.

RE: TVHGuide for Android - Added by Alex . over 12 years ago

Thanks for those details, I have to check later on...
Basically, I did manage to get the transcode-branche working for VLC, but it crashes as soon as the android app tries to connect...

To be continued....

RE: TVHGuide for Android - Added by Joshua Welch over 12 years ago

Martin Mrvka wrote:

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.

Did you try to set the resolution (Menu->Settings->Resolution) in TVHGuide?

If not, this may be a reason for the force close. The default value storing in the settings xml is "360p" and when converted to a number there is an exception. Setting a resolution will write a clean number into the settings.

This helped too. Forgot to mention. You just have to choose SOMETHING here.

RE: TVHGuide for Android - Added by Alex . over 12 years ago

Joshua Welch wrote:

The version I am running now is HTS Tvheadend git-91b951f, previous versions did not work for me, I would get encode issues with those.

Mmm, strange. I must admit the version numbering seems a bit strange and confusing...

I have :
Build: git-10df25c

I got the source using:
git clone -b transcode git://github.com/john-tornblom/tvheadend.git

How did you get your version ?

Alex.

Ps: I also noticed older version get mixed up it seems , I now completely clear my /opt/tvheadend dir execpt "home" before git-clone and compiling to make sure I start over...

RE: TVHGuide for Android - Added by Joshua Welch over 12 years ago

I used:

git clone git://github.com/john-tornblom/tvheadend.git

I had that version previously too, but this is the one that works.

I will say also that I just move the build.Linux/tvheadend to /usr/bin/tvheadend so I do not have to wait for the EPG to load. (that is where the service is called from for me).

Let me know!

RE: TVHGuide for Android - Added by Tobias Hallberg over 12 years ago

did make a new install whith ubuntu 11.10 and did a git clone an it did compile fine

git clone git://github.com/john-tornblom/tvheadend.git

but now to another problem i get alot of

Feb 08 19:44:13 TS: Afatech AF9013 DVB-T/Teracom_Mux_3: 754,000 kHz/Kanal 5: CA @ #97: Continuity counter error

Feb 08 19:44:13 TS: Afatech AF9013 DVB-T/Teracom_Mux_3: 754,000 kHz/Kanal 5: CA @ #53: Continuity counter error

do you get the same ??? Joshua Welch or is it my tv card that is not so happy white firmware or drivers ..

RE: TVHGuide for Android - Added by Joshua Welch over 12 years ago

I get this error too. I am thinking maybe processing issues, I haven't figured it out. I do not get them A LOT, but maybe 1 out of every 5 minutes or so, sometimes just when it is starting to stream. I haven't looked into it too far. Was going to try and compile the latest version of TVHGuide and try that (source is freely available), and maybe make some changes (if I can figure out how).

What does your processor look like when the video is playing?

RE: TVHGuide for Android - Added by Tobias Hallberg over 12 years ago

it might be to slow processor only dual core 2.8 ghz , i have one tv server up and runing 24/7 whith mediaportal (win7) if i kill that my wife whill probebly kill me :)

and this is the one i hade before i upgraded the tvserver and did stumbel on this and tryinge to get it to work is yust for fun and lerning .

sorry my speeling sucks big time...

RE: TVHGuide for Android - Added by Alex . over 12 years ago

Joshua Welch wrote:

I used: git clone git://github.com/john-tornblom/tvheadend.git

Ok, just to summarize my attempts:

git-91b951f (doesnt work)
- If I use just git clone git://github.com/john-tornblom/tvheadend.git I get version:
git-91b951f as well; This one seems to work with you but fails for me when trying to watch tv:
Feb 08 20:51:42 subscription: "HTTP" subscribing on "Discovery Channel", weight: 150, adapter: "HDHomeRun DVB-C-adapter2", network: "Ziggo Digitale Televisie 01", mux: "Ziggo Digitale Televisie 01: 420,000 kHz", provider: "Ziggo", service: "Discovery Channel", quality: 100
Feb 08 20:51:42 cwc: Obtained key for for service "Discovery Channel" in 246 ms, from 127.0.0.1
Feb 08 20:51:43 transcode: MPEG2VIDEO 544x576 > VP8 362x384
Feb 08 20:51:43 transcode: MPEG2AUDIO > MP3
Feb 08 20:51:43 transcode: Unable to find video encoder
Feb 08 20:51:43 transcode: Unable to find video encoder
Feb 08 20:51:43 transcode: Unable to find video encoder

git-10df25c (does work more or less)
If I use
git clone -b transcode git://github.com/john-tornblom/tvheadend.git
I get:
Build: git-10df25c.

This one works for me, at least I can watch channels without errors.

My versions of libav etc:
# ./configure --prefix=/opt/tvheadend --disable-avahi --release
Using C compiler: cc
Using openssl: 1.0.0e
Using libavcodec: 53.34.0
Using libavutil: 51.21.0
Using libswscale: 2.1.0
Release build: 2.12.99
Final binary is: build.Linux/tvheadend

So, does this mean the build is very sensitive to the exact version of libavcodec (or version of some other dependency?)

Alex.

RE: TVHGuide for Android - Added by Alex . over 12 years ago

obias Hallberg wrote:

it might be to slow processor only dual core 2.8 ghz

Just as a reference:
I have an Athlon XP dual core running at 2.5 GHz and it does display without to many errors; Only every now and then I get this 'continuity error'
- Did you check bandwidth usage, maybe check with an all-wired setup first to make sure bandwidth should be enough. ( maybe you did...)
- The bottleneck might also be elsewhere. Is your antenna in a good position?

RE: TVHGuide for Android - Added by Tobias Hallberg over 12 years ago

if i use the original hts-tvheadend build i dont get the Continuity counter error maby transcoding is more sensitive to signal whil move the computer to the basment to get the signal from same as my other server .but now i am going to take a beer and watch tv fore change ..

RE: TVHGuide for Android - Added by Tobias Hallberg over 12 years ago

some more testing if i use a phone with android 2.3 it is working nice ..

and the cpu only att 20% in htop when transcoding but using vlc the cpu goes to 100% ??

way is it like that ? any clues ? to look in the code maby change som thing, to make vlc conection the same as phone and trans code the same way or just set defult transcod to ....

RE: TVHGuide for Android - Added by Alex . over 12 years ago

Tobias Hallberg wrote:

some more testing if i use a phone with android 2.3 it is working nice ..
and the cpu only att 20% in htop when transcoding but using vlc the cpu goes to 100% ??
way is it like that ? any clues ?

That is strange; However, how 'hard' transcoding actually is will probably depend on the exact ratio between original and resulting streams:
Making the resulting stream 9% smaller might in some cases be harder than making it 50% smaller (just trow away have the info :-) ).

I also noticed different behavior depending on the source of the stream ( I have both a DVB-T usb-tuner and a HDHomerun dual DVB-C tuner):
If I watch a DVB-T channel TVHEADEND/trans crashes, while if I watch a DVB-C channel it seems to work ok. I'll look into this later and have to do some more extensive testing.
Might be that the quality or resolution of the original stream plays a role in keeping the system stable (or making it crash).

to look in the code maby change som thing, to make vlc conection the same as phone and trans code the same way or just set defult transcod to ....

That would be really nice since it would allow for transcoding / changing resolution of all streams, also for VLC or web.

RE: TVHGuide for Android - Added by Joshua Welch over 12 years ago

Mine starts out fullscreen then shrinks so that it is squooshed together.

I am trying to figure out the code enough to fix this, but I haven't been able to get the android sdk up and running enough. Maybe the ratios are set, instead of saying "max screen." which would be preferable for me. It does it on my droidx and my wifes razr, so it sounds like a code thing.

Wanting to add an option for "aspect ratio" and do a 16:9 and a 4:3 option.

RE: TVHGuide for Android - Added by Andreas B over 12 years ago

I've tried TVHGuide on 3 different android devices recently, but i'm getting the same error on all of them.

I'm able to list all channels, but when press play on one the application crashes with the error "The application TVHGuide (process org.me.tvhguide) has stopped unexpectedly. Please try again."

Tested devices are Samsung Galaxy Tab 8,9", Sony Ericsson Arc S and Huawei Honor.

RE: TVHGuide for Android - Added by Joshua Welch over 12 years ago

What resolution did you use?

RE: TVHGuide for Android - Added by Andreas B over 12 years ago

Wow, that actually solved the problem. There wasn't any resolution selected. Thanks!

RE: TVHGuide for Android - Added by Joshua Welch over 12 years ago

:) Glad to help!

RE: TVHGuide for Android - Added by Kristjan Adojaan over 12 years ago

Similar problem like Andreas B had, here on Nexus S with Android 4.0.3 (NexusBeam v4.1.0 IML74K). There was no resolution selected and I got the error. But with any resolution selected I cannot get it playing. The EPG is displayed, I can select a channel and click play. Then title of show is displayed along with Status: buffering, Server queue size 0; Dropped frames 0; Network speed ... Then, for a brief moment message - Loading... please wait few seconds - is displayed and then it is closed and screen returns to EPG. Server queue is sometimes 20 or 200 Kb, sometimes 0. Network speed is 0.78...1.15 or something similar. Dropped frames is always 0.
Network speed should be OK. I tried with VDR on the same TV server and it plays on lots of players (on phone), but I would prefer TVheadend with much clearer administration possibilities. Missing Android client is the only disadvantage (some players I tried on the phone were able to play audio from rtsp:// but not video). Our DVB-T video stream is H.264 here in Estonia.
On Desktop with XBMC from PulseEight or in TVheadend web player it plays normally. Sometimes crashes, but at least plays.
I can run kind of debug or test build if it will help you!
Thank you for your effort in developing Android client for TVHeadend

RE: TVHGuide for Android - Added by Joshua Welch over 12 years ago

Does it register in TVHeadend's log like this:

Feb 10 15:26:25 htsp: Got connection from 192.168.1.200

Feb 10 15:26:25 htsp: 192.168.1.200: Identified as user oneadvent

Feb 10 15:26:25 htsp: 192.168.1.200 [ oneadvent ]: Welcomed client software: org.me.tvhguide

Feb 10 15:26:30 subscription: "192.168.1.200 [ oneadvent | org.me.tvhguide ]" subscribing on "HDALA", weight: 150, adapter: "HDHomeRun ATSC", network: "", mux: "675,000 kHz", provider: "", service: "HDALA", quality: 100

Feb 10 15:26:30 TS: HDHomeRun ATSC/675,000 kHz/HDALA: MPEG2VIDEO @ #3249: Continuity counter error

Feb 10 15:26:30 transcode: MPEG2VIDEO 1280x720 ==> MPEG2VIDEO 341x192

Feb 10 15:26:30 transcode: AC3 ==> MPEG2AUDIO

Feb 10 15:26:30 TS: HDHomeRun ATSC/675,000 kHz/HDALA: AC3 @ #3252: Continuity counter error

Feb 10 15:27:11 subscription: "192.168.1.200 [ oneadvent | org.me.tvhguide ]" unsubscribing from "HDALA" 

The continuity counter error does happen periodically, but I get a picture. In this case I only watched for a few seconds (just to produce the log)

(76-100/142)