VidCoder icon indicating copy to clipboard operation
VidCoder copied to clipboard

Error convert *.mkv

Open immerzu opened this issue 4 months ago • 1 comments

Problem Description

An error is generated when I try to convert a *.mkv file.

What version of VidCoder are you running?

Beta 12.7 Portable

Encode Log

VC [11:56:26] VidCoder Beta 12.7
VC [11:56:32] Worker ready: Pipe 'VidCoderWorker.da79f263-7603-4271-a199-490778c70a3b' is open
VC [11:56:32] Connecting to process 19468 on pipe VidCoderWorker.da79f263-7603-4271-a199-490778c70a3b
HB [11:56:32] CPU: AMD Ryzen 9 7945HX with Radeon Graphics
[11:56:32]  - logical processor count: 32
[11:56:32] Intel Quick Sync Video support: no
[11:56:32] hb_scan: path=E:\Downloads\!rar\loller.mkv, title_index=0
[11:56:32] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[11:56:32] Probing 1 unknown stream
HB [11:56:33] hb_ts_stream_decode - eof
[11:56:33] hb_ts_stream_decode - eof
[11:56:33] Found the following PIDS
[11:56:33]     Video PIDS :
[11:56:33]       0x100 type H.264 (0x1b) (PCR)
[11:56:33]     Audio PIDS :
[11:56:33]       0x101 type AAC (0xf)
[11:56:33]     Subtitle PIDS :
[11:56:33]     Other PIDS :
[11:56:33]       0x102 type Unknown (0x15)
[11:56:33] stream id 0x101 (type 0xf substream 0x0) audio 0x101
[11:56:33] scan: decoding previews for title 1
[11:56:33] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[11:56:33] Probing 1 unknown stream
HB [11:56:33] hb_ts_stream_decode - eof
[11:56:33] hb_ts_stream_decode - eof
[11:56:33] scan: audio 0x101: aac, rate=48000Hz, bitrate=16500 Unknown (AAC LC, 2.0 ch, 16 kbps)
HB [11:56:33] stream: 181 good frames, 0 errors (0%)
[11:56:33] using bitstream PAR 1:1
[11:56:33] scan: 10 previews, 1280x640, 90000.000 fps, autocrop = 0/0/0/0, aspect 2.00:1, PAR 1:1, color profile: 1-1-1, chroma location: left
[11:56:33] libhb: scan thread found 1 valid title(s)
VC [11:56:35] Starting queue
VC [11:56:35] Starting job 1/1
VC [11:56:35]   Source path: E:\Downloads\!rar\loller.mkv
VC [11:56:35]   Destination path: E:\Downloads\!rar\loller.mp4
VC [11:56:35]   Title: 1
VC [11:56:35]   Range: All
VC [11:56:35]   Preset: 30CQ-H.265-besser
VC [11:56:35]   Picker: Benutzerdefiniert
VC [11:56:35] Starting encode: E:\Downloads\!rar\loller.mp4
VC [11:56:35] Worker ready: Pipe 'VidCoderWorker.1b60aae4-b0b9-4fcd-b99a-cd5af9a5b974' is open
VC [11:56:35] Connecting to process 17296 on pipe VidCoderWorker.1b60aae4-b0b9-4fcd-b99a-cd5af9a5b974
HB [11:56:35] CPU: AMD Ryzen 9 7945HX with Radeon Graphics
[11:56:35]  - logical processor count: 32
[11:56:35] Intel Quick Sync Video support: no
[11:56:35] hb_scan: path=E:\Downloads\!rar\loller.mkv, title_index=1
[11:56:35] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[11:56:35] Probing 1 unknown stream
HB [11:56:35] hb_ts_stream_decode - eof
[11:56:35] hb_ts_stream_decode - eof
[11:56:35] Found the following PIDS
[11:56:35]     Video PIDS :
[11:56:35]       0x100 type H.264 (0x1b) (PCR)
[11:56:35]     Audio PIDS :
[11:56:35]       0x101 type AAC (0xf)
[11:56:35]     Subtitle PIDS :
[11:56:35]     Other PIDS :
[11:56:35]       0x102 type Unknown (0x15)
[11:56:35] stream id 0x101 (type 0xf substream 0x0) audio 0x101
[11:56:35] scan: decoding previews for title 1
[11:56:35] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[11:56:35] Probing 1 unknown stream
HB [11:56:36] hb_ts_stream_decode - eof
[11:56:36] hb_ts_stream_decode - eof
[11:56:36] scan: audio 0x101: aac, rate=48000Hz, bitrate=16500 Unknown (AAC LC, 2.0 ch, 16 kbps)
HB [11:56:36] stream: 181 good frames, 0 errors (0%)
[11:56:36] using bitstream PAR 1:1
[11:56:36] scan: 10 previews, 1280x640, 90000.000 fps, autocrop = 0/0/0/0, aspect 2.00:1, PAR 1:1, color profile: 1-1-1, chroma location: left
[11:56:36] libhb: scan thread found 1 valid title(s)
HB [11:56:36] Starting work at: Thu Sep 18 11:56:36 2025
[11:56:36] 1 job(s) to process
[11:56:36] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0,
        "Encoder": "copy:aac",
        "Gain": 0,
        "Mixdown": 0,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:eac3",
      "copy:truehd",
      "copy:dts",
      "copy:dtshd",
      "copy:mp2",
      "copy:mp3",
      "copy:opus",
      "copy:vorbis",
      "copy:flac",
      "copy:alac"
    ]
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "E:\\Downloads\\!rar\\loller.part.mp4",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mp4"
  },
  "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": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "640",
          "width": "1280"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 0,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "E:\\Downloads\\!rar\\loller.mkv",
    "HWDecode": 0,
    "KeepDuplicateTitles": false
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "nvenc_h265",
    "Level": "auto",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "ref=5:bframes=5",
    "Preset": "slower",
    "Profile": "main",
    "Quality": 30,
    "HardwareDecode": 4
  }
}
[11:56:36] Starting Task: Encoding Pass
[11:56:36] work: skipping crop/scale filter
[11:56:36] work: only 1 chapter, disabling chapter markers
[11:56:36] job configuration:
[11:56:36]  * source
[11:56:36]    + E:\Downloads\!rar\loller.mkv
[11:56:36]    + title 1, chapter(s) 1 to 1
[11:56:36]  * destination
[11:56:36]    + E:\Downloads\!rar\loller.part.mp4
[11:56:36]    + container: MPEG-4 (libavformat)
[11:56:36]      + align initial A/V stream timestamps
[11:56:36]  * video track
[11:56:36]    + decoder: h264 8-bit (yuv420p)
[11:56:36]      + bitrate 200 kbps
[11:56:36]    + filters
[11:56:36]      + 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:56:36]      + Decomb (mode=39)
[11:56:36]    + Output geometry
[11:56:36]      + storage dimensions: 1280 x 640
[11:56:36]      + pixel aspect ratio: 1 : 1
[11:56:36]      + display dimensions: 1280 x 640
[11:56:36]    + encoder: H.265 (NVEnc)
[11:56:36]      + preset:  slower
[11:56:36]      + options: ref=5:bframes=5
[11:56:36]      + profile: main
[11:56:36]      + level:   auto
[11:56:36]      + quality: 30.00 (CQ)
[11:56:36]      + color profile: 1-1-1
[11:56:36]      + color range: tv
[11:56:36]      + chroma location: left
[11:56:36]  * audio track 1
[11:56:36]    + decoder: Unknown (AAC LC, 2.0 ch, 16 kbps) (track 1, id 0x101)
[11:56:36]      + bitrate: 16 kbps, samplerate: 48000 Hz
[11:56:36]    + AAC Passthru
[11:56:36] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[11:56:36] Probing 1 unknown stream
HB [11:56:36] hb_ts_stream_decode - eof
[11:56:36] hb_ts_stream_decode - eof
[11:56:36] sync: expecting 286109424 video frames
[11:56:36] encavcodecInit: H.265 (Nvidia NVENC)
[11:56:36] encavcodec: truncating framerate 90000 / 1
[11:56:36] encavcodec: encoding at rc=vbr, 30.00
[11:56:36] encavcodec: encoding with stored aspect 1/1
[hevc_nvenc @ 000002929a78d080] The encoder timebase is not set.
[11:56:36] encavcodecInit: avcodec_open failed
HB E Failure to initialise thread 'FFMPEG encoder (libavcodec)'
HB [11:56:36] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[11:56:36] aac-decoder done: 0 frames, 0 decoder errors
[11:56:36] h264-decoder done: 0 frames, 0 decoder errors
[11:56:36] sync: got 0 frames, 286109424 expected
HB [11:56:37] Finished work at: Thu Sep 18 11:56:37 2025
[11:56:37] libhb: work result = 3
VC E [11:56:37] Encode failed with code ErrorInit
VC [11:56:37] Job completed (Elapsed Time: 2s)
VC [11:56:37] Job completed: E:\Downloads\!rar\loller.mp4
VC [11:56:37] Queue completed
VC [11:56:37]

immerzu avatar Sep 18 '25 10:09 immerzu

Try it with HandBrake. VidCoder uses HandBrake for the core encoding engine, so if the issue reproduces there it's an issue with their code and you can ask them for help. This looks like an issue with the NVEnc setup, so it's likely not something I can fix on the VidCoder side.

Equivalent versions: VidCoder Stable ↔ HandBrake Stable VidCoder Beta ↔ HandBrake Snapshots

RandomEngy avatar Sep 22 '25 05:09 RandomEngy