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

Can't encode multiple stream on version 460.106.00 & 460.73.01 #4

Open
hao-kai opened this issue Oct 29, 2021 · 2 comments
Open

Can't encode multiple stream on version 460.106.00 & 460.73.01 #4

hao-kai opened this issue Oct 29, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@hao-kai
Copy link

hao-kai commented Oct 29, 2021

  • Nvidia driver version: 460.73.01
  • GPU Model: RTX 2080 Ti
  • Docker image: nvidia/cuda:11.1-cudnn8-devel-ubuntu18.04
# ./nvlax_encode -i /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.460.73.01 -o /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.460.73.01
[+] libnvidia-encode.so
[+] patched successfully

and run

ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i /tmp/BigBuckBunny.mp4 \
-vf scale_npp=480:320 -c:a copy -c:v h264_nvenc -b:v 5M /tmp/output1.mp4 \
-vf scale_npp=240:120 -c:a copy -c:v h264_nvenc -b:v 8M /tmp/output2.mp4 \
-vf scale_npp=960:540 -c:a copy -c:v h264_nvenc -b:v 4M /tmp/output3.mp4 \
-vf scale_npp=960:540 -c:a copy -c:v h264_nvenc -b:v 4M /tmp/output4.mp4  

It shows

[h264_nvenc @ 0x55ba06f470c0] OpenEncodeSessionEx failed: out of memory (10): (no details)
Error initializing output stream 3:0 -- Error while opening encoder for output stream #3:0 - maybe incorrect parameters such as bit_rate, rate, width or height

But if I use keylase/nvidia-patch, ffmpeg can transcode multiple streams.

I also tested on

  • Nvidia driver version: 460.106.00
  • GPU Model: RTX 3090
  • Docker image: nvidia/cuda:11.1-cudnn8-devel-ubuntu18.04
    But I still cannot transcode.
@illnyang
Copy link
Owner

I have addressed that in b3699ad. Let me know if it works

@illnyang illnyang added the bug Something isn't working label Oct 29, 2021
@ajnightmare
Copy link

ajnightmare commented Oct 30, 2021

- Nvidia driver version: 460.106.00
- GPU Model: RTX 2080 Ti
- Docker image: nvidia/cuda:11.1-cudnn8-devel-ubuntu18.04

My Nvidia driver version varies because when I launch a job, it might land on a different machine.

I restarted the pod and clone nvlax

#  git rev-parse HEAD
b3699ad40c4dfbb9d46c53325d63ae8bf4a94d7f

and installed it.

# ./nvlax_encode -i /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.460.106.00 -o /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.460.106.00
[+] libnvidia-encode.so
[+] patched successfully

And I ran

ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i /tmp/BigBuckBunny.mp4 \
-vf scale_npp=480:320 -c:a copy -c:v h264_nvenc -b:v 5M /tmp/output1.mp4 \
-vf scale_npp=240:120 -c:a copy -c:v h264_nvenc -b:v 8M /tmp/output2.mp4 \
-vf scale_npp=960:540 -c:a copy -c:v h264_nvenc -b:v 4M /tmp/output3.mp4 \
-vf scale_npp=960:540 -c:a copy -c:v h264_nvenc -b:v 4M /tmp/output4.mp4  
[h264_nvenc @ 0x5571a558a0c0] OpenEncodeSessionEx failed: out of memory (10): (no details)
Error initializing output stream 3:0 -- Error while opening encoder for output stream #3:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Still failed in the same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants