Jump to content


Photo

Issue with max simultaneous video streams


  • Please log in to reply
33 replies to this topic

#1 shocker OFFLINE  

shocker

    Advanced Member

  • Members
  • 518 posts
  • Local time: 03:46 PM

Posted 10 February 2020 - 11:17 AM

Hello,

  I don't know if anyone else using this feature gets the following issues.

- If a user have only one view enabled, when he is watching a TV Show and by the end of the episode he hits the "play next" button, sometimes he is getting the error that he exceeded the amount of streams.

- Sometimes if a user is hitting the transcoder after playing with the video quality, setting a lower bitrate, he is getting the error that he exceeded the amount of streams.

 

I know that sometimes the server might not close fast enough the existing session and it's not something about the code itself, but maybe we can have this new algorithm: If user is exceeding the threshold, instead of triggering the message, wait 2-3 seconds and retry again. If it's failing again, trigger the message.

 

Of course it would be nice for everyone to be able to have a global value to set the wait seconds for this behaviour (maybe 0 to disable) and a custom message for the users that are exceeding the allowed video streams will be nice ;-)

 

Cheers


Edited by shocker, 10 February 2020 - 11:19 AM.

  • ray-finkle likes this

#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156872 posts
  • Local time: 08:46 AM

Posted 10 February 2020 - 12:48 PM

Can we go over an example? Thanks.

#3 shocker OFFLINE  

shocker

    Advanced Member

  • Members
  • 518 posts
  • Local time: 03:46 PM

Posted 10 February 2020 - 04:35 PM

User Mike have defined on Emby server only one allowed video stream.

User Mike is watching The New Show S03E01. By the end of S03E01 on nVidia Shield Emby App the button of play the next episode pops up. After hitting the button he is getting the message that he is exceeding the maximum allowed streams, even that nobody else is watching on server.

User Mike gets very upset and throws with his remote control though TV. Keep in mind that the new nVidia Shield remote is very heavy ;-)

 

Unfortunately those errors are randomly and I'm not heaving any server log for this, but anyways seems that the Emby server is those cases is not closing the existing session fast enough before opening a new one. That's why I have proposed the above solution. It will not generate any impact and might solve those kind of issues.

 

P.S. Server HW/load is not an issue here.

 

Is there anyone else experiencing this or it's just me?


  • Napsterbater likes this

#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156872 posts
  • Local time: 08:46 AM

Posted 10 February 2020 - 08:37 PM

Are you able to observe the same situation in the web app?



#5 shocker OFFLINE  

shocker

    Advanced Member

  • Members
  • 518 posts
  • Local time: 03:46 PM

Posted 11 February 2020 - 04:13 AM

For now I only encountered this with Android TV (nvidia shield, xiaomi mi box s 4k and amazon fire tv stick 4k). I'll do a stress test with the web app and come back with a feedback.



#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156872 posts
  • Local time: 08:46 AM

Posted 12 February 2020 - 05:40 PM

That would be great, let us know how you get on. Thanks.



#7 shocker OFFLINE  

shocker

    Advanced Member

  • Members
  • 518 posts
  • Local time: 03:46 PM

Posted 25 February 2020 - 03:10 PM

Yes, same issue on web running server 4.4.0.16 with Google Chrome 80.0.3987.116 running on Mac OSX 10.15.3.

What I did in the test, opened the tv show, clicked the bar to the latest 2min-1.5min and waited for the episode to end and start the new one. While changing the episode I've got the error message.

 

Tried again for 5-10 times and it's working ok, this error is random.

Attached Files


Edited by shocker, 25 February 2020 - 03:11 PM.


#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156872 posts
  • Local time: 08:46 AM

Posted 25 February 2020 - 03:15 PM

Perhaps there's another stream open?



#9 shocker OFFLINE  

shocker

    Advanced Member

  • Members
  • 518 posts
  • Local time: 03:46 PM

Posted 25 February 2020 - 03:23 PM

Perhaps there's another stream open?

 

This case would be a normal behaviour, not a bug ;-)

No, I just used a dummy created user with incognito browser. Tried multiple days, multiple tv shows to be able to reproduce. It's very hard to reproduce, it's not something common.

Those behaviours are so rare that are not even annoying. I mean if it happens once a week, you can just hit play again and it's working.

Also after the error message I pressed play again and it worked.

 

P.S. This is only happening only when the play next function is triggered.



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156872 posts
  • Local time: 08:46 AM

Posted 27 February 2020 - 02:20 AM

Using incognito is not a good idea and will likely result in quirks.



#11 ray-finkle OFFLINE  

ray-finkle

    Advanced Member

  • Members
  • 34 posts
  • Local time: 07:46 AM

Posted 18 March 2020 - 02:53 PM

+1 I too am experiencing this issue. Emby theater, Emby for Android TV, and FireTV so far have all reproduced the error.

 

Maybe adding more of a delay before enforcing the limit would completely resolve this?



#12 shocker OFFLINE  

shocker

    Advanced Member

  • Members
  • 518 posts
  • Local time: 03:46 PM

Posted 18 March 2020 - 03:33 PM

@Luke sometimes the server might not close fast enough the existing session and it's not something about the code itself, but maybe we can have this new algorithm: If user is exceeding the threshold, instead of triggering the message, wait 2-3 seconds and retry again. If it's failing again, trigger the message. Of course it would be nice for everyone to be able to have a global value to set the wait seconds for this behaviour (maybe 0 to disable) and a custom message for the users that are exceeding the allowed video streams will be nice ;-)

 

Is this possible?


Edited by shocker, 18 March 2020 - 03:33 PM.


#13 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156872 posts
  • Local time: 08:46 AM

Posted 23 March 2020 - 03:39 PM

Can you give an example of how to reproduce?



#14 shocker OFFLINE  

shocker

    Advanced Member

  • Members
  • 518 posts
  • Local time: 03:46 PM

Posted 23 March 2020 - 03:40 PM

Can you give an example of how to reproduce?

https://emby.media/c...reams/?p=842525



#15 rechigo OFFLINE  

rechigo

    Advanced Member

  • Members
  • 773 posts
  • Local time: 05:46 AM
  • LocationCALIFORNIA

Posted 23 March 2020 - 03:53 PM

I had this continuously happen to me on Roku when I set a global server limit, the only fix for me was to completely restart my server to remove the stream block. This isn't an issue anymore since I took of the global stream limit and put it only on my users. I don't know if this is related since it was a while back and I don't know how much this feature has improved since then



#16 shocker OFFLINE  

shocker

    Advanced Member

  • Members
  • 518 posts
  • Local time: 03:46 PM

Posted 23 March 2020 - 03:57 PM

I had this continuously happen to me on Roku when I set a global server limit, the only fix for me was to completely restart my server to remove the stream block. This isn't an issue anymore since I took of the global stream limit and put it only on my users. I don't know if this is related since it was a while back and I don't know how much this feature has improved since then

 

On my case I encountered this with per-user limit. I didn't tested with the latest releases to see if I can reproduce this.

@ray-finkle are you still encountering this with the latest server release?



#17 ray-finkle OFFLINE  

ray-finkle

    Advanced Member

  • Members
  • 34 posts
  • Local time: 07:46 AM

Posted 23 March 2020 - 04:05 PM

Yes this is still an issue for multiple users across many devices.

I have no global limit set, only per user.

My emby install is behind a reverse proxy. Is yours?

#18 shocker OFFLINE  

shocker

    Advanced Member

  • Members
  • 518 posts
  • Local time: 03:46 PM

Posted 23 March 2020 - 04:06 PM

Yes, nginx with SSL



#19 ray-finkle OFFLINE  

ray-finkle

    Advanced Member

  • Members
  • 34 posts
  • Local time: 07:46 AM

Posted 23 March 2020 - 05:36 PM

@shocker have you replicated the issue without going thru the reverse proxy?

If not, let's both test that too since I can't think of much else we can do.

#20 ray-finkle OFFLINE  

ray-finkle

    Advanced Member

  • Members
  • 34 posts
  • Local time: 07:46 AM

Posted 24 March 2020 - 11:32 AM

Now seeing this crash Emby theater for Windows...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users