RandomEngy / VidCoder

A Blu-ray, DVD and video file transcoder for Windows.
http://vidcoder.net
GNU General Public License v2.0
687 stars 42 forks source link

Problems with NVEnc always crashing VidCoder #1284

Closed tisronboy55 closed 1 month ago

tisronboy55 commented 1 month ago

Problem Description

when encoding videos I have always been able to encode to whatever I have chosen to encode to. Having bought a new PC with a NVidia GeForce RX 4090 and Intel i9 Chip. Now when I try to encode using H.265 10-bit (NVEnc) or any other encode using NVEnc for any container, the encodes get as far as about 60%, then crashes. I'm attaching screens of the settings I'm using. Screenshot 2024-08-02 112115 Screenshot 2024-08-02 112150 Screenshot 2024-08-02 112240 Screenshot 2024-08-02 112305 Screenshot 2024-08-02 112405 The strange thing is, I've just run the encode for the same file from which the logfile is from, with the exact same settings, and it encoded without a hitch. This was done as a single encode and not as part of a batch encode. As a matter of interest, if I use Handbrake and use H.265 10-bit (NVEnc) or any other NVEnc, the I get the dreaded BSOD. Hope you can help, and I've sent enough info. Thanks, Ronnie

What version of VidCoder are you running?

10.14 VelopackInstaller

Encode Log

VC [11:00:03] VidCoder 10.14
VC [11:00:03] Starting job 1/1
VC [11:00:03]   Source path: C:\Users\YODAMAN\Videos\HANDBRAKE\1899\1899 S01\1899 - 1x01 - The Ship.mkv
VC [11:00:03]   Destination path: C:\Users\YODAMAN\Videos\HANDBRAKE\1899 - 1x01 - The Ship.mkv
VC [11:00:03]   Title: 1
VC [11:00:03]   Range: All
VC [11:00:03]   Preset: 1899@23
VC [11:00:03]   Picker: Custom
VC [11:00:03] Worker ready: Pipe 'VidCoderWorker.6d67ee64-cb30-48fe-bd03-ad094f6d83e7' is open
VC [11:00:03] Connecting to process 16248 on pipe VidCoderWorker.6d67ee64-cb30-48fe-bd03-ad094f6d83e7
HB 1:00:04] hb_init: starting libhb thread
[11:00:04] CPU: Intel(R) Core(TM) i9-14900KF
[11:00:04]  - logical processor count: 32
[11:00:04] Intel Quick Sync Video support: no
[11:00:04] hb_scan: path=C:\Users\YODAMAN\Videos\HANDBRAKE\1899\1899 S01\1899 - 1x01 - The Ship.mkv, title_index=1
[11:00:04] scan: decoding previews for title 1
[11:00:04] scan: audio 0x1: eac3, rate=48000Hz, bitrate=768000 English (E-AC3 Dolby Digital Plus + Dolby Atmos, 5.1 ch, 768 kbps)
HB [11:00:04] using container PAR 1:1
[11:00:04] scan: 10 previews, 1920x1080, 24.000 fps, autocrop = 132/132/6/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[11:00:04] libhb: scan thread found 1 valid title(s)
[11:00:04] Starting work at: Fri Aug 02 11:00:04 2024
[11:00:04] 1 job(s) to process
[11:00:04] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 384,
        "DRC": 0,
        "Encoder": "copy",
        "Gain": 0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Name": "English [Dolby Digital Plus Atmos 5.1]",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:eac3",
      "copy:truehd",
      "copy:dts",
      "copy:dtshd",
      "copy:mp2",
      "copy:mp3",
      "copy:flac",
      "copy:opus"
    ],
    "FallbackEncoder": "av_aac"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Part 01"
      },
      {
        "Name": "Credits"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\Users\\YODAMAN\\Videos\\HANDBRAKE\\1899 - 1x01 - The Ship.part.mkv",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 6,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 4,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 20,
        "Settings": {
          "crop-bottom": "132",
          "crop-left": "6",
          "crop-right": "0",
          "crop-top": "132",
          "height": "960",
          "width": "1920"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 2
    },
    "Title": 1,
    "Path": "C:\\Users\\YODAMAN\\Videos\\HANDBRAKE\\1899\\1899 S01\\1899 - 1x01 - The Ship.mkv",
    "HWDecode": 0
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "nvenc_h265_10bit",
    "Level": "4.0",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "auto",
    "Quality": 24,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 4
  }
}
[11:00:04] Starting Task: Encoding Pass
[11:00:04] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP2, MP3, FLAC, Opus
[11:00:04] Auto Passthru: fallback is AAC (avcodec)
[11:00:04] Auto Passthru: using E-AC3 Passthru for track 1
[11:00:04] job configuration:
[11:00:04]  * source
[11:00:04]    + C:\Users\YODAMAN\Videos\HANDBRAKE\1899\1899 S01\1899 - 1x01 - The Ship.mkv
[11:00:04]    + title 1, chapter(s) 1 to 2
[11:00:04]    + container: matroska,webm
[11:00:04]    + data rate: 2591 kbps
[11:00:04]  * destination
[11:00:04]    + C:\Users\YODAMAN\Videos\HANDBRAKE\1899 - 1x01 - The Ship.part.mkv
[11:00:04]    + container: Matroska (libavformat)
[11:00:04]      + align initial A/V stream timestamps
[11:00:04]      + chapter markers
[11:00:04]  * video track
[11:00:04]    + decoder: h264 8-bit (yuv420p)
[11:00:04]    + filters
[11:00:04]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[11:00:04]      + Decomb (mode=39)
[11:00:04]      + Crop and Scale (width=1920:height=960:crop-top=132:crop-bottom=132:crop-left=6:crop-right=0)
[11:00:04]        + source: 1920 * 1080, crop (132/132/6/0): 1914 * 816, scale: 1920 * 960
[11:00:04]      + Format (format=p010le)
[11:00:04]    + Output geometry
[11:00:04]      + storage dimensions: 1920 x 960
[11:00:04]      + pixel aspect ratio: 1 : 1
[11:00:04]      + display dimensions: 1920 x 960
[11:00:04]    + encoder: H.265 10-bit (NVEnc)
[11:00:04]      + preset:  fast
[11:00:04]      + profile: auto
[11:00:04]      + level:   4.0
[11:00:04]      + quality: 24.00 (CQ)
[11:00:04]      + color profile: 1-1-1
[11:00:04]      + color range: tv
[11:00:04]      + chroma location: left
[11:00:04]  * audio track 1
[11:00:04]    + name: English [Dolby Digital Plus Atmos 5.1]
[11:00:04]    + decoder: English (E-AC3 Dolby Digital Plus + Dolby Atmos, 5.1 ch, 768 kbps) (track 1, id 0x1)
[11:00:04]      + bitrate: 768 kbps, samplerate: 48000 Hz
[11:00:04]    + E-AC3 Passthru
[11:00:04] sync: expecting 84048 video frames
[11:00:04] encavcodecInit: H.265 (Nvidia NVENC)
[11:00:04] encavcodec: encoding at rc=vbr, 24.00
[11:00:04] encavcodec: encoding with stored aspect 1/1
HB [11:00:04] sync: first pts video is 0
[11:00:04] sync: "Part 01" (1) at frame 1 time 0
[11:00:04] sync: first pts audio 0x1 is 0
VC E [11:01:31] Operation 'Ping' failed. Worker process exited unexpectedly with code -1073741819. This may be due to a HandBrake engine crash.
VC E [11:01:31] Encode failed with code ErrorHandBrakeProcessCrashed
VC [11:01:31] Job completed (Elapsed Time: 1m 28s)
RandomEngy commented 1 month ago

Looks like a failure in the HandBrake core, then. Since you can reproduce the issue in HandBrake, you can report to them, and if they fix it then VidCoder will pick up the fix.

tisronboy55 commented 1 month ago

Hi David, Thanks for getting back to me. I contacted Handbrake earlier today, and before your reply, and they have said that it is an inherent fault with the Intel i9 = 14900 cpu. This is the reply I received from Handbrake: "HandBrake is fully compatible with NVEnc and there are thousands of users with the same hardware as you using it without issue. *Looks like it might be yet another case of a failing Intel CPU. *If your not already aware, you should read up on the news and you'll see the drama that is unfolding. Intel are releasing various micro-code updates and Motherboard vendors are providing BIOS updates to mitigate the issue, however, if the CPU is already damaged, it'll have to be RMA'd." So as you can see the problem has nothing to do with any program or hardware (other than Intel CPU) and Handbrakes answer may be of help to any other of your user having the same problem as I have. Consider the issue closed now. Once again thank you. Best regards, Ronnie

On Sat, Aug 3, 2024 at 8:14 PM David Rickard @.***> wrote:

Looks like a failure in the HandBrake core, then. Since you can reproduce the issue in HandBrake, you can report to them, and if they fix it then VidCoder will pick up the fix.

— Reply to this email directly, view it on GitHub https://github.com/RandomEngy/VidCoder/issues/1284#issuecomment-2267107261, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKIZX3EL2V4TE7A67DEGQILZPUT25AVCNFSM6AAAAABL4JRRWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGEYDOMRWGE . You are receiving this because you authored the thread.Message ID: @.***>