zocker-160 / handbrake-nvenc-docker

Handbrake GUI with Web browser and VNC access. Supports NVENC encoding
51 stars 11 forks source link

[Future request] Jetson Nano compatible? #4

Closed SA7BNT closed 2 years ago

SA7BNT commented 3 years ago

Hey,

will it be possible to use this docker for Jetson Nano in the future?? Right now im getting this error

0455c939b0c1: Pull complete Digest: sha256:3632115354039d238a7b13cce82ca982d68b3368be99b58eb004901ad96bb5bf Status: Downloaded newer image for zocker160/handbrake-nvenc:latest WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested c7717f95cc694134a740691cab8bb7586d98f675e9f0ab116f68a34dd02f4c6d docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: Running hook #0:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: initialization error: driver error: failed to process request: unknown.

zocker-160 commented 3 years ago

Thanks for this request, sadly I have no Jetson Nano for testing, but it should be possible to make it work from the Docker side of things.

I am not sure though if:

zocker-160 commented 3 years ago

ok so I did some research and according to this the Jetson Nano does not support GPU/CUDA for hardware encoding / decoding, it rather has some own encoding hardware, which currently is not supported neither by ffmpeg nor by Handbrake.

So making this Docker work would be possible, but AFAIK you will only be able to use the CPU for the encoding.

SA7BNT commented 3 years ago

this

Im using this. Running fine https://github.com/jocover/jetson-ffmpeg

zocker-160 commented 3 years ago

@SA7BNT ah interesting, but it needs a special ffmpeg version, because it is not using the "normal" NVENC, which desktop GPUs use.

Since Handbrake does not use ffmpeg, I don't think hardware accelerated encoding will be possible without a patch for Handbrake.

SA7BNT commented 3 years ago

Ah ok thats sad. Ok then i will run this ffmpeg version instead. Much faster then CPU encoding. But will still get an eye on this git. Maybe one day there will be a patch.

zocker-160 commented 3 years ago

@SA7BNT you could try creating a feature request for Handbrake directly https://github.com/HandBrake/HandBrake

But other than that, I think using that special ffmpeg version is the best solution for you right now.

zocker-160 commented 2 years ago

closing, because I do no think that there is anything I can do here.

Handbrake would need to add support for this device in order to make it work inside docker as well.