neko icon indicating copy to clipboard operation
neko copied to clipboard

How can I tell if I have VAAPI working?

Open GabrielSerealia opened this issue 2 years ago • 5 comments

I'm running Neko in an LXC on Proxmox. I've got the /dev/dri mounted to LXC and the docker instance and I have the env var for VAAPI configured.

I'd like to know if there's a way I can check if the hardware encoding is working.

version: "3.4" services: neko: image: "m1k1o/neko:latest" restart: "unless-stopped" shm_size: "2gb" volumes: - ./policies.json:/usr/lib/firefox/distribution/policies.json - /dev/dri:/dev/dri ports: - "8080:8080" - "52000-52100:52000-52100/udp" privileged: true environment: NEKO_SCREEN: '1920X1080@60' NEKO_PASSWORD: XXXXXXXX NEKO_PASSWORD_ADMIN: XXXXXXXX NEKO_EPR: 52000-52100 NEKO_HWENC: VAAPI

GabrielSerealia avatar Aug 19 '22 10:08 GabrielSerealia

If you have set NEKO_HWENC=VAAPI what you have, an neko is not failing with:

PNC unable to create video pipeline error="no element \"vaapih264enc\"" module=remote

So it should be working.

Adding - /dev/dri:/dev/dri as devices should be sufficient, no privileged: true needed.

m1k1o avatar Aug 19 '22 19:08 m1k1o

Sorry are you saying the config file is correct? Or that I should change "NEKO_HWENC: VAAPI" to "NEKO_HWENC=VAAPI"? The reason I'm asking is because if I don't have - /dev/dri:/dev/dri neko still seems to launch?

GabrielSerealia avatar Aug 20 '22 11:08 GabrielSerealia

You either have them all as map with key: value or list with key=value, that is docker-compose yaml spec.

m1k1o avatar Aug 20 '22 12:08 m1k1o

Ah, that's what you mean. Thanks!

GabrielSerealia avatar Aug 20 '22 12:08 GabrielSerealia

If you have set NEKO_HWENC=VAAPI what you have, an neko is not failing with:

PNC unable to create video pipeline error="no element \"vaapih264enc\"" module=remote

So it should be working.

Adding - /dev/dri:/dev/dri as devices should be sufficient, no privileged: true needed.

So I tried removing the /dev/dri:/dev/dri line in the compose file but neko still seems to run without issue? Are you sure it would spit out that error message if hardware encoding was configured incorrectly?

GabrielSerealia avatar Sep 05 '22 08:09 GabrielSerealia