omega-gg / MotionBox

Video Browser for Motion Freedom
http://omega.gg/MotionBox
GNU General Public License v3.0
115 stars 14 forks source link

[QUESTION] Is there any way to enable hardware acceleration? #40

Closed AndGuz closed 2 years ago

AndGuz commented 2 years ago

I ask because if i put the video quality to more than 1080p it lags on my laptop, and as i know you use vlc internally it could be possible to enable it. Also, vlc works flawlessly on this same machine, thanks in advance for your answer :)

AndGuz commented 2 years ago

I saw that in the Sky Kit "--avcodec-hw=any" was commented out, maybe it could possibly be because of that

AndGuz commented 2 years ago

imagen As this image says, its not using the video capabilities of the iGPU, as far i know vlc can use them. Sorry for my bad english and thanks for this awesome piece of software.

3unjee commented 2 years ago

That's very weird, by default hardware decoding should be enabled on libVLC side.

AndGuz commented 2 years ago

Yeah, i tested on windows and is the same.

AndGuz commented 2 years ago

I think that libVLC is only using the options specified on Sky Kit.

3unjee commented 2 years ago

Well, trying with or without --avcodec-hw=any does not seem to affect video decoding performances on my side.

AndGuz commented 2 years ago

Maybe is a libVLC thing or bug

3unjee commented 2 years ago

One of the reason for the slower video on MB vs VLC is that I'm not using a native window handle + composition like we do on VLC 3.x.

But your point seems to be about libVLC video decoding specifically ?

AndGuz commented 2 years ago

Yes, it is. Or maybe is my PC hehehe, thanks bro for your response

3unjee commented 2 years ago

Sure. You can try a few flags if you feel like building the code. I'll be glad to have improvements on the HW decoding side.

AndGuz commented 2 years ago

I figured out that this issue could be because some Intel processors can't decode AV1/VP8/VP9 video, so I'm gonna close the issue. Thanks for this awesome software :)

AndGuz commented 2 years ago

Sure. You can try a few flags if you feel like building the code. I'll be glad to have improvements on the HW decoding side.

Yes, I'm on arch so the building script doesn't work correctly

3unjee commented 2 years ago

I figured out that this issue could be because some Intel processors can't decode AV1/VP8/VP9 video, so I'm gonna close the issue. Thanks for this awesome software :)

Yeah, HW might be troublesome on these formats. Could improve once we switch to libVLC 4.x.