-
Notifications
You must be signed in to change notification settings - Fork 54
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
Nvenc troubles #330
Comments
What is the decoding GPU? |
Its same, its all on the same box, testing encode/decode on the same box. |
What model? |
Quadro RTX 4000 |
That should support HEVC. Try only |
Tried that one too, still nothing. Too many combinations ends up locking up the output, and I need to reboot. |
Hi, what is the minimal broken example?
works? If so, does it with |
or as Alan proposed, use just |
So just to update this, I've been testing and was able to get things working right using the continuous build. However, I can see macro blocking, but the logs output is clean and the same signal being pushed to another machine (mac) and doing hardware decoding without any problem, only on the local host. For fun I checked the relase version and it does not have the same issue running the same comands: ./UltraGrid-continuous-x86_64.AppImage -t decklink:4 -s embedded -c libavcodec:encoder=hevc_nvenc:bitrate=20000k:subsampling=420 --audio-codec=opus:sample_rate=48000:bitrate=256k --audio-capture-format channels=16 -m 1316 239.1.2.58 -T 64 --control-port 1234 -f a:rs:150:200 -f v:rs:150:200 ./UltraGrid-1.8.3-x86_64.AppImage -d decklink:6 --param force-lavd-decoder=hevc_cuvid -r embedded 239.1.2.58 |
Continuous is using the latest FFmpeg, which added some NVENC patches, could be that. |
Current libavcodec version is still 60.22.100 so intra-refresh has been disabled since e457ab8 because the version is still not strictly greater (is equal). Using non-strict equality breaks the compilation with version 60.22.100 prior to FFmpeg commit e457ab8 (perhaps not a big deal). refer to GH-330
can you produce some working example demonstrating the problem? I've tried (with last week's last version):
And it looked OK. Of course it is just a simple example. If it needs more complex source, what about (
Well, yes and no. The relevant FFmpeg commit actually does nothing, I've misinterpreted the commit message so that it doesn't set NVENC_INFINITE_GOPLENGTH so that I've removed UG FFmpeg patch but it isn't true. As the result, intra refresh was disabled... which may be the problem for @TheSashmo if it induces network loss. Anyways, I've updated your patch to match FFmpeg changed code in 10c2809 so that NVENC produces Intra Refresh). UPDATE: This or another sample from fiesamples.com can also work as a reference (and those are significantly shorter than the movies). |
Trying to figure out Nvenc encode and decode:
Encode:
./UltraGrid-1.8.3-x86_64.AppImage -t decklink:4:4k29:UYVY -s embedded -c libavcodec:encoder=hevc_nvenc:bitrate=15000k:subsampling=420:disable_intra_refresh:delay=2 --audio-codec=opus:sample_rate=48000:bitrate=256k --audio-capture-format channels=16 -m 1316 -P 10000 192.168.99.241 --control-port 1234
or
./UltraGrid-1.8.3-x86_64.AppImage -t decklink:4 -s embedded -c libavcodec:encoder=hevc_nvenc:bitrate=15000k:disable_intra_refresh:delay=2 --audio-codec=opus:sample_rate=48000:bitrate=256k --audio-capture-format channels=16 -m 1316 -P 10000 192.168.99.241 --control-port 1234
Decode
./UltraGrid-continuous-x86_64.AppImage -d decklink:5 -r embedded --param force-lavd-decoder=hevc_cuvid 192.168.99.241 -P 10000 --control-port 12345
or
./UltraGrid-continuous-x86_64.AppImage -d decklink:5 -r embedded --param use-hw-accel,force-lavd-decoder=hevc_cuvid 192.168.99.241 -P 10000 --control-port 12345
Just gives me black screen. Either 420 or v210 its all the same. The only way I can get anything on the screen is by removing the force decoder param.
I can see with nvidia-smi that decode is using 10% but still nothing on the output, and yes my display supports the resolution. Using Quadro RTX 4000
The text was updated successfully, but these errors were encountered: