paulpacifico / shutter-encoder

A professional video compression tool accessible to all, mostly based on FFmpeg.
https://www.shutterencoder.com
GNU General Public License v3.0
972 stars 60 forks source link

[bug] Enabling hardware acceleration freezes program #119

Closed rambo919 closed 1 year ago

rambo919 commented 1 year ago

sysinfo.txt Screenshot_20230225_142906

Just enabling this (or trying to at least) with either 264 or 265 changes the mouse to the rolling ball and locks me out of the program and I need to use xkill to quit it.

Dunno if a dialog is supposed to appear?

Have tried both 16.5 and 16.8, both do it.

paulpacifico commented 1 year ago

Does encoding the file without the hardware acceleration works?

rambo919 commented 1 year ago

Does encoding the file without the hardware acceleration works?

Yes it works but given the time difference between more than a hour and 5min with Cine Encoder NVENC (to which I have switched at least for now) and the amount of transcodings I need to do.... it's no contest.

I dunno if this bug is KDE related but I guess it might be. Could also be a driver issue. As I said I dunno if a dialog box or something is supposed to pop up?

paulpacifico commented 1 year ago

Ok thanks, could you try to download a static build from here: https://johnvansickle.com/ffmpeg/ And replace the actual FFmpeg binaries from 'Library' folder inside the Shutter Encoder app.

rambo919 commented 1 year ago

Found the folder at "/usr/lib/Shutter Encoder/usr/bin/Library/"

Copied ffmpeg and ffprobe into it overriding.

Now it shows a dialog when I attempt to enable hardware acceleration: "No hardware acceleration available. Make sure your drivers are up to date!"

It's the latest available drivers though. 520

Augusto7743 commented 1 year ago

That bug happen because Shutter Enconder use internal ffmpeg to access nvenc library, but the OS not allow doing it. In Ubuntu 20.04 the solution is :

sudo rm "/usr/lib/Shutter Encoder/usr/bin/Library/"ffmpeg sudo ln -s -v /usr/bin/ffmpeg "/usr/lib/Shutter Encoder/usr/bin/Library/"

Augusto7743 commented 1 year ago

That bug happen because Shutter Enconder use internal ffmpeg to access nvenc library, but the OS not allow doing it. In Ubuntu 20.04 the solution is :

sudo rm "/usr/lib/Shutter Encoder/usr/bin/Library/"ffmpeg sudo ln -s -v /usr/bin/ffmpeg "/usr/lib/Shutter Encoder/usr/bin/Library/"