Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paid for Cast to Chromecast.. Can't cast at all #274

Closed
phoniclynx opened this issue Nov 22, 2016 · 50 comments
Closed

Paid for Cast to Chromecast.. Can't cast at all #274

phoniclynx opened this issue Nov 22, 2016 · 50 comments
Milestone

Comments

@phoniclynx
Copy link

Paid for the Cast to Chromecast feature however Chromecast shows up with TVHClient on the screen, but whenever I try and cast a TV station it comes up saying that it can not cast ("failed to load media"). It is running "webtv-vp8-vorbis-webm". After that I've tried all the settings and nothing seemed to work.

image

@Osberg
Copy link

Osberg commented Nov 23, 2016

I am facing the same issue here.

@BlindOSX
Copy link

Same issue here too. Always getting this in the log: "HTSService, Connect to server requested"

@trantoriana
Copy link

Same situation here...

Far out the best and complete tvheadend client I tested, and cast to chromecast support is awesome. And as such have no problem supporting the developer for his efforts by buying the extra features.

Please just make sure it works :-)

Thanks

@rsiebert
Copy link
Owner

rsiebert commented Dec 1, 2016

Thanks for the information. I implemented and tested the chromecast functionality with the profile setting from a swedish guy that let me use his server to test the feature. It was working with the shown profile. The same is shown in the google+ group. His server was at least a core duo to transcode the stuff on the fly.

I really can't test the feature myself and rely on others because my server is a raspberry pi B.

chromecast profile

@Osberg
Copy link

Osberg commented Dec 1, 2016 via email

@BlindOSX
Copy link

BlindOSX commented Dec 1, 2016

I already tried that profile configuration before and it did not work for me either. I have also tried all kinds of profile configurations and I have not managed to make any of them work :/

TVHeadend 4.1.2309 over a Synology DS216+II with DSM6.

@trantoriana
Copy link

Hi,

I tried with the settings shown by creating a new streaming profile.
(I am not sure whether my tvheadend is older because I do not have a transcoding section in the settings, all settings are set under Basic Settings).

Nonetheless, the transcoding to tvhclient itself works, but the moment I cast to the chromecast it fails.
It seems to be related to credentials, as the log file shows:

2016-12-02 02:46:28.668 [ ERROR] http: 10.50.99.104: HTTP/1.1 GET /imagecache/9 -- 401

Might it be that the chromecast connects with a particular user which must be created in tvheadend ?

tvheadend: version 4.1 (no idea about the build for unstable ubuntu) on i7 (so transcoding is not an issue here

@phoniclynx
Copy link
Author

phoniclynx commented Dec 2, 2016 via email

@trantoriana
Copy link

@phoniclynx the unstable one works, I had similar issues with stable&release packages on ubuntu

@trantoriana
Copy link

@phoniclynx hmm, even unstable seems to have an issue right now:

W: The repository 'https://dl.bintray.com/tvheadend/ubuntu unstable Release' does not have a Release file.

@phoniclynx
Copy link
Author

phoniclynx commented Dec 2, 2016 via email

@phoniclynx
Copy link
Author

phoniclynx commented Dec 2, 2016 via email

@Osberg
Copy link

Osberg commented Dec 2, 2016

i also have the issue with upgrading the tvheadend on my ubuntu.

I have made a task in there fora about this : https://tvheadend.org/boards/5/topics/23757

@rsiebert
Copy link
Owner

rsiebert commented Dec 4, 2016

@BlindOSX The Synology is probably not strong enough to allow real time transcoding. The hardware transcoding feature can be used with the video station. But I doubt that the tvheadend server can use these features.

@BlindOSX
Copy link

BlindOSX commented Dec 4, 2016

@rsiebert I'm 99% sure that's not the problem. SW Transcoding works well on my Syno. If I just copy the URL from the log that TVHClient is trying to cast and open it with VLC on my Mac, it plays without problems.

@ghost
Copy link

ghost commented Dec 4, 2016

I have the same issue, my problem may be HW it is a 4 core i5-2430M CPU @ 2.40GHz - should be enough I think.
I have the debug log turned on for tvheadend on this server but that log is not showing me any issue, as for the client I just ran with debug turned on but can't find the log :)
Happy to help debug, but I don't know where to find addtional info

@rsiebert
Copy link
Owner

rsiebert commented Dec 4, 2016

I got an important tip from the first casting user. Here is his mail:

"Add a user with username * and set allow streaming, and set allow only local network.
set a empty password for that user. this allows anonumous acces for the lan users. 
It seams that casting does not take over the session from the phone,  so you are not authorized to access. 
This solved my problem."

Please try that. Hope it helps.

@ghost
Copy link

ghost commented Dec 4, 2016

Hi, some screenshots for the post above, this works for me.

Add a user like this, username *
image

And empty password
image

Check your streaming settings.
image

@trantoriana
Copy link

Ok, the repository failure on bintray I fixed using:

echo deb https://dl.bintray.com/dreamcat4/ubuntu master main | sudo tee -a /etc/apt/sources.list

Upgraded to 4.1-2347 (looks really different)...
Performed above changes.....

Still no luck at all.
The log does not even show the chromecast trying to connect as the wildcard (*) user...

Using the chromecast with plex work, so the chromecast is accessing the network just fine....
It looks like tvhclient is not communication with the chromecast and then runs in a timeout after about 5 seconds or so.

Any further ideas how to go about ?

@trantoriana
Copy link

Also, I confirm anonymous access to work using the wildcard user....
The failure is not related to the settings of that user...

Either tvclient cannot connect to the chromecast and transfer the channel URL or the chromecast cannot connect to tvheadend using the URl it got.

My tip would be on the first...

@phoniclynx
Copy link
Author

phoniclynx commented Dec 5, 2016 via email

@ghost
Copy link

ghost commented Dec 5, 2016 via email

@rsiebert
Copy link
Owner

rsiebert commented Jan 4, 2017

Maybe it is related to #276 where the webroot information is missing in the casting url.

@mario-tux
Copy link
Contributor

My guess is that the some casting setup don't work because the local DNS name is used in the configurations and the URL passed to the chromecast keys uses such name. This is unusable for the chromecast keys because, as widely note, they use the google DNS bypassing the local ones.
This would explain because the @rsiebert remote setup worked for him: he was using a public dns name!

TVHClient should use the ip address in the URL passed to the chromecast at least when a local name is detected.

my 2¢

@sei4eto
Copy link

sei4eto commented May 26, 2017

I've got the same issue here. Is anything new that could solve casting to Chromecast issue?

@phoniclynx
Copy link
Author

phoniclynx commented May 26, 2017 via email

@mario-tux
Copy link
Contributor

mario-tux commented May 26, 2017

@phoniclynx tvheadend already provide transcoding. The only issue that has to be addressed by @rsiebert is the use of local-dns names: a quiet common scenario.

Note that it is not enough to use the ip-address of the tvheadend server in the tvhclient configuration: my guess is that tvheadend reports urls using its local-dns name.

@sei4eto
Copy link

sei4eto commented May 26, 2017

I know for that app - BubleUpNP. I've got it. But it cannot use TVH server as a source.

@phoniclynx
Copy link
Author

phoniclynx commented May 26, 2017 via email

@rsiebert
Copy link
Owner

If I understand right, I need to use the IP address in the casting URL instead of a hostname?

@mario-tux
Copy link
Contributor

@rsiebert: you are right! This is strictly necessary for local streaming but it should be fine also for remote streaming (I can't imagine a scenario where you are using virtual hosting and you need to keep the dns name...).

@rsiebert
Copy link
Owner

rsiebert commented May 27, 2017 via email

@sei4eto
Copy link

sei4eto commented May 27, 2017 via email

@mario-tux
Copy link
Contributor

mario-tux commented May 27, 2017

@rsiebert I suspect that if you just use the ip address in the tvhclient configuration, the URL provided by tvheadend still uses the dns name. I can't check, could you?

Update: sorry, I can confirm that to use the ip address of the server in the tvhclient configuration is enough to make it works. I would suggest to add a warning or to make the automatic translation for the chromecast urls (less reports for you).

@rsiebert
Copy link
Owner

rsiebert commented May 27, 2017 via email

@benmooney92
Copy link

Hi, thanks for the great app! Just thought I'd resurrect this issue though, has anyone managed to get Chromecast to work?

@mario-tux
Copy link
Contributor

@benmooney92 Waiting for a fix, you can just use the local ip address of your TVH server in the configuration of the app: it should work with any Chromecast key in local network.

@benmooney92
Copy link

Ok thanks, I'll give it a go and post back!

@dkonerma
Copy link

dkonerma commented Dec 7, 2017

Don't known if this still an issue... found this comment:

"Add a user with username * and set allow streaming

Obviously this open wildcard user is neither needed nor desirable for good reasons. A better approach would be to fetch an auth ticket using HTSP getTicket(). Afterwards you could use this ticket to pass an "open" URL to Chromecast w/o authentication issues, e.g.

http://bla.blub:9981/stream/channelid/1?ticket=E46C64F4EE1A7C57B8BB2507618EAF4D9C4035AB&profile=chromecast

Cheers,
Dietmar.

@francoism90
Copy link

@rsiebert I have created a Wiki page: https://github.com/rsiebert/TVHClient/wiki/Using-Google-Chromecast

Hope you can implemented the requirements for removing *, since this isn't the best on some networks.

@ipleten
Copy link

ipleten commented Sep 7, 2018

image

@lwis
Copy link

lwis commented Sep 15, 2018

Unfortunately nothing in here has worked for me (transcoding or raw). I have even tried transcoding my original files to a format that Chromecast can play, but the app just crashes as soon as I attempt to play a recording.

@francoism90
Copy link

@ipleten Does this work for you? It seems weird to combine VP9 with a H264/HEVC one, that isn't even possible if I'm not mistaken.

@lwis Could you please give your logging (should be dmesg or journalctl -xe)?

@rsiebert
Copy link
Owner

Did anyone test the beta version? Many users got casting to work there. There were also changes to the code.

@rsiebert rsiebert added this to the 2.0.0 milestone Oct 17, 2018
@rsiebert rsiebert added the bug label Oct 17, 2018
@CWempe
Copy link

CWempe commented Oct 17, 2018

I just installed the beta.
Looks good so far.

I only tested streaming inside my own network and with user auth (not anonymous).

I still need to fine tune my settings to get better quality and performance.
But that is not an issue of TVHClient. 😄

@francoism90
I guess the wiki needs an update.
At least in my TVheadend version 4.1-2301~g50a3707~xenial I cannot find an option to create an "audio/video codec profiles".
image

btw: you can just copy&paste screenshots from clipboard into the github editor.
No need for an external image hoster.

@Osberg
Copy link

Osberg commented Oct 17, 2018

Where is the link to the beta? 😉

@CWempe
Copy link

CWempe commented Oct 17, 2018

Open the app in Google Play and scroll down.
You will find a section where you can apply to become a beta testen by one click.
After a moment you can update to the new beta version.

@dkonerma
Copy link

Hi Robert,

casting is working fine with this beta. Also externally... no anonymous access is required, because the stream URL is passed with "ticktet"... and the ticket is retrieved via HTSP.

Some things I consider imoirtant to be sucessful.

  • You need transcoding on the TVH server side.
  • Transcoding, especially vaapi hw-assisted transcoding works best on recent unstable TVH 4.3 versions.
  • For maximum comaptibility, with Cast, most browsers, players and the internal player I choose:
    • Container av-lib/MP4
    • Video encoded with h.264 high profile
    • Audio encoded as AAC LC profile

That's it. Works like a charm.

Cheers
Dietmar.

@francoism90
Copy link

francoism90 commented Oct 18, 2018

@CWempe That's an old version, 4.3.* has been released around 2017. Feel free to add this information, I've just added this to wiki in case it was useful for others having the same issue. :)
Also thanks for the tip about images!

@dkonerma Updated the Wiki, thanks! 👍

@rsiebert
Copy link
Owner

Closing this issue due to multiple reports that it is working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests