Jump to content

Chromecast won't play videos


fuzzthekingoftrees

Recommended Posts

fuzzthekingoftrees

When I play a video and the chromecast is able to direct stream, the video doesn't play.

On the TV I get the OSD for the video I have chosen over a blank (black) screen. The OSD auto hides and I'm left with just the blank screen.

On the dashboard it shows that my Chromecast is connected with the video that it should be playing, it says Direct Playing. The counter remains at --:--:--

 

On the android app or the web player the remote control shows the video selected and the time elapsed remains at 0:00

 

If I press stop the video stops successfully, the TV goes back to the emby splash screen.

 

The log (attached) shows

 

    System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

 

Sometimes chromecasting will work, but most of the time it fails with this error. I've tried files with different containers, different h.264 profiles and forcing the server to transcode by setting the bitrate really low.

server-63621738149.txt

Link to comment
Share on other sites

fuzzthekingoftrees

It seems that this happens when the chromecast tries to direct stream certain videos. Once this error has occured the chromecast needs to be rebooted before it will start playing successfully again. Here is the media info from a video that "broke" the chromecast

 

post-26045-0-58862400-1486144626_thumb.png

Link to comment
Share on other sites

Yea it's trying to direct play that title when it probably should be transcoding. To confirm I am correct, try dropping to your in-app chromecast bitrate setting to 5mbps. thanks.

Link to comment
Share on other sites

  • 2 months later...
fuzzthekingoftrees

Is this on the list to be fixed? When I try to play videos that are level 5.1 the chromecast still tries to direct stream them when they need to be transcoded.

Link to comment
Share on other sites

In a future update we will add automatic switching to transcoding when the video player reports an error with direct play. thanks !

Link to comment
Share on other sites

  • 1 month later...
fuzzthekingoftrees

I just tried the new chromecast player that was released yesterday. This problem is still the same. Chromecast tries to direct stream videos that are level 5.1 and the only way to get the chromecast working again is to power cycle.

Link to comment
Share on other sites

fuzzthekingoftrees

Can I not upload an mkv here? I tried but I get a you aren't permitted error

Edited by fuzzthekingoftrees
Link to comment
Share on other sites

You won't be able to here, no. Do you have something like dropbox or google drive?

Link to comment
Share on other sites

On second thought, try to play the video again with Chromecast. I decided to drop the max supported level to 50 rather than 51. That should force it to transcode. thanks.

Link to comment
Share on other sites

fuzzthekingoftrees

This is much better. I can play anything that is level 5.1

I tried playing some level 5.0 files with mixed results. I have an mkv with two aac audio tracks. If I start the video playing then it plays OK with the default track as a direct stream. If I switch to the second track I get an ffmpeg-directstream log (attached). And the video fails to play. I the have to power cycle the chromecast before it will play anything else.

 

ffmpeg-directstream-bffa9940-36ca-40b8-ae5c-484196096011.txt

Edited by fuzzthekingoftrees
Link to comment
Share on other sites

Ok, I've pushed another update to drop the max level to 42. Please try that out. Thanks.

Link to comment
Share on other sites

You could try removing your customized ffmpeg and going back to the emby default.

Link to comment
Share on other sites

fuzzthekingoftrees

I tried to go back to the default version but it's missing. The folder %appdata%\MediaBrowser-Server\ffmpeg\20170308 is empty

Is there somewhere I can download the files that should be in that folder.

Link to comment
Share on other sites

What you can do is just rename your existing ffmpeg folder, and then restart the server. when the server can't find it, it will download the default. let us know if this helps. thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...