zzag / plasma5-wallpapers-dynamic

Dynamic wallpaper plugin for KDE Plasma
328 stars 18 forks source link

Set encoding speed #107

Closed dave9997 closed 2 years ago

dave9997 commented 2 years ago

Hi,

I'm a new user of your plugin. Let me first congratulate for all the (greatly appreciated) work done. I was wondering, can you give us the option to pass the encoder speed as a command line parameter? Because I've tried converting an apple dynamic wallpaper (a heavy one, 61MB) and got nowhere. I left the PC on for more than 2 hours (and it's an i7) but still nothing. I guess maybe leaving it overnight would do but still, converting it manually (avifenc) with a higher speed gave results in minutes. On a rather smaller HEIC (3MB) it took some 10-15 minutes.

It seems https://github.com/zzag/plasma5-wallpapers-dynamic/blob/main/src/lib/kdynamicwallpaperwriter.cpp after line 93 would be a good place for something like: encoder->speed=10; Of course I'm saying 10 out of desperation, a user parameter would be ideal.

Thanks!

Davide