Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker compose setting for transcoder-nvidia #647

Closed
nnnlog opened this issue Oct 19, 2024 · 0 comments · Fixed by #748
Closed

docker compose setting for transcoder-nvidia #647

nnnlog opened this issue Oct 19, 2024 · 0 comments · Fixed by #748
Labels
bug Something isn't working documentation Improvements or additions to documentation
Milestone

Comments

@nnnlog
Copy link

nnnlog commented Oct 19, 2024

Kyoo's version

4.7.0

What happened?

Default setting of transcoder-nvidia in docker-compose.yaml (below) didn't work for me.

    deploy:
      resources:
        reservations:
          devices:
            - capabilities: [gpu]

In the container, I can see below error.

[AVHWDeviceContext @ 0x59162cd23d40] Cannot load libcuda.so.1
[AVHWDeviceContext @ 0x59162cd23d40] Could not dynamically load CUDA
Device creation failed: -1.
[vist#0:0/hevc @ 0x59162ccfcfc0] [dec:hevc @ 0x59162cd284c0] No device available for decoder: device type cuda needed for codec hevc.
[vist#0:0/hevc @ 0x59162ccfcfc0] [dec:hevc @ 0x59162cd284c0] Hardware device setup failed for decoder: Operation not permitted
[vost#0:0/h264_nvenc @ 0x59162ccd9300] Error initializing a simple filtergraph
Error opening output file /cache/69e347f2747a4aa88c64adc9f3932541af040352/segment-1080p-2-%d.ts.
Error opening output files: Operation not permitted

With new configuration like below, it worked for me.

    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]

It seems to specifying keys (driver and count) is essential. (https://stackoverflow.com/questions/74175742/docker-compose-cant-access-gpu-from-compose-but-can-from-run)

My Environment:

  • Docker version 27.3.1, build ce12230
  • NVIDIA Container Runtime Hook version 1.16.2
  • Host OS: Ubuntu 24.04.1 LTS x86_64
@nnnlog nnnlog added the bug Something isn't working label Oct 19, 2024
@zoriya zoriya added the documentation Improvements or additions to documentation label Jan 1, 2025
@zoriya zoriya added this to the v4.7.1 milestone Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants