hama3254 / Crunchyroll-Downloader-v3.0

Downloader for Crunchyroll
834 stars 110 forks source link

nvenc_hevc crash problem #664

Closed gosunuel closed 1 year ago

gosunuel commented 1 year ago

Describe the bug When i try download with hevc_nvenc i always have crash error

image

In version 3.11.3 work fine but i have a lot of problem with the select resolution problem

Where does the issue happen?

Screenshots image

Additional context Add any other context about the problem here.

rcyclope commented 1 year ago

i have the same pb! av1_nvenc too

13/01/2023 22:56:43   Duration: N/A, bitrate: N/A
13/01/2023 22:56:43   Stream #1:0: Subtitle: ass
13/01/2023 22:56:43 Stream mapping:
13/01/2023 22:56:43   Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_nvenc))
13/01/2023 22:56:43   Stream #0:1 -> #0:1 (copy)
13/01/2023 22:56:43   Stream #1:0 -> #0:2 (copy)
13/01/2023 22:56:43 Press [q] to stop, [?] for help
13/01/2023 22:56:43 [hevc_nvenc @ 000001fdde180900] B frames as references are not supported
13/01/2023 22:56:43 [hevc_nvenc @ 000001fdde180900] No capable devices found
13/01/2023 22:56:43 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
13/01/2023 22:56:43 Conversion failed!

Revenger s01 E01 Once Upon a Time in Nagasaki.log

i haven't problem with h264_nvenc

gosunuel commented 1 year ago

With av1 codec i have the same error

hama3254 commented 1 year ago

for @ManuelDiazIsaza please check the log, i can not guess your issue since i have no data of your hardware.

For @rcyclope would the error [hevc_nvenc @ 000001fdde180900] B frames as references are not supported mean you don't have any RTX card but maybe something older. This lead to an issue since i am able to run more since according to the Wikipedia list of GPUs and there hardware encoder my GA102 can handle B Frames while the TU117 aka GTX 1650 an lower can not. The exact hardware data would help with finding a solution, you can find the codename of your GPU with GPU-Z grafik

if for both of you In version 3.11.3 work fine is true than it could be ffmpeg related and you could try using the ffmpeg.exe from the v3.11 inside the v3.13.1. This will make libsvtav1, av1_nvenc and av1_qsv to crash every download.

gosunuel commented 1 year ago

@hama3254 i put the ffmpeeg of 3.11.3 in 3.13.1 and work fine now, thanks

hama3254 commented 1 year ago

the latest v3.14 is back to the old ffmpeg version, the new av1 options will also display a warning that they won't work with the included ffmpeg version. This is the best i can do for now.