RandomEngy / VidCoder

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

Videocoder beta 10.9 encoding with intel quick sync randomly stuck #1253

Closed devildant closed 2 days ago

devildant commented 2 weeks ago

Problem Description

Good morning,

the encoding process randomly blocks on videos, and remains blocked. I went to look at the logs and nothing, no errors :( i wait 1 hour, and still stuck, no log or trace just stuck

Note i put the log file txt for a video with trouble (if i stop and restart encoding it's work, i don't understand)

image

What version of VidCoder are you running?

beta 10.9

Encode Log


VC [02:05:04] VidCoder 10.9 Bêta
VC [02:05:04] Starting job 98/1060
VC [02:05:04]   Source path: X:\serie-migration\one piece\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23.mkv
VC [02:05:04]   Destination path: X:\serie-migration\one piece\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23-HDL.mkv
VC [02:05:04]   Title: 1
VC [02:05:04]   Range: All
VC [02:05:04]   Preset: hd light 1080p 5.1 Mq quick sync
VC [02:05:04]   Picker: 
VC [02:05:04] Worker ready: Pipe 'VidCoderWorker.83f3b6c7-941b-4087-aeed-286c80cf36e0' is open
VC [02:05:04] Connecting to process 4784 on pipe VidCoderWorker.83f3b6c7-941b-4087-aeed-286c80cf36e0
HB 5:04] hb_init: starting libhb thread
[02:05:04] CPU: 13th Gen Intel(R) Core(TM) i9-13900H
[02:05:04]  - logical processor count: 20
[02:05:04] Intel Quick Sync Video support: yes, gpu list: 0
[02:05:04] Intel Quick Sync Video integrated adapter with index 0
[02:05:04] Impl mfx-gen library path: C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_64f1ea0105c67ec6\libmfx64-gen.dll
[02:05:04]  - Intel Media SDK hardware: API 2.10 (minimum: 1.3)
[02:05:04]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[02:05:04]  - H.264 encoder: yes
[02:05:04]     - preferred implementation: hardware (1) via D3D11
[02:05:04]     - capabilities (hardware):  lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[02:05:04]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[02:05:04]     - preferred implementation: hardware (1) via D3D11
[02:05:04]     - capabilities (hardware):  lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1
[02:05:04]  - AV1 encoder: no
[02:05:04] hb_scan: path=X:\serie-migration\one piece\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23.mkv, title_index=1
HB [02:05:05] scan: decoding previews for title 1
[02:05:05] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 Francais (AAC LC, 2.0 ch)
[02:05:05] scan: audio 0x2: aac, rate=48000Hz, bitrate=1 ??? (AAC LC, 2.0 ch)
HB [02:05:05] using bitstream PAR 80:81
[02:05:05] scan: 10 previews, 720x400, 23.976 fps, autocrop = 0/0/0/2, aspect 16:9, PAR 80:81, color profile: 1-1-1, chroma location: left
[02:05:05] scan: supported video decoders: avcodec qsv
[02:05:05] libhb: scan thread found 1 valid title(s)
HB [02:05:05] Starting work at: Sat Jun 15 02:05:05 2024
[02:05:05] 1 job(s) to process
[02:05:05] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 384,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "Bitrate": 384,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 1,
        "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": "Chapitre 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "X:\\serie-migration\\one piece\\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23-HDL.part.mkv",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 20,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "2",
          "crop-top": "0",
          "height": "404",
          "width": "718"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 0,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "X:\\serie-migration\\one piece\\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23.mkv",
    "HWDecode": 0
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0,
        "Name": "Forced"
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      }
    ]
  },
  "Video": {
    "Encoder": "qsv_h264",
    "Level": "4.0",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "ref=6:subq=7:trellis=0:bframes=3:b-adapt=2:direct=auto:me=umh:merange=16:analyse=all:open-gop=0:rc-lookahead=50:level=4.1:no-fast-pskip=1:no-mixed-refs=0:no-weightb=0:no-mbtree=0",
    "Preset": "balanced",
    "Profile": "main",
    "Quality": 22.0,
    "QSV": {
      "Decode": true
    },
    "HardwareDecode": 4
  }
}
[02:05:05] Skipping subtitle scan.  No suitable subtitle tracks.
[02:05:05] Starting Task: Encoding Pass
HB [02:05:06] qsv: scaling filter mode compute
[02:05:06] work: sanitizing track 1 mixdown 5.1 Channels to Stereo
[02:05:06] work: track 1, dithering not supported by codec
[02:05:06] work: sanitizing track 2 mixdown 5.1 Channels to Stereo
[02:05:06] work: track 2, dithering not supported by codec
[02:05:06] work: only 1 chapter, disabling chapter markers
[02:05:06] job configuration:
[02:05:06]  * source
[02:05:06]    + X:\serie-migration\one piece\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23.mkv
[02:05:06]    + title 1, chapter(s) 1 to 1
[02:05:06]    + container: matroska,webm
[02:05:06]    + data rate: 1019 kbps
[02:05:06]  * destination
[02:05:06]    + X:\serie-migration\one piece\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23-HDL.part.mkv
[02:05:06]    + container: Matroska (libavformat)
[02:05:06]  * video track
[02:05:06]    + decoder: h264_qsv 8-bit (nv12)
[02:05:06]    + filters
[02:05:06]      + Crop and Scale (width=718:height=404:crop-top=0:crop-bottom=0:crop-left=0:crop-right=2)
[02:05:06]        + source: 720 * 400, crop (0/0/0/2): 718 * 400, scale: 718 * 404
[02:05:06]    + Output geometry
[02:05:06]      + storage dimensions: 718 x 404
[02:05:06]      + pixel aspect ratio: 1 : 1
[02:05:06]      + display dimensions: 718 x 404
[02:05:06]    + encoder: H.264 (Intel Media SDK)
[02:05:06]      + preset:  balanced
[02:05:06]      + options: ref=6:subq=7:trellis=0:bframes=3:b-adapt=2:direct=auto:me=umh:merange=16:analyse=all:open-gop=0:rc-lookahead=50:level=4.1:no-fast-pskip=1:no-mixed-refs=0:no-weightb=0:no-mbtree=0
[02:05:06]      + profile: main
[02:05:06]      + level:   4.0
[02:05:06]      + quality: 22.00 (ICQ)
[02:05:06]      + color profile: 1-1-1
[02:05:06]      + color range: tv
[02:05:06]      + chroma location: left
[02:05:06]  * subtitle track 1, Francais (UTF-8) (track 0, id 0x3, Text) -> Passthrough
[02:05:06]    + name: Forced
[02:05:06]  * subtitle track 2, Francais (UTF-8) (track 1, id 0x4, Text) -> Passthrough
[02:05:06]  * audio track 1
[02:05:06]    + decoder: Francais (AAC LC, 2.0 ch) (track 1, id 0x1)
[02:05:06]      + samplerate: 48000 Hz
[02:05:06]    + mixdown: Stereo
[02:05:06]    + encoder: AAC (libavcodec)
[02:05:06]      + bitrate: 384 kbps, samplerate: 48000 Hz
[02:05:06]  * audio track 2
[02:05:06]    + decoder: ??? (AAC LC, 2.0 ch) (track 2, id 0x2)
[02:05:06]      + samplerate: 48000 Hz
[02:05:06]    + mixdown: Stereo
[02:05:06]    + encoder: AAC (libavcodec)
[02:05:06]      + bitrate: 384 kbps, samplerate: 48000 Hz
[02:05:06] sync: expecting 33928 video frames
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key subq
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key bframes
[02:05:06] encqsvInit: hb_qsv_param_parse: bad value 2 for key b-adapt
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key direct
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key me
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key merange
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key analyse
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key open-gop
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key rc-lookahead
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key level
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key no-fast-pskip
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key no-mixed-refs
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key no-weightb
[02:05:06] encqsvInit: hb_qsv_param_parse: bad key no-mbtree
HB [02:05:06] Unknown Header.BufferId=1347637059
[02:05:06] encqsvInit: using full QSV via video memory (LowPower) path
[02:05:06] encqsvInit: H.264/AVC Main profile @ level 4.0
[02:05:06] encqsvInit: TargetUsage 4 AsyncDepth 6
[02:05:06] encqsvInit: GopRefDist 1 GopPicSize 48 NumRefFrame 6 IdrInterval 0
[02:05:06] encqsvInit: BFramesMax 0 BRefType pyramid
[02:05:06] encqsvInit: RateControlMethod ICQ ICQQuality 22
[02:05:06] encqsvInit: MBBRC on
HB [02:05:06] sync: first pts audio 0x1 is 0
[02:05:06] sync: first pts audio 0x2 is 0
[02:05:06] sync: first pts video is 3780
[02:05:06] sync: "Chapitre 1" (1) at frame 1 time 3780
[02:05:06] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 2.10
HB [02:05:13] sync: first pts subtitle 0x4 is 10100700
HB [02:05:16] sync: first pts subtitle 0x3 is 12630600
HB [02:07:03] reader: done. 1 scr changes

note: when I stop encoding I get this, it is added after the end of the previous log

HB [02:12:18] work: average encoding speed for job is 288.890778 fps
HB [02:12:19] aac-decoder done: 66331 frames, 0 decoder errors
[02:12:19] aac-decoder done: 66331 frames, 0 decoder errors
[02:12:19] h264_qsv-decoder done: 33927 frames, 0 decoder errors
[02:12:19] sync: got 33868 frames, 33928 expected
[02:12:19] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
HB [02:12:19] mux: track 0, 33855 frames, 216734498 bytes, 1227.42 kbps, fifo 2048
[02:12:19] mux: track 1, 66215 frames, 48652666 bytes, 275.53 kbps, fifo 4096
[02:12:19] mux: track 2, 66214 frames, 48280957 bytes, 273.43 kbps, fifo 4096
[02:12:19] mux: track 3, 3 frames, 163 bytes, 0.00 kbps, fifo 8
[02:12:19] mux: track 4, 354 frames, 20213 bytes, 0.11 kbps, fifo 32
[02:12:19] Finished work at: Sat Jun 15 02:12:19 2024
[02:12:19] libhb: work result = 1
VC [02:12:19] Encoding stopped
devildant commented 2 weeks ago

also i test with/without work process, same result

devildant commented 2 weeks ago

same log after stop and restart encoding :

VC [02:14:07] VidCoder 10.7 Bêta
VC [02:14:07] Starting job 1/963
VC [02:14:07]   Source path: X:\serie-migration\one piece\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23.mkv
VC [02:14:07]   Destination path: X:\serie-migration\one piece\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23-HDL.mkv
VC [02:14:07]   Title: 1
VC [02:14:07]   Range: All
VC [02:14:07]   Preset: hd light 1080p 5.1 Mq quick sync
VC [02:14:07]   Picker: 
VC [02:14:08] Worker ready: Pipe 'VidCoderWorker.c238c412-1497-4f19-b4e9-d4d6c801b8be' is open
VC [02:14:08] Connecting to process 15304 on pipe VidCoderWorker.c238c412-1497-4f19-b4e9-d4d6c801b8be
HB :14:09] hb_init: starting libhb thread
[02:14:09] CPU: 13th Gen Intel(R) Core(TM) i9-13900H
[02:14:09]  - logical processor count: 20
[02:14:09] Intel Quick Sync Video support: yes, gpu list: 0
[02:14:09] Intel Quick Sync Video integrated adapter with index 0
[02:14:09] Impl mfx-gen library path: C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_64f1ea0105c67ec6\libmfx64-gen.dll
[02:14:09]  - Intel Media SDK hardware: API 2.10 (minimum: 1.3)
[02:14:09]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[02:14:09]  - H.264 encoder: yes
[02:14:09]     - preferred implementation: hardware (1) via D3D11
[02:14:09]     - capabilities (hardware):  lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[02:14:09]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[02:14:09]     - preferred implementation: hardware (1) via D3D11
[02:14:09]     - capabilities (hardware):  lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1
[02:14:09]  - AV1 encoder: no
[02:14:09] hb_scan: path=X:\serie-migration\one piece\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23.mkv, title_index=1
[02:14:09] scan: decoding previews for title 1
[02:14:09] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 Francais (AAC LC, 2.0 ch)
[02:14:09] scan: audio 0x2: aac, rate=48000Hz, bitrate=1 ??? (AAC LC, 2.0 ch)
HB [02:14:09] using bitstream PAR 80:81
[02:14:09] scan: 10 previews, 720x400, 23.976 fps, autocrop = 0/0/0/2, aspect 16:9, PAR 80:81, color profile: 1-1-1, chroma location: left
[02:14:09] scan: supported video decoders: avcodec qsv
[02:14:09] libhb: scan thread found 1 valid title(s)
[02:14:09] Starting work at: Sat Jun 15 02:14:09 2024
[02:14:09] 1 job(s) to process
[02:14:09] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 384,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "Bitrate": 384,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 1,
        "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": "Chapitre 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "X:\\serie-migration\\one piece\\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23-HDL.part.mkv",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 20,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "2",
          "crop-top": "0",
          "height": "404",
          "width": "718"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 0,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "X:\\serie-migration\\one piece\\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23.mkv",
    "HWDecode": 0
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0,
        "Name": "Forced"
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      }
    ]
  },
  "Video": {
    "Encoder": "qsv_h264",
    "Level": "4.0",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "ref=6:subq=7:trellis=0:bframes=3:b-adapt=2:direct=auto:me=umh:merange=16:analyse=all:open-gop=0:rc-lookahead=50:level=4.1:no-fast-pskip=1:no-mixed-refs=0:no-weightb=0:no-mbtree=0",
    "Preset": "balanced",
    "Profile": "main",
    "Quality": 22.0,
    "QSV": {
      "Decode": true
    },
    "HardwareDecode": 4
  }
}
[02:14:09] Skipping subtitle scan.  No suitable subtitle tracks.
[02:14:09] Starting Task: Encoding Pass
HB [02:14:09] qsv: scaling filter mode compute
[02:14:09] work: sanitizing track 1 mixdown 5.1 Channels to Stereo
[02:14:09] work: track 1, dithering not supported by codec
[02:14:09] work: sanitizing track 2 mixdown 5.1 Channels to Stereo
[02:14:09] work: track 2, dithering not supported by codec
[02:14:09] work: only 1 chapter, disabling chapter markers
[02:14:09] job configuration:
[02:14:09]  * source
[02:14:09]    + X:\serie-migration\one piece\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23.mkv
[02:14:09]    + title 1, chapter(s) 1 to 1
[02:14:09]    + container: matroska,webm
[02:14:09]    + data rate: 1019 kbps
[02:14:09]  * destination
[02:14:09]    + X:\serie-migration\one piece\One.Piece.S08.MULTi.WEBRip.x264.AAC-LM23\One.Piece.E232.MULTi.WEBRip.x264.AAC-LM23-HDL.part.mkv
[02:14:09]    + container: Matroska (libavformat)
[02:14:09]  * video track
[02:14:09]    + decoder: h264_qsv 8-bit (nv12)
[02:14:09]    + filters
[02:14:09]      + Crop and Scale (width=718:height=404:crop-top=0:crop-bottom=0:crop-left=0:crop-right=2)
[02:14:09]        + source: 720 * 400, crop (0/0/0/2): 718 * 400, scale: 718 * 404
[02:14:09]    + Output geometry
[02:14:09]      + storage dimensions: 718 x 404
[02:14:09]      + pixel aspect ratio: 1 : 1
[02:14:09]      + display dimensions: 718 x 404
[02:14:09]    + encoder: H.264 (Intel Media SDK)
[02:14:09]      + preset:  balanced
[02:14:09]      + options: ref=6:subq=7:trellis=0:bframes=3:b-adapt=2:direct=auto:me=umh:merange=16:analyse=all:open-gop=0:rc-lookahead=50:level=4.1:no-fast-pskip=1:no-mixed-refs=0:no-weightb=0:no-mbtree=0
[02:14:09]      + profile: main
[02:14:09]      + level:   4.0
[02:14:09]      + quality: 22.00 (ICQ)
[02:14:09]      + color profile: 1-1-1
[02:14:09]      + color range: tv
[02:14:09]      + chroma location: left
[02:14:09]  * subtitle track 1, Francais (UTF-8) (track 0, id 0x3, Text) -> Passthrough
[02:14:09]    + name: Forced
[02:14:09]  * subtitle track 2, Francais (UTF-8) (track 1, id 0x4, Text) -> Passthrough
[02:14:09]  * audio track 1
[02:14:09]    + decoder: Francais (AAC LC, 2.0 ch) (track 1, id 0x1)
[02:14:09]      + samplerate: 48000 Hz
[02:14:09]    + mixdown: Stereo
[02:14:09]    + encoder: AAC (libavcodec)
[02:14:09]      + bitrate: 384 kbps, samplerate: 48000 Hz
[02:14:09]  * audio track 2
[02:14:09]    + decoder: ??? (AAC LC, 2.0 ch) (track 2, id 0x2)
[02:14:09]      + samplerate: 48000 Hz
[02:14:09]    + mixdown: Stereo
[02:14:09]    + encoder: AAC (libavcodec)
[02:14:09]      + bitrate: 384 kbps, samplerate: 48000 Hz
[02:14:09] sync: expecting 33928 video frames
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key subq
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key bframes
[02:14:09] encqsvInit: hb_qsv_param_parse: bad value 2 for key b-adapt
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key direct
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key me
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key merange
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key analyse
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key open-gop
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key rc-lookahead
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key level
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key no-fast-pskip
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key no-mixed-refs
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key no-weightb
[02:14:09] encqsvInit: hb_qsv_param_parse: bad key no-mbtree
HB [02:14:09] Unknown Header.BufferId=1347637059
[02:14:09] encqsvInit: using full QSV via video memory (LowPower) path
[02:14:09] encqsvInit: H.264/AVC Main profile @ level 4.0
[02:14:09] encqsvInit: TargetUsage 4 AsyncDepth 6
[02:14:09] encqsvInit: GopRefDist 1 GopPicSize 48 NumRefFrame 6 IdrInterval 0
[02:14:09] encqsvInit: BFramesMax 0 BRefType pyramid
[02:14:09] encqsvInit: RateControlMethod ICQ ICQQuality 22
[02:14:09] encqsvInit: MBBRC on
HB [02:14:10] sync: first pts audio 0x1 is 0
[02:14:10] sync: first pts audio 0x2 is 0
[02:14:10] sync: first pts video is 3780
[02:14:10] sync: "Chapitre 1" (1) at frame 1 time 3780
[02:14:10] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 2.10
HB [02:14:17] sync: first pts subtitle 0x4 is 10100700
HB [02:14:19] sync: first pts subtitle 0x3 is 12630600
HB [02:16:07] reader: done. 1 scr changes
HB [02:16:07] work: average encoding speed for job is 289.361847 fps
[02:16:07] aac-decoder done: 66331 frames, 0 decoder errors
[02:16:07] aac-decoder done: 66331 frames, 0 decoder errors
[02:16:07] h264_qsv-decoder done: 33927 frames, 0 decoder errors
[02:16:07] sync: got 33927 frames, 33928 expected
[02:16:07] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[02:16:07] mux: track 0, 33927 frames, 216830526 bytes, 1225.79 kbps, fifo 2048
[02:16:07] mux: track 1, 66332 frames, 48734196 bytes, 275.51 kbps, fifo 4096
[02:16:07] mux: track 2, 66332 frames, 48365182 bytes, 273.42 kbps, fifo 4096
[02:16:07] mux: track 3, 3 frames, 163 bytes, 0.00 kbps, fifo 8
[02:16:07] mux: track 4, 354 frames, 20213 bytes, 0.11 kbps, fifo 32
[02:16:07] Finished work at: Sat Jun 15 02:16:07 2024
HB [02:16:07] libhb: work result = 0
VC [02:16:08] Job completed (Elapsed Time: 2m 00s)

the diff, when it's correct i have the end :

HB [02:16:07] work: average encoding speed for job is 289.361847 fps
[02:16:07] aac-decoder done: 66331 frames, 0 decoder errors
[02:16:07] aac-decoder done: 66331 frames, 0 decoder errors
[02:16:07] h264_qsv-decoder done: 33927 frames, 0 decoder errors
[02:16:07] sync: got 33927 frames, 33928 expected
[02:16:07] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[02:16:07] mux: track 0, 33927 frames, 216830526 bytes, 1225.79 kbps, fifo 2048
[02:16:07] mux: track 1, 66332 frames, 48734196 bytes, 275.51 kbps, fifo 4096
[02:16:07] mux: track 2, 66332 frames, 48365182 bytes, 273.42 kbps, fifo 4096
[02:16:07] mux: track 3, 3 frames, 163 bytes, 0.00 kbps, fifo 8
[02:16:07] mux: track 4, 354 frames, 20213 bytes, 0.11 kbps, fifo 32
[02:16:07] Finished work at: Sat Jun 15 02:16:07 2024
HB [02:16:07] libhb: work result = 0
VC [02:16:08] Job completed (Elapsed Time: 2m 00s)
devildant commented 2 weeks ago

I reproduce the bug, with extend log :

2024-06-15 03.25.19 Encode One.Piece.E259.MULTi.WEBRip.x264.AAC-LM23-HDL.mkv.txt

2024-06-15 03.25.19 PipeServer Encode VidCoderWorker.f3d9c5a7-54f2-4562-9e9d-6c15d62c426c.txt

2024-06-15 02.13.58 Combined.txt

i don't know if can help, I also noticed that with the extended logs, the log files contained were fed, but this never ends

devildant commented 2 weeks ago

another logs for another file video :

T.zip

RandomEngy commented 2 weeks ago

Taking a look. It appears to be hung in the HandBrake core. VidCoder is polling and successfully reporting the "stuck" progress back to the main process.

If you can supply a sample file and the exported encoding preset you're using, I can try to reproduce. Or, you can see if it's also hanging in the HandBrake app with the same encoding settings. If it does, then we can ask the HandBrake team to look into it.

RandomEngy commented 2 weeks ago

Does this happen with any source file, and any encoding preset? Or only certain ones?

devildant commented 2 weeks ago

Hello, I continued the tests, the problem seems to appear when I use the "decode QSV" option.

I would like to provide you with the file, but as I said previously, when I stop encoding on a file that is blocking and I restart it, it goes without problem, you would have to duplicate the video file at least 100 times, and put them in an encoding queue, and even then it's very random, I can succeed in 80 encodings in a row without problem or only 15....

here is what I was able to test.

video :

https://filetransfer.io/data-package/Hi6XbKqM#link

my encoding preset with qsv decode:

{
  "Version": 20,
  "Preset": {
    "Name": "hd light 1080p 5.1 Mq quick sync",
    "FolderId": 0,
    "IsBuiltIn": false,
    "IsModified": false,
    "IsQueue": false,
    "EncodingProfile": {
      "ContainerName": "av_mkv",
      "PreferredExtension": "Mp4",
      "IncludeChapterMarkers": true,
      "Optimize": false,
      "AlignAVStart": false,
      "IPod5GSupport": false,
      "SizingMode": "Automatic",
      "Width": 1920,
      "Height": 1080,
      "CroppingType": "Automatic",
      "CroppingMinimum": 2,
      "CroppingConstrainToOneAxis": false,
      "Cropping": {
        "Top": 138,
        "Bottom": 138,
        "Left": 0,
        "Right": 0
      },
      "Padding": {
        "Top": 0,
        "Bottom": 0,
        "Left": 0,
        "Right": 0,
        "IsZero": true
      },
      "PaddingMode": "None",
      "UseAnamorphic": false,
      "ScalingMode": "DownscaleOnly",
      "PixelAspectX": 1,
      "PixelAspectY": 1,
      "Rotation": "None",
      "FlipHorizontal": false,
      "FlipVertical": false,
      "Detelecine": "off",
      "DeinterlaceType": "Off",
      "DenoiseType": "Off",
      "ChromaSmoothPreset": "off",
      "SharpenType": "Off",
      "DeblockPreset": "off",
      "ColorspacePreset": "off",
      "Grayscale": false,
      "VideoEncoder": "qsv_h264",
      "VideoOptions": "ref=6:subq=7:trellis=0:bframes=3:b-adapt=2:direct=auto:me=umh:merange=16:analyse=all:open-gop=0:rc-lookahead=50:level=4.1:no-fast-pskip=1:no-mixed-refs=0:no-weightb=0:no-mbtree=0",
      "VideoProfile": "main",
      "VideoPreset": "balanced",
      "VideoLevel": "4.0",
      "VideoTunes": [],
      "QsvDecode": true,
      "VideoEncodeRateType": "ConstantQuality",
      "Quality": 22.0,
      "TargetSize": 0,
      "VideoBitrate": 0,
      "TwoPass": false,
      "TurboFirstPass": false,
      "Framerate": 0,
      "ConstantFramerate": false,
      "AudioEncodings": [
        {
          "InputNumber": 0,
          "Encoder": "av_aac",
          "PassthroughIfPossible": false,
          "EncodeRateType": "Bitrate",
          "Bitrate": 384,
          "Quality": 0,
          "Compression": -1,
          "Mixdown": "5point1",
          "SampleRateRaw": 0,
          "Gain": 0,
          "Drc": 0
        }
      ],
      "AudioCopyMask": [],
      "Changing": {},
      "Changed": {},
      "ThrownExceptions": {}
    },
    "Changing": {},
    "Changed": {},
    "ThrownExceptions": {}
  }
}

I always have a knack for finding random bugs. :(

RandomEngy commented 2 weeks ago

Thanks. What does KO mean here? Will try to get a repro on my end.

devildant commented 2 weeks ago

Hi, KO = failed

RandomEngy commented 6 days ago

I fixed an issue with QSV decoding and previews that's in v11.1 Beta. Can you give it a try with that version?

devildant commented 6 days ago

I'll try that as soon as possible, I'll keep you informed

devildant commented 5 days ago

Hi,

I didn't have the problem, on 200 encodings, with the qsv decode. afterwards I can't guarantee anything given the random side of the problem