Skip to content

Encodes suddenly started failing using stable settings that haven't changed in months (years?) #1109

@rkriese

Description

@rkriese

Problem Description

Video files downloaded using Streamfab scan and queue normally. As each file encode begins, it fails within approx 6 seconds.

What version of VidCoder are you running?

8.21 SquirrelInstaller

Encode Log

# VidCoder 8.21
# Starting job 1/2
#   Source path: W:\features\[New]\Possession (1981).mp4
#   Destination path: W:\features\[HEVC]\Possession (1981).mkv
#   Title: 1
#   Range: All
#   Preset: Kriese HEVC
# Worker ready: Pipe 'VidCoderWorker.9148a7ae-de37-4ca4-bd4e-aebe59838d7c' is open
# Connecting to process 1188 on pipe VidCoderWorker.9148a7ae-de37-4ca4-bd4e-aebe59838d7c
[19:13:43] CPU: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
[19:13:43]  - Intel microarchitecture Kaby Lake
[19:13:43]  - logical processor count: 8
[19:13:43] Intel Quick Sync Video support: yes, gpu list: 0
[19:13:43] Intel Quick Sync Video integrated adapter with index 0
[19:13:43] Impl mfxhw64 library path: C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_de4656412592a0a5\libmfxhw64.dll
[19:13:43]  - Intel Media SDK hardware: API 1.33 (minimum: 1.3)
[19:13:43]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes)
[19:13:43]  - H.264 encoder: yes
[19:13:43]     - preferred implementation: hardware (1) via D3D11
[19:13:43]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[19:13:43]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[19:13:43]     - preferred implementation: hardware (1) via D3D11
[19:13:43]     - capabilities (hardware):  bpyramid icq vsinfo masteringinfo cllinfo opt1
[19:13:43]  - AV1 encoder: no
[19:13:43] hb_scan: path=W:\features\[New]\Possession (1981).mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image W:\features\[New]\Possession (1981).mp4
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
[19:13:43] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[19:13:43] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'W:\features\[New]\Possession (1981).mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    title           : Possession
    date            : 1983
    encoder         : Lavf58.76.100
    description     : Professional spy Mark returns to his West Berlin home to find his wife Anna insistent on a divorce. As Annas frenzied behavior becomes ever more alarming, Mark discovers a truth far more sinister than his wildest suspicions.
    show            : Possession
  Duration: 02:04:16.73, start: 0.000000, bitrate: 9098 kb/s
  Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 8898 kb/s, 24 fps, 24 tbr, 12288 tbn (default)
    Metadata:
      handler_name    : USP Video Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x3](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      handler_name    : USP Sound Handler
      vendor_id       : [0][0][0][0]
      title           : English
  Stream #0:2[0x4](eng): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s (default)
    Metadata:
      handler_name    : SubtitleHandler
      title           : English [CC]
  Stream #0:3[0x0]: Video: png, rgb24(pc), 1080x608 [SAR 3780:3780 DAR 135:76], 90k tbr, 90k tbn (attached pic)
[19:13:43] scan: decoding previews for title 1
[19:13:43] scan: audio 0x1: aac, rate=48000Hz, bitrate=192000 English (AAC LC) (2.0 ch) (192 kbps)
[19:13:45] scan: 10 previews, 1920x1080, 24.000 fps, autocrop = 0/0/60/60, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[19:13:45] scan: supported video decoders: avcodec qsv
[19:13:45] libhb: scan thread found 1 valid title(s)
[19:13:45] Starting work at: Sat Jan 21 19:13:45 2023
[19:13:45] 1 job(s) to process
[19:13:45] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 384,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "English ",
        "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"
    ]
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "W:\\features\\[HEVC]\\Possession (1981).part.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "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": 7,
        "Settings": {
          "mode": "1"
        }
      },
      {
        "ID": 14,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "60",
          "crop-right": "60",
          "crop-top": "0",
          "height": "1080",
          "width": "1800"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {
    "Name": "Possession",
    "Description": "Professional spy Mark returns to his West Berlin home to find his wife Anna insistent on a divorce. As Annas frenzied behavior becomes ever more alarming, Mark discovers a truth far more sinister than his wildest suspicions.",
    "ReleaseDate": "1983"
  },
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "W:\\features\\[New]\\Possession (1981).mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": "qsv_h265",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "main",
    "Quality": 21.0,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[19:13:45] qsv: integrated qsv adapter with index 0 has been selected
[19:13:45] Skipping subtitle scan.  No suitable subtitle tracks.
[19:13:45] Starting Task: Encoding Pass
[19:13:45] work: sanitizing track 1 mixdown 5.1 Channels to Stereo
[19:13:45] work: track 1, dithering not supported by codec
[19:13:45] work: only 1 chapter, disabling chapter markers
[19:13:45] job configuration:
[19:13:45]  * source
[19:13:45]    + W:\features\[New]\Possession (1981).mp4
[19:13:45]    + title 1, chapter(s) 1 to 1
[19:13:45]    + container: mov,mp4,m4a,3gp,3g2,mj2
[19:13:45]    + data rate: 9098 kbps
[19:13:45]  * destination
[19:13:45]    + W:\features\[HEVC]\Possession (1981).part.mkv
[19:13:45]    + container: Matroska (libavformat)
[19:13:45]  * video track
[19:13:45]    + decoder: hevc 8-bit (yuv420p)
[19:13:45]      + bitrate 8898 kbps
[19:13:45]    + filters
[19:13:45]      + 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)
[19:13:45]      + Decomb (mode=39)
[19:13:45]      + Framerate Shaper (mode=1)
[19:13:45]        + frame rate: 24.000 fps -> constant 24.000 fps
[19:13:45]      + Crop and Scale (width=1800:height=1080:crop-top=0:crop-bottom=0:crop-left=60:crop-right=60)
[19:13:45]        + source: 1920 * 1080, crop (0/0/60/60): 1800 * 1080, scale: 1800 * 1080
[19:13:45]      + Format (format=nv12)
[19:13:45]    + Output geometry
[19:13:45]      + storage dimensions: 1800 x 1080
[19:13:45]      + pixel aspect ratio: 1 : 1
[19:13:45]      + display dimensions: 1800 x 1080
[19:13:45]    + encoder: H.265 (Intel Media SDK)
[19:13:45]      + preset:  balanced
[19:13:45]      + profile: main
[19:13:45]      + level:   4.0
[19:13:45]      + quality: 21.00 (ICQ)
[19:13:45]      + color profile: 1-1-1
[19:13:45]      + chroma location: left
[19:13:45]  * subtitle track 1, English [TX3G] (track 0, id 0x2, Text) -> Passthrough
[19:13:45]  * audio track 1
[19:13:45]    + name: English
[19:13:45]    + decoder: English (AAC LC) (2.0 ch) (192 kbps) (track 1, id 0x1)
[19:13:45]      + bitrate: 192 kbps, samplerate: 48000 Hz
[19:13:45]    + mixdown: Stereo
[19:13:45]    + encoder: AAC (libavcodec)
[19:13:45]      + bitrate: 384 kbps, samplerate: 48000 Hz
[19:13:45] sync: expecting 178961 video frames
[19:13:46] encqsvInit: using encode-only path
[19:13:46] encqsvInit: H.265/HEVC Main profile @ level 4.0
[19:13:46] encqsvInit: TargetUsage 4 AsyncDepth 4
[19:13:46] encqsvInit: GopRefDist 4 GopPicSize 24 NumRefFrame 3 IdrInterval 0
[19:13:46] encqsvInit: BFramesMax 3 BRefType pyramid
[19:13:46] encqsvInit: RateControlMethod ICQ ICQQuality 21
[19:13:46] sync: first pts video is 0
[19:13:46] sync: "Chapter 1" (1) at frame 1 time 0
[19:13:46] sync: first pts audio 0x1 is 0
[19:13:46] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 1.33
encqsv: MFXVideoENCODE_EncodeFrameAsync failed (-5)
encqsvWork: qsv_enc_work failed -1
[19:13:46] work: average encoding speed for job is 0.000000 fps
[19:13:46] comb detect: heavy 0 | light 0 | uncombed 30 | total 30
[19:13:46] decomb: deinterlaced 0 | blended 0 | unfiltered 21 | total 21
[19:13:46] vfr: 13 frames output, 0 dropped and 0 duped for CFR/PFR
[19:13:46] vfr: lost time: 0 (0 frames)
[19:13:46] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:13:46] aac-decoder done: 209 frames, 0 decoder errors
[19:13:46] hevc-decoder done: 100 frames, 0 decoder errors
[19:13:46] sync: got 48 frames, 178961 expected
[19:13:46] sync: framerate min 24.000 fps, max 24.000 fps, avg 24.000 fps
[19:13:46] mux: track 0, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[19:13:46] mux: track 1, 90 frames, 557 bytes, 2.28 kbps, fifo 128
[19:13:46] mux: track 2, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[19:13:47] Finished work at: Sat Jan 21 19:13:47 2023
[19:13:47] libhb: work result = 4
ERROR: Encode failed with code ErrorUnknown
# Job completed (Elapsed Time: 7s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions