Replay Mod Forums

NVidia h264_cuvid Codec - Crashing Minecraft
    • User
    • 7 forum posts
    User27881
    #1

    May 14 17, 08:48 PM | Last edited: May 14 17, 08:53 PM

    Hello!
    I'm trying to reduce the rendering times for the reply mod on my machine by utilizing my Nvidia GPU. I've currently got a command line argument set-up as so:

    -y -f rawvideo -pix_fmt rgb24 -s %WIDTH%x%HEIGHT% -r %FPS% -i - -an -c:v h264_cuvid -preset medium -pix_fmt yuv420p "%FILENAME%.mp4"

    However when hitting render Minecraft crashses almost instantly and displays this error file:

    Spoiler: Crash File



    I simmarly tried using Intel Quick Sync as the codec with the following command line:
    -y -f rawvideo -pix_fmt rgb24 -s %WIDTH%x%HEIGHT% -r %FPS% -i - -an -c:v h264_qsv -preset medium -pix_fmt yuv420p "%FILENAME%.mp4"

    Which produced a different crash file:
    Spoiler: QuickSync Crash



    This crash does not occur if I use the default libx264 or libx265 decoders on my machine, however I would love to be able to cut my rendering time down as FFMPEG does not use all my CPU and/or GPU when rendering.
    Help would be appreciated :)

    Thank you! :)


    • Beta Tester
    • 250 forum posts
    User34
    #2

    May 14 17, 10:14 PM

    Could you post the export.log file in your .minecraft folder?


    • User
    • 7 forum posts
    User27881
    #3

    May 14 17, 11:07 PM

    The export logs are here. I didn't know that the replay mod dumped to this file. From what I can gather Nvidia is not being detected as being installed into FFmpeg, even though I've installed the CUDA SDK, odd.

    Quick Sync Video, I'm unsure why it's throwing up that error.

    Nvidia:

    Spoiler: Nvidia Codec Export Log



    Intel Quick Sync:

    Spoiler: Quick Sync Export Log


    • Developer
    • 1883 forum posts
    User10
    #4

    May 15 17, 06:49 AM

    According to https://trac.ffmpeg.org/wiki/HWAccelIntro the *_cuvid codecs only support decoding. For encoding you need to use the *_nvenc codecs.

    According to https://www.mail-archive.com/ffmpeg-devel@ffmpeg.org/msg22922.html your issue with quicksync can be caused by a variety of things. I'd suggest searching for the error yourself to make sure your problem isn't a common issue with an easy solution and then, if you can't solve it, contacting ffmpeg support directly (see https://ffmpeg.org/contact.html for possible ways).