75lb / handbrake-js

Video encoding / transcoding / converting for node.js
Other
550 stars 69 forks source link

error: Handbrake InitialisationError message : Cannot load libnvidia-encode.so #61

Closed ankitmishra88 closed 3 years ago

ankitmishra88 commented 3 years ago

I have installed handbrake-js on Ubuntu EC2 server with Node.js. Earlier It was working fine.But whenever now, I try to transcode a file to mp4, it gives following error: {"status":false,"error":{"name":"Other","message":"Handbrake InitialisationError [error code: 3]","output":"Cannot load libnvidia-encode.so.1\nCannot load libnvidia-encode.so.1\nCannot load libnvidia-encode.so.1\nCannot load libnvidia-encode.so.1\n[08:37:44] hb_init: starting libhb thread\n[08:37:44] thread 7f7eb5df1700 started (\"libhb\")\nHandBrake 1.2.1 (2019021900) - Linux x86_64........................................ } It's a long list. So what may be the possible solution? Earlier it was working fine.

75lb commented 3 years ago

Hi.. this error is related to the underlying HandbrakeCLI binary, not the handbrake-js wrapper library.. have you tried reinstalling the handbrake Linux package? Something seems corrupted..

ankitmishra88 commented 3 years ago

Ok, so I haven't reinstalled Handbrake CLI, I try reinstalling and see if it works. Thanks

ankitmishra88 commented 3 years ago

I removed and installed handbrake-cli again, but error is still there. You can see the error in below screenshot of console. Screenshot (52)

75lb commented 3 years ago

ok, this is not an issue with the handbrake-js wrapper library, which is doing its job correctly.. please try running handbrake directly (not the handbrake-js Node.js library) - if it also fails with handbrake directly, you need to contact handbrake..

ankitmishra88 commented 3 years ago

Thanks, I checked running HandbrakeCLI from terminal directly without Node.JS library, It works only with sudo. This may be the issue? To make it work with Node.js, what should I do?

75lb commented 3 years ago

then you must also run node with sudo..

ankitmishra88 commented 3 years ago

Oh yes, thanks 👍