Jump to content

Chromecast (2ed) direct play of videos with multiple audio streams


Go to solution Solved by Luke,

Recommended Posts

JosteinG
Posted

Streaming (without transcoding) a largish (2.2GB) MP4-file from the android app causes significant lagging when changing among several audio stream (5 AAC streams), while streaming an MKV-file with the same video- and audio settings is unproblematic (as long as I've started emby on the chromecast beforehand).

The files were encoded on Handbrake (1.11.2). Preset Chromecast 1080p30, only with more audio streams added. 

Emby server is running on an rpi 4, transcoding disabled for my user.

What is the reason? Is it fixable? 

JosteinG
Posted

I want to stream the film "TESTFILE" to chromecast 2ed, using the Android app.

I start up chromecast. Then Emby on my phone. Start emby on chromecast. Go into the "__test" folder and start playing TESTFILE2.mkv. The film starts quickly, and the controls on the Android app is responsive. I am able to jump backwards and forwards quite easily. I can change the language without problems. I pause TESTFILE2.mkv.

I then navigate to playing TESTFILE1.mp4. I click "play" and nothing happens. Nothing keeps happening for over a minute. I "play" again. Now it starts loading a long time. Then it plays - or the sound plays, no video. I open the controls and jump ahead. There is no response. I change the language. There is no response, until it suddenly jumps forward to where I clicked, and keeps playing with video, and the new language. I try again to change the language. That is no longer possible. The controls are now unresponsive. I back out. 

I've also attached the mediainfo reports for testfile1.mp4 and testfile2.mkv. These were both made using the Chromecast 1080p30 preset in Handbrake. Interesting thing is - the MKV has a constant bitrate, while the MP4 has a variable bitrate. The only changes I made to the preset was to add more languages (and subtitles) and change the container from default (mp4 for Testfile1.mp4) to MKV (for testfile2.mkv). 

I've deactivated transcoding in the user I'm using to stream to chromecast. 

 

 

 

ffmpeg-directstream-2d4ee6bb-2d72-4e7e-8e80-ba04803c3b28_1.txt ffmpeg-directstream-ee06e63c-6f8e-4dc1-b9e6-ed363713911b_1.txt embyserver.txt TESTFILE2.mkv.MediaInfo.txt TESTFILE1.mp4.MediaInfo.txt

  • Solution
Posted

HI, are you able to update to Emby Server 4.10 and see if that helps ?

JosteinG
Posted

Indeed, that appears to have fixed it! I'll check some more later, but it is way better than before.

The only (slight) problem now is that it is no longer possible to change subtitles while the file is streaming to the chromecast. To change subtitles, I have to back out, change the subs, and pressing "resume". 

  • Thanks 1
Posted
1 hour ago, JosteinG said:

The only (slight) problem now is that it is no longer possible to change subtitles while the file is streaming to the chromecast. To change subtitles, I have to back out, change the subs, and pressing "resume". 

HI there, can you please provide a specific example? In my testing it seems to be working.

How to Report a Problem

Thanks !

 

JosteinG
Posted (edited)

Sorry about the delay, I haven't had time before now. But, the problem with direct play of mp4-files is back!

And I still can't change subtitles while the film is streaming to chromecast

And suddenly the colors of some videos (not all) are dreadfully dull and unsaturated when streamed to chromecast (but normal otherwise)!

Should I make two more topics, one for the non-changeable subtitles (an annoyance) and one for the unsaturated video? Or should I continue all in this thread?

I have done the same as before. Turned on the chromecast. Startet emby on android. Connected emby to chromecast. Started playing a video.

If the video actually will play, I try to jump forward and backwards to check how responsive it is. I then press the CC-icon to change the subtitles while the film is playing, but it is completely unresponsive.

If the video won't play it will often try to load (the twirly thing appears or title briefly flashes to the screen) but in the end it remains unresponsive.

I have testfile 1, 2, 3, 4 and 5. Testfile 1, 2 and 3 are pretty much identical (made from the same source in handbrake with the chromecast1080p30 preset).TESTFILE3 is identical to TESTFILE1, only with constant framerate. Testfile4.mkv is made likevise. TESTFILE5 was remuxed from TESTFILE4 with the command "ffmpeg -i TESTFILE4.mkv -map 0 -c copy -c:s mov_text TESTFILE5.mp4"

All mkv-files will directplay (TESTFILE2 and TESTFILE4). TESTFILE1 wouldn't directplay before I updated the server, but does now(?). TESTFILE3 and TESTFILE5 will not play at all. 

It is not possible to change subtitles (while streaming it to chromecast, before playing, or when playing on the phone it is no problem) in neither TESTFILE1.mp4, TESTFILE2.MKV nor TESTFILE4.mkv 

In addition the colors of TESTFILE4.mkv looks unsaturated when streaming from chromecast, but not when playing on the phone (or in other players). Attached are all the logs + mediainfo

All problems persists even after restarting the server. 

embyserver (2).txt ffmpeg-directstream-aba0f4e5-6926-4cc6-98ea-8d54d09d5c4d_1.txt ffmpeg-directstream-56ff49e5-4da9-4632-a066-1e47cfd90fc2_1.txt hardware_detection-63930542089.txt embyserver-63930542066.txt ffmpeg-directstream-c24fffb9-d7d1-4678-923b-6cc3655b5084_1.txt ffmpeg-directstream-b2c62ad2-1fef-4a07-ba56-7663c2968177_1.txt ffmpeg-directstream-10b9127a-b416-4648-93f8-28ee89a0a763_1.txt ffmpeg-directstream-404b2f66-8de3-466d-86a2-60ba17f105db_1.txt ffmpeg-directstream-2fe5a88c-fe79-43c4-bc97-8ac87712801d_1.txt ffmpeg-directstream-9e9a11c8-ec4c-4a36-ad5a-c3dad49d6868_1.txt TESTFILE1.mp4.MediaInfo.txt TESTFILE2.mkv.MediaInfo.txt TESTFILE3.mp4.MediaInfo.txt TESTFILE4.mkv.MediaInfo.txt TESTFILE5.mp4.MediaInfo.txt

Edited by JosteinG
Posted

@JosteinGalso can you please reboot your chromecast device and try again? We just pushed out a large update to our chromecast receiver. thanks.

JosteinG
Posted

It’s not direct playing because you have a secondary audio track selected. There’s no way for the chromecast to select secondary audio on its own. If you select the first audio track then it B may direct  play

JosteinG
Posted
Quote

even when I choose primary audio track. 

What exactly happened?

JosteinG
Posted

Same as before. Emby is running on Chromecast. I first try to play a MKV-file (TESTFILE2), everything works (except changing subs). I pause. I choose a mp4-file (TESTFILE1) Click "play", and nothing happens. I wait, click again - the controls for TESTFILE2 disappear, the loading spiral show up briefly on the tv, then nothing. Same third time. I've made a video (attached). I never change from the default audio track when I try to play the files. 

embyserver (5).txt ffmpeg-directstream-5871a167-ba42-47d1-bdb7-6bc7fcdc0b1a_1.txt ffmpeg-directstream-1acf6cf8-4b81-49fa-b2c9-80dcbe18db4b_1.txt

Posted

By the way from 0 to 0:46, these dialogs open with an animation. You're clicking the button twice, which is also why you have to tap outside twice to make it go away.

JosteinG
Posted

Yes, but why won't the mp4-file directplay when the identical mkv-file will?

 

Posted

i don't see any log examples of an mp4. which one is that?

Posted

There wasn't any ffmpeg-logs made when I tried to directplay mp4-files. Now no ffmpeg-logs are made at all. With transcoding turned on, mp4-files will directplay - eventually (long pause from I press play until anything happens). Pausing isn't possible now either. I'll reboot the server and try again tomorrow. 

 

Skjermbilde 2026-11-30 211740.png

embyserver (7).txt embyserver (6).txt

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...