-
Notifications
You must be signed in to change notification settings - Fork 108
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
HEVC Nvenc low conversion FPS #88
Comments
Does anyone have a GPU from RTX family that can share their conversion FPS for NVIDIA H.265 10bit CBR with us? |
I can't see slow down in RTX2070...
Encode Speed (fps)
|
Hey, thanks for the reply. Also what ver of staxrip and NVenc are you using? My specs are: i7 7700k 4.2GHz, 16GB DDR4 3200, Zotac RTX 2080Ti Amp, Win 10 x64, Nvidia Driver 416.34, Staxrip 1.7 NVenc 4.22 Thanks. |
I've uploaded the file at the link below. sample_movie_1080p.mpg (224MB) I'm using NVEncC 4.23 x64 directly from command line, not via StaxRip. Environment Info of RTX2070
sample log (VBRQ HEVC B frames = 262.22fps)
|
Thanks for the video: D:\Test>NVEncC64.exe --check-environment D:\Test>NVEncC64.exe -i sample_movie_1080p.mpg -o out.mp4 -c hevc -b 3 --lookahead 32 --aq --vbrhq 0 --vbr-quality 26 --log log.txtout.mp4NVEncC (x64) 4.23 (r939) by rigaya, Nov 8 2018 19:53:29 (VC 1900/Win/avx2) encoded 5204 frames, 284.11 fps, 8489.34 kbps, 175.73 MB This seems consistent with your result and FPSNow here are the settings I use to get 180FPS (it actually went lower 130FPS). What am i doing wrong for CBR to get such low FPS 170-180? I prefer the CBR: --cbr 2200 --codec h265 --preset quality --output-depth 10 out.mkvInput #0, matroska,webm, from 'Outlander.S04E01.America.The.Beautiful.1080p.NF.WEB.DD5.1.x264-NTb.mkv': encoded 89858 frames, 137.31 fps, 1868.78 kbps, 834.93 MB |
I've tested with your commandline, I had around 160fps. By removing "--preset quality", I think you'll get over 300fps. It seems like the driver is using more "heavy" setting on Turing (RTX20**) when "--preset quality" is used. To have comparable preformance with Pascal (GTX10**), please consider removing "--preset quality". |
Now here is an interesting experiment: I installed both my GPUs in my machine: 1-RTX 2080Ti (main) And I encoded the same file with the same settings on both cards using staxrip. I disabled the RTX2080TI and encoded with the 1050Ti. Then I disabled the 1050Ti and encoded with the 2080TI. Below are the surprising results: Using 1050Ti: NVEncC (x64) 4.23 (r939) by rigaya, Nov 8 2018 19:53:29 (VC 1900/Win/avx2) Start: 8:28:29 AM General Video Using RTX 2080Ti: NVEncC (x64) 4.23 (r939) by rigaya, Nov 8 2018 19:53:29 (VC 1900/Win/avx2) Start: 7:27:31 AM General Video As it can be seen the 2050Ti is encoding the same file with Average FPS of: Where the 2080Ti is encoding with Average FPS of: Do you know what might be the results of 2080Ti having lower conversion FPS? I do tons of file encodings everyday and i am getting to a point to return the RTX2080Ti and go back to 1080Ti where i was getting 450-460 FPS for converting x264 to x265 10bit. Please please help!!!! |
Our comments might have crossed, I'll write again. I've tested with your commandline, I had around 160fps. By removing "--preset quality", I think you'll get over 300fps. It seems like the driver is using more "heavy" setting on Turing (RTX20**) when "--preset quality" is used. To have comparable preformance with Pascal (GTX10**), please consider removing "--preset quality". |
Thanks removing "--preset quality" helped a lot: Here are the results: Using 1050Ti: C:\Users\PARHAM\Desktop\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cbr 2475 --codec h265 --output-depth 10 -i D:\Downloads\American.Horror..._temp\American.Horror.Story.S08E09.Fire.and.Reign.1080p.AMZN.WEBRip.DD5.1.x264-NTb_new.avs -o D:\Downloads\American.Horror..._temp\American.Horror.Story.S08E09.Fire.and.Reign.1080p.AMZN.WEBRip.DD5.1.x264-NTb_new_out.h265 NVEncC (x64) 4.23 (r939) by rigaya, Nov 8 2018 19:53:29 (VC 1900/Win/avx2) Start: 8:56:10 AM General Video Using RTX 2080Ti: C:\Users\PARHAM\Desktop\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cbr 2475 --codec h265 --output-depth 10 -i D:\Downloads\American.Horror..._temp\American.Horror.Story.S08E09.Fire.and.Reign.1080p.AMZN.WEBRip.DD5.1.x264-NTb_new.avs -o D:\Downloads\American.Horror..._temp\American.Horror.Story.S08E09.Fire.and.Reign.1080p.AMZN.WEBRip.DD5.1.x264-NTb_new_out.h265 NVEncC (x64) 4.23 (r939) by rigaya, Nov 8 2018 19:53:29 (VC 1900/Win/avx2) Start: 8:52:40 AM General Video I really appreciate your help!!! It is still surprising that the results from 1050Ti and 2080Ti are very close isn't it? |
It might be that the Video Engine which is used in encoding is mostly the same, regardless of the spec of the GPU. But yeah, we expect more performance on RTX2080Ti...(8704 cores!) |
Update from NVIDIA. https://developer.nvidia.com/video-encode-decode-gpu-support-matrix Look like NVENC encoding speed is TWICE as fast as PASCAL but NEW SDK is required. 1* The video encoder in Turing GPUs has substantially improved quality and performance compared with Pascal. The overall encoding capacity of one NVENC in Turing is comparable to two NVENC’s in Pascal. ** The Video Codec SDK, which exposes new encoder improvements and features of Turing will be released soon. Until then, users can continue to use Video SDK 8.2 on all GPUs. |
Hey, So i guess for now we just have to wait and wait for an update and a new release on the Video Codec SDK from NVIDIA. Appreciate your update. |
Nvidia Video Codec SDK 9.0 coming soon |
Thanks for the update!!! |
I basically have the same situation as topic starter, with video encoding performance much worse on RTX 2080 ti than on my old gtx 1080. I tried your latest release which claims to Support NVENC SDK, with same results =. |
Have you tried changing (or removing) the "--preset" option? |
Hey, so I actually did some more tests with and without the "--preset quality" option and it makes a big difference as you also mentioned in the previous posts. I did the test on 2 PCs (one with 2080TI and the other one with 1050Ti GPU). See results below: 1- Test 1 (--preset quality removed): C:\Users\USER\Desktop\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cbr 2250 --codec h265 --output-depth 10 -i D:\Downloads\Black.Monday.S0..._temp\Black.Monday.S01E09.2.1080p.AMZN.WEBRip.DD5.1.x264-monkee_new.avs -o D:\Downloads\Black.Monday.S0..._temp\Black.Monday.S01E09.2.1080p.AMZN.WEBRip.DD5.1.x264-monkee_new_out.h265 NVEncC (x64) 4.34 (r1038) by rigaya, Mar 21 2019 00:01:48 (VC 1900/Win/avx2) Start: 8:16:20 AM
|
@rigaya Just got myself a Turing GPU so I am testing some of these out on my 4k rips. Are you able to tell me what the "--preset quality" does? Is it comparable to slow or medium as defined in the NVENC SDK? I couldn't find mention of quality and performance in the SDK docs so I don't understand what it is actually doing. Also, are there other, undocumented, presets? Is slow or medium an option? My testing shows similar results as to what @parhamsan shows above. the quality preset roughly drops fps by 50%. I can't tell if the quality is actually affected yet, I might need to move to 1080p rips to check that. But if you can just tell us what is actually happening in the background, that might make it easier for me to decide if I should use it or not. Thanks in advance! |
"--preset" options is mapped to the presetGUID which is documented on "3.3 ENCODER PRESET CONFIGURATIONS" in NVENC SDK docs. I assume that some of the options are being overridden internally by setting this preset. When lossless encoding is off,
You might need to check for ssim if you actually want to check the difference in quality. |
Thanks, @rigaya! This is great! The SDK doc seems to imply that the actual preset options are define per card/chipset and doesn't document all the preset options: "3.3.2 Selecting encoder preset configuration" Is there an nvencc command to show the supported presets? Just looking at the links you sent, I see mention of a BD preset? And from doing some reading I see that there is a Single Pass and Two-Pass mode offered for the HQ preset by the NVENC API. Do you know which the quality preset is using? I don't see another flag to define single or dual. Is that defined by the encoding mode? vbr, vbrhq, etc? Sorry for the all the questions. But really do appreciate your time! |
Is there an nvencc command to show the supported presets? Presets exposed to command lines in NVEncC are on the table below. The "--bluray" option in NVEncC configures each options such as slices, refs, gop, etc... rather than using the BD preset.
Single pass / 2 pass mode depends on rate control settings as you have mentioned. 2pass will be activated by using "--cbrhq/--vbrhq", which was formerly called 2pass in the NVENC API. |
I wanted to close the loop on this... My attempts to find ssim tool led me to the VMAF project run by Netflix (makes sense): I ran two encodes of a few different files one with quality preset and one with out, and while the speeds were drastically different in encoding, the VMAF score that the files received were within 3-4 decimal places of each other (statistically the same). I am proceeding without the quality preset for now until I get some evidence or data that pushes me the other way. If someone has other information or a different result, I would love to know. I am using VBRHQ as my mode, and didn't test any other, so that could play a role in the result, but for me, I am good. |
it seems that if use "--cu-max 32 --cu-min 32 " the speed will boost even with the quality preset. Will it really make impact to the image quility,will someone want to do some test? |
https://github.com/staxrip/staxrip/releases |
ffmsindex.zip |
Hey, I am having low FPS when using an RTX2080Ti for the Nvidia H.265 10bit conversion.
Here is my situation:
I used to have a GTX 1080Ti and it worked perfectly with Staxrip 1.7 and i was getting around 430-440 FPS when converting a 1080p file x264 to 10bit x265. I sold my GPU and for a while i was using a GTX 1050Ti. For the 1050Ti 4GB i was getting around 250-270 FPS which was the FPS I suspected to get.
Recently I have installed a RTX 2080Ti and with the 2080Ti i am getting 170-180 FPS which is very low considering RTX2080Ti has more CUDA cores and has the same 11GB memory (well GDDR5x vs GDDR6). The only thing that have changed from 1080Ti to 2080Ti is the Nvidia driver that i have used and the version of NVenc (latest one i am using is 4.22). Other system parameters are intel 7700K cpu and 16GB 3200Mhz which have not changed.
I have tried using the AVSMeter i am getting an average of 430FPS encoding the same mkv video file.
I was wondering if anyone has the same issue.
Thanks.
The text was updated successfully, but these errors were encountered: