Jump to content


Photo

3.6.0.40 - transcode throttle is back !


  • Please log in to reply
27 replies to this topic

#1 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108887 posts
  • Local time: 12:15 PM

Posted 11 September 2018 - 11:03 AM

At long last we're finally bringing this feature back. In order to accomplish this, we've had to make our own modifications to ffmpeg to add support for doing this.

 

Current supported server platforms: All except Synology.

 

You'll notice the setting:

 

5b97d809d24b1_Untitled.png

 

When enabled, if the transcoding process gets really far ahead of your watching position, then the throttling will kick in and you'll see cpu usage plummet:

 

5b97d8780f5eb_Untitled.png

 

Please try it out. Thanks.

 

 

FAQ

 

What happens if I replace Emby's ffmpeg builds with my own? Emby will think the feature is supported, but it won't work if you activate it.


  • Latchmor, denz, MikePlanet and 8 others like this

#2 paulsalter OFFLINE  

paulsalter

    Advanced Member

  • Members
  • 368 posts
  • Local time: 05:15 PM

Posted 11 September 2018 - 11:08 AM

That is fantastic new, thanks for this :)

 

Looking forward to testing this 



#3 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108887 posts
  • Local time: 12:15 PM

Posted 11 September 2018 - 11:13 AM

And for the real nerd's nerds, this isn't in the new beta, but we are playing with some really advanced statistics controls:

 

5b97db7742dff_Untitled.png


  • Erik, Overseer, Spaceboy and 21 others like this

#4 sualfred OFFLINE  

sualfred

    The Embuary guy

  • Developers
  • 1334 posts
  • Local time: 06:15 PM
  • LocationGermany

Posted 11 September 2018 - 11:15 AM

That's fantastic. There can't be enough stats for nerds.


  • Doofus, Maximus Naxsus, spudd and 1 other like this

#5 kikinjo OFFLINE  

kikinjo

    Advanced Member

  • Members
  • 88 posts
  • Local time: 06:15 PM

Posted 11 September 2018 - 11:42 AM

Great news !



#6 kikinjo OFFLINE  

kikinjo

    Advanced Member

  • Members
  • 88 posts
  • Local time: 06:15 PM

Posted 11 September 2018 - 01:09 PM

Updated to .40, seeing some weird cpu spikes now when playing any movie (direct) with web browser (firefox), 15-20 % spike. Tried with ET windows no spikes, only web.

Can someone test same thing to confirm? Cheers



#7 maegibbons OFFLINE  

maegibbons

    Advanced Member

  • Members
  • 1876 posts
  • Local time: 05:15 PM
  • LocationLutterworth, England, UK

Posted 11 September 2018 - 01:16 PM

Yes - I really LIKE the new stats on the dashboard screenshot - lets have it please!

 

Krs

 

Mark



#8 cayars OFFLINE  

cayars

    Advanced Member

  • Alpha Testers
  • 1290 posts
  • Local time: 12:15 PM

Posted 11 September 2018 - 02:39 PM

Luke curious but what did you have to modify in ffmpeg to do this?



#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108887 posts
  • Local time: 12:15 PM

Posted 11 September 2018 - 02:45 PM

ffmpeg has no api to do this natively.  A few years ago we tried to accomplish this outside ffmpeg with a very hacky method, and while this worked fine for CPU transcoding, it caused problems with gpu. So it became clear that to us that this had to be done inside ffmpeg.

 

In this case, Emby server is the brains reading the data and making the decisions, and we added custom commands to ffmpeg so that the server can tell it to slow down or speed up the transcoding process.



#10 cayars OFFLINE  

cayars

    Advanced Member

  • Alpha Testers
  • 1290 posts
  • Local time: 12:15 PM

Posted 11 September 2018 - 03:06 PM

Ahh GPU, yep makes sense.  Didn't think about that.

 

Are you trying to get this change incorporated back into ffmpeg so you don't have to modify every new version when released?

 

PS Great job on it,

Carlo


Edited by cayars, 11 September 2018 - 03:06 PM.


#11 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108887 posts
  • Local time: 12:15 PM

Posted 11 September 2018 - 03:17 PM

Ahh GPU, yep makes sense.  Didn't think about that.

 

Are you trying to get this change incorporated back into ffmpeg so you don't have to modify every new version when released?

 

PS Great job on it,

Carlo

 

I'm not sure. We obviously will make the changes available so that anyone can tinker with them, but getting it incorporated into ffmpeg is a process that will pull us away from Emby activities. We have to follow all of their guidelines and requirements for submitting a patch, we have to make sure all test cases pass. For example it's possible our changes could break something that Emby never uses, and to get this merged in we would have to do the work to resolve it. And then we have to submit it to their mailing list, explain it, defend it when others question, make changes based on feedback from the ffmpeg team, etc. There's just a lot that goes into it, and those are all hours I would rather be spending on Emby development. 



#12 cayars OFFLINE  

cayars

    Advanced Member

  • Alpha Testers
  • 1290 posts
  • Local time: 12:15 PM

Posted 11 September 2018 - 03:25 PM

Understood.

 

Let's see how it works through the beta cycle.  If it seems to work maybe I can do this for your guys or another person here on the forums.  It would be a shame for you guys to have to mod it every time they release a new version you pull.  This got Plex in a bit of pickle for a while as they fell behind on their transcoder "upgrades" since it was getting involved.  I'd just hate to see you guys get into the same situation.

 

Carlo


  • Hitsville likes this

#13 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108887 posts
  • Local time: 12:15 PM

Posted 11 September 2018 - 03:33 PM

The reality is users want new things so fast that being we're in a competitive market, we cannot necessarily afford to wait for the libraries that we depend on to add something that we need. So I would expect that this is going to continue to happen and there are already other areas we've identified possible improvements for as well. We don't have any intention of falling behind though. On android we've customized exo player (a little, not much), and we've done a pretty good job of keeping up to date with that.


  • cayars and Devdroid like this

#14 jaketame OFFLINE  

jaketame

    Advanced Member

  • Members
  • 157 posts
  • Local time: 05:15 PM

Posted 11 September 2018 - 04:14 PM

Luke really impressed this has been released, this is a huge step towards attracting more users and it will avoid disks getting filled up.

Are the settings customisable or is it hard set? If so what’s the limit it will throttle back?

Top work! Thanks

Edited by jaketame, 11 September 2018 - 04:15 PM.


#15 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108887 posts
  • Local time: 12:15 PM

Posted 11 September 2018 - 04:17 PM

Right now it is just on/off but we'll expose another setting for it soon to control the size.


  • Devdroid likes this

#16 Devdroid OFFLINE  

Devdroid

    Advanced Member

  • Members
  • 75 posts
  • Local time: 06:15 PM

Posted 11 September 2018 - 06:03 PM

You guys rock! This is amazing stuff. 

I would very much like the advanced view if possible. That also looks great. 


  • Hitsville likes this

#17 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108887 posts
  • Local time: 12:15 PM

Posted 12 September 2018 - 01:08 AM

Thanks for the feedback.



#18 anthonws OFFLINE  

anthonws

    Advanced Member

  • Members
  • 33 posts
  • Local time: 05:15 PM

Posted 12 September 2018 - 09:45 AM

Impressive stuff going on with the 3.6.xx releases! Are you even getting some proper sleep?!? :P

 

Great work! Really happy to see Emby succeeding! And a big thank you for being so inclusive with the community!!

 

anthonws


  • cayars and Maximus Naxsus like this

#19 atropa OFFLINE  

atropa

    Member

  • Members
  • 18 posts
  • Local time: 06:15 PM

Posted 12 September 2018 - 12:20 PM

Woho ! This is what i have been waiting for. Now  all my dreams come true :) Great work xD



#20 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108887 posts
  • Local time: 12:15 PM

Posted 17 September 2018 - 02:22 AM

In beta 3.6.0.44, this is now available on all platforms except for Synology. We'll hopefully get that in soon. Thanks.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users