by nicolaslem · 3y ago · 0 comments
It is possible that my testing was flawed so I would be curious if anyone has investigated power consumption more thoroughly.
* Idle @ 50% brightness, WiFI on: 3.5W
* mpv + hardware acceleration: 15W
* Firefox + hardware acceleration: 19W
* Firefox software decoding: 29W
The test video was https://www.youtube.com/watch?v=LXb3EKWsInQ - which is 4k 60 FPS and got scaled to 1920x1080 for display.Good taste.
My experience is largely focused on battery-powered mobile devices (Android/iOS), though.
mpv hardware H.264 1080p60: 3% CPU usage
mpv software H.264 1080p60: 20% CPU usage
mpv hardware H.264 4K60: 96% CPU usage
mpv software H.264 4K60: 80% CPU usage
There comes a point of diminishing (or in this case, negative) returns. A bit more subjectively, the H.264 software rendering at 4K60 also felt smoother.I'm using H.264 as it is hardware accelerated on this platform.
Software based path causes significant CPU load. Using hardware path keeps CPU at about 0%. Since hardware video decoding supported nearly on any modern Laptop, Desktop I would say 4K60 is handled very efficiently.
I foresee in the future, as CPU's get even faster, this kind of stuff being decoded by javascript, simply so that 'we can guarantee each platform decodes the video the same'.