VoukoderPro 1.2.3 crashes when testing scene

  • If this is the wrong place for this post, please let me know and I can move or re-create in the right place.

    I'm trying to switch to VoukoderPro 1.2.3 from Voukoder Classic 13.4.1. I've successfully used NVIDIA NVENC HEVC hardware encoding with Classic (multiple versions) without issue for over a year now, to encode HDR videos.

    I thought I had my scene designed correctly, but when I do a Performance Test, the test fails, and VoukoderPro crashes.

    The end of logfile 01-voukoderpro-1.2.3-scene-test-video-nvidia-nvenc-hevc-cuda-upload-filter-encode-cuda-format-logfile.txt, attached, has these lines:

    Code
    2024-05-27 00:01:38 (trace)	[FFmpeg:0] Changing video frame properties on the fly is not supported by all filters.
    2024-05-27 00:01:38 (trace)	[FFmpeg:0] filter context - w: 3840 h: 2160 fmt: 0 csp: unknown range: unknown, incoming frame - w: 3840 h: 2160 fmt: 0 csp: bt2020nc range: tv pts_time: 0
    2024-05-27 00:01:38 (trace)	[FFmpeg:0] Assertion ((src_linesize) >= 0 ? (src_linesize) : (-(src_linesize))) >= bytewidth failed at libavutil/imgutils.c:350

    I tried 2 more iterations of the scene file to try to get it working.

    Log file 03-voukoderpro-1.2.3-scene-test-video-nvidia-nvenc-hevc-encode-yuv420p-format-logfile.txt, attached, ends with the same 3 lines as above.

    Log file 02-voukoderpro-1.2.3-scene-test-video-nvidia-nvenc-hevc-cuda-upload-filter-encode-yuv420p-format-logfile.txt, attached, ends differently:

    Code
    2024-05-27 01:03:10 (trace)	[FFmpeg:0] auto-inserting filter 'auto_scale_0' between the filter 'Parsed_hwupload_cuda_1' and the filter 'Parsed_format_2'
    2024-05-27 01:03:10 (trace)	[FFmpeg:0] Impossible to convert between the formats supported by the filter 'Parsed_hwupload_cuda_1' and the filter 'auto_scale_0'
    2024-05-27 01:03:10 (error)	[InputNode.cpp:132] Unable to configure filter graph.
    2024-05-27 01:03:10 (trace)	[FFmpeg:0] Calling cu->cuCtxDestroy(hwctx->p.cuda_ctx)
    2024-05-27 01:03:10 (error)	[Router.cpp:93] Init phase of a748fd7a-fb32-4c25-baa6-f12f351b1173 failed!
    2024-05-27 01:03:10 (error)	[Router.cpp:129] Initialization failed: -11

    I reviewed forum threads Unable to start VoukoderPro: FFmpeg error. and NVENC resolution scaling (scale_cuda) and wasn't able to find a way around the crash. I used scene2.zip Joe24 provided, from forum thread "Unable to start VoukoderPro ffmpeg error", as the base of my scene design.

    What am I missing?

    Attached are the 3 logfiles, the 3 scene files (in voukoderpro-1.2.3-scene-test-video-nvidia-nvenc-hevc-scenes.zip, attached), and 2 screen shots of Designer Performance Test settings used for all 3 scene tests.

    The logs files and scene files have the same names, with different file extensions.

    I'm using Windows 11 Pro and Nvidia 555.85 drivers.

    Thanks for any help or insight!

  • Vouk 27. Mai 2024 um 10:34

    Hat das Thema freigeschaltet.
    • Offizieller Beitrag

    Thanks for the input. I will try to reproduce it over the weekend and see if i can't provide a quick fix.

    FYI: If you set the encoder to use a "cuda"-pixel format you first need to upload the frame from the cpu to the gpu memory using the upload filter. But that only makes sense if you to use more or less complex filter chains on the gpu (and not on the cpu). For a standard GPU accelerated workflow you don't need this.