Skip to content

Add hwdec option#21

Merged
marzzzello merged 2 commits intomarzzzello:masterfrom
NicolaSmaniotto:hwdec
Jul 6, 2022
Merged

Add hwdec option#21
marzzzello merged 2 commits intomarzzzello:masterfrom
NicolaSmaniotto:hwdec

Conversation

@NicolaSmaniotto
Copy link
Copy Markdown
Collaborator

This adds the option for the user to choose a value for the --hwdec= parameter for mpv subcalls.

The default is kept "no", as it currently is.

From my testing, it can be enabled without issues because mpv is able to gracefully fall back to software decoding.

I personally set it to auto-safe, and it almost halves the time to generate the thumbnails (of course, for encoders supported by my processor).

No links in markdown code blocks
@marzzzello
Copy link
Copy Markdown
Owner

Thanks!
It seems to make no difference for my CPU though (i7-7500U)

@marzzzello marzzzello merged commit e732ffb into marzzzello:master Jul 6, 2022
@NicolaSmaniotto
Copy link
Copy Markdown
Collaborator Author

It seems to make no difference for my CPU though (i7-7500U)

This is strange, do you see the hardware decoder when pressing I?

Like this:
Screenshot_20220706_091911

@marzzzello
Copy link
Copy Markdown
Owner

Yes, it also shows vaapi. The duration for thumbnail generation stays the same.
I'm on mpv 0.34.1-4 on Arch Linux. Log doesn't show anything useful.

@NicolaSmaniotto
Copy link
Copy Markdown
Collaborator Author

I see. Maybe your processor is already powerful enough to move the bottleneck elsewhere.

My 4th gen i5 certainly needs the help.

Have a nice day :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants