Intel ARC encodes fail sporadically

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
ochompsky
Posts: 11
Joined: Thu Jan 05, 2017 1:51 am

Intel ARC encodes fail sporadically

Post by ochompsky »

Hi, my handbrake encodes occasionally fails and I cannot determine why. The encodes always succeed on a restart. I'm using a Sparkle Arc 310 ECO with the latest intel drivers at the time of this post. I'm always use the AV1 2160p Preset with Intel QSV.

The error always seems to be:
[06:14:51] sync: expecting 54117 video frames
hb_qsv_create_mfx_session: Error creating a MFX session: -9.
encqsvInit: MFXInit failed (-1313558101) with implementation 773
Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)'


Full log:

Code: Select all

HandBrake 1.7.3 (2024021000)
OS: Microsoft Windows NT 10.0.19045.0
CPU: 12th Gen Intel(R) Core(TM) i5-12600K
Ram: 32581 MB, 
GPU Information:
  NVIDIA GeForce RTX 3080 - 31.0.15.4633
  Intel(R) Arc(TM) A310 LP Graphics - 31.0.101.5382
  Microsoft Remote Display Adapter - 10.0.19041.3636
Screen: 1920x1080
Temp Dir: C:\Users\user\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\user\AppData\Roaming\HandBrake

-------------------------------------------

 # Starting Encode ...

[06:14:47] base preset: AV1 2160p
[06:14:47] Remote Process started with Process ID: 12388 using port: 8037. Max Allowed Instances: 1
[06:14:47] Worker: Starting HandBrake Engine ...
[06:14:47] Worker: Parent Process Id 30304
[06:14:47] Worker: Starting Web Server on port 8037 ...
[06:14:47] Worker: Starting Listener: 1
[06:14:47] Worker: Server Started
[06:14:47] Worker: Disconnected worker monitoring enabled!
[06:14:47] Compile-time hardening features are enabled
[06:14:47] nvenc: version 12.1 is available
[06:14:47] nvdec: is available
[06:14:48] CUDA Version: 8.6
[06:14:48] vcn: not available on this system
[06:14:49] qsv: is available on this system
thread
[06:14:49] Starting work at: Mon Apr 08 06:14:49 2024
[06:14:49] 1 job(s) to process
[06:14:49] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac"
    ],
    "FallbackEncoder": "none"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\HANDBRAKE\\output\\video.mp4",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 19,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "2160",
          "width": "3840"
        }
      },
      {
        "ID": 10,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\HANDBRAKE\\input\\video.mp4",
    "HWDecode": 6
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "qsv_av1",
    "Level": "auto",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "lowpower=1",
    "Preset": "balanced",
    "Profile": "auto",
    "Quality": 28,
    "QSV": {
      "Decode": true
    },
    "HardwareDecode": 0
  }
}
[06:14:49] CPU: 12th Gen Intel(R) Core(TM) i5-12600K
[06:14:49]  - Intel microarchitecture Alder Lake performance hybrid architecture
[06:14:49]  - logical processor count: 16
[06:14:49] Intel Quick Sync Video support: yes, gpu list: 1
[06:14:49] Intel Quick Sync Video discrete adapter with index 1
[06:14:49] Impl mfx-gen library path: C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_84626b72162d9050\libmfx64-gen.dll
[06:14:49]  - Intel Media SDK hardware: API 2.10 (minimum: 1.3)
[06:14:49]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[06:14:49]  - H.264 encoder: yes
[06:14:49]     - preferred implementation: hardware (2) via D3D11
[06:14:49]     - capabilities (hardware):  lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[06:14:49]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[06:14:49]     - preferred implementation: hardware (2) via D3D11
[06:14:49]     - capabilities (hardware):  lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1
[06:14:49]  - AV1 encoder: yes (8bit: yes, 10bit: yes)
[06:14:49]     - preferred implementation: hardware (2) via D3D11
[06:14:49]     - capabilities (hardware):  lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1 av1bitstream
[06:14:49] hb_scan: path=C:\HANDBRAKE\input\video.mp4, title_index=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\HANDBRAKE\input\video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isomavc1
  Duration: 00:30:05.70, start: 0.000000, bitrate: 14200 kb/s
  Stream #0:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
    Metadata:
      handler_name    : Sound Media Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 13878 kb/s, 29.97 fps, 29.97 tbr, 60k tbn (default)
    Metadata:
      handler_name    : Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
[06:14:49] scan: decoding previews for title 1
[06:14:49] scan: audio 0x0: aac, rate=48000Hz, bitrate=317374 Unknown (AAC LC, 2.0 ch, 317 kbps)
[06:14:50] using bitstream PAR 1:1
[06:14:50] scan: 10 previews, 3840x2160, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[06:14:50] scan: supported video decoders: avcodec qsv
[06:14:51] libhb: scan thread found 1 valid title(s)
[06:14:51] Starting Task: Encoding Pass
[06:14:51] work: skipping crop/scale filter
[06:14:51] work: track 1, dithering not supported by codec
[06:14:51] work: only 1 chapter, disabling chapter markers
[06:14:51] job configuration:
[06:14:51]  * source
[06:14:51]    + C:\HANDBRAKE\input\video.mp4
[06:14:51]    + title 1, chapter(s) 1 to 1
[06:14:51]    + container: mov,mp4,m4a,3gp,3g2,mj2
[06:14:51]    + data rate: 14200 kbps
[06:14:51]  * destination
[06:14:51]    + C:\HANDBRAKE\output\video.mp4
[06:14:51]    + container: MPEG-4 (libavformat)
[06:14:51]  * video track
[06:14:51]    + decoder: h264_qsv 8-bit (nv12)
[06:14:51]      + bitrate 13878 kbps
[06:14:51]    + filter
[06:14:51]      + Framerate Shaper (mode=0)
[06:14:51]        + frame rate: same as source (around 29.970 fps)
[06:14:51]    + Output geometry
[06:14:51]      + storage dimensions: 3840 x 2160
[06:14:51]      + pixel aspect ratio: 1 : 1
[06:14:51]      + display dimensions: 3840 x 2160
[06:14:51]    + encoder: AV1 (Intel Media SDK)
[06:14:51]      + preset:  balanced
[06:14:51]      + options: lowpower=1
[06:14:51]      + profile: auto
[06:14:51]      + level:   auto
[06:14:51]      + quality: 28.00 (ICQ)
[06:14:51]      + color profile: 1-1-1
[06:14:51]      + chroma location: left
[06:14:51]  * audio track 1
[06:14:51]    + decoder: Unknown (AAC LC, 2.0 ch, 317 kbps) (track 1, id 0x0)
[06:14:51]      + bitrate: 317 kbps, samplerate: 48000 Hz
[06:14:51]    + mixdown: Stereo
[06:14:51]    + encoder: AAC (libavcodec)
[06:14:51]      + bitrate: 160 kbps, samplerate: 48000 Hz
[06:14:51] sync: expecting 54117 video frames
hb_qsv_create_mfx_session: Error creating a MFX session: -9.
encqsvInit: MFXInit failed (-1313558101) with implementation 773
Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)'
[06:14:51] vfr: 0 frames output, 0 dropped
[06:14:51] vfr: lost time: 0 (0 frames)
[06:14:51] vfr: gained time: 0 (0 frames) (0 not accounted for)
[06:14:51] aac-decoder done: 0 frames, 0 decoder errors
[06:14:51] h264_qsv-decoder done: 0 frames, 0 decoder errors
[06:14:51] sync: got 0 frames, 54117 expected
[06:14:51] Finished work at: Mon Apr 08 06:14:51 2024
[06:14:51] libhb: work result = 3

 # Job Failed to Initialise. Check log and input settings (3)


mduell
Veteran User
Posts: 8338
Joined: Sat Apr 21, 2007 8:54 pm

Re: Intel ARC encodes fail sporadically

Post by mduell »

Try without low power mode (I think its in settings).
ochompsky
Posts: 11
Joined: Thu Jan 05, 2017 1:51 am

Re: Intel ARC encodes fail sporadically

Post by ochompsky »

mduell wrote: Mon Apr 08, 2024 1:45 pm Try without low power mode (I think its in settings).
thanks, ill try this. i didn't even realize my computer had defaulted to balanced instead of high performance, which has ASPM off.
mduell
Veteran User
Posts: 8338
Joined: Sat Apr 21, 2007 8:54 pm

Re: Intel ARC encodes fail sporadically

Post by mduell »

Balanced is fine, you just need to turn off the lowpower QSV mode in the HB settings.
ochompsky
Posts: 11
Joined: Thu Jan 05, 2017 1:51 am

Re: Intel ARC encodes fail sporadically

Post by ochompsky »

mduell wrote: Mon Apr 08, 2024 4:16 pm Balanced is fine, you just need to turn off the lowpower QSV mode in the HB settings.
thanks, i found it in the video tab, i was mixing it up with windows power settings.
ochompsky
Posts: 11
Joined: Thu Jan 05, 2017 1:51 am

Re: Intel ARC encodes fail sporadically

Post by ochompsky »

unfortunately, this did not fix the problem, i got another failure with similar errors -
HandBrake 1.7.3 (2024021000)
OS: Microsoft Windows NT 10.0.19045.0
CPU: 12th Gen Intel(R) Core(TM) i5-12600K
Ram: 32581 MB,
GPU Information:
NVIDIA GeForce RTX 3080 - 31.0.15.4633
Intel(R) Arc(TM) A310 LP Graphics - 31.0.101.5382
Microsoft Remote Display Adapter - 10.0.19041.3636
Screen: 1920x1080
Temp Dir: C:\Users\user\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\user\AppData\Roaming\HandBrake

-------------------------------------------

# Starting Encode ...

[07:20:08] base preset: AV1 SameSource
[07:20:08] Remote Process started with Process ID: 19288 using port: 8037. Max Allowed Instances: 1
[07:20:08] Worker: Starting HandBrake Engine ...
[07:20:08] Worker: Parent Process Id 1984
[07:20:08] Worker: Starting Web Server on port 8037 ...
[07:20:08] Worker: Starting Listener: 1
[07:20:08] Worker: Server Started
[07:20:08] Worker: Disconnected worker monitoring enabled!
[07:20:08] Compile-time hardening features are enabled
[07:20:08] nvenc: version 12.1 is available
[07:20:08] nvdec: is available
[07:20:08] CUDA Version: 8.6
[07:20:08] vcn: not available on this system
[07:20:10] qsv: is available on this system
[07:20:10] hb_init: starting libhb thread
[07:20:10] Starting work at: Sat Apr 13 07:20:10 2024
[07:20:10] 1 job(s) to process
[07:20:10] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"DRC": 0,
"Encoder": "av_aac",
"Gain": 0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac"
],
"FallbackEncoder": "none"
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": true,
"AlignAVStart": false,
"File": "C:\\HANDBRAKE\\output\\video2160P.mp4",
"Options": {
"IpodAtom": false,
"Optimize": false
},
"Mux": "av_mp4"
},
"Filters": {
"FilterList": [
{
"ID": 19,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "2160",
"width": "3840"
}
},
{
"ID": 10,
"Settings": {
"mode": "0"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "C:\\HANDBRAKE\\input\\video2160P.mp4",
"HWDecode": 6
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"Encoder": "qsv_av1",
"Level": "auto",
"MultiPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "lowpower=0",
"Preset": "balanced",
"Profile": "auto",
"Quality": 28,
"QSV": {
"Decode": true
},
"HardwareDecode": 0
}
}
[07:20:10] CPU: 12th Gen Intel(R) Core(TM) i5-12600K
[07:20:10] - Intel microarchitecture Alder Lake performance hybrid architecture
[07:20:10] - logical processor count: 16
[07:20:10] Intel Quick Sync Video support: yes, gpu list: 1
[07:20:10] Intel Quick Sync Video discrete adapter with index 1
[07:20:10] Impl mfx-gen library path: C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_84626b72162d9050\libmfx64-gen.dll
[07:20:10] - Intel Media SDK hardware: API 2.10 (minimum: 1.3)
[07:20:10] - Decode support: h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[07:20:10] - H.264 encoder: yes
[07:20:10] - preferred implementation: hardware (2) via D3D11
[07:20:10] - capabilities (hardware): lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[07:20:10] - H.265 encoder: yes (8bit: yes, 10bit: yes)
[07:20:10] - preferred implementation: hardware (2) via D3D11
[07:20:10] - capabilities (hardware): lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1
[07:20:10] - AV1 encoder: yes (8bit: yes, 10bit: yes)
[07:20:10] - preferred implementation: hardware (2) via D3D11
[07:20:10] - capabilities (hardware): lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1 av1bitstream
[07:20:10] hb_scan: path=C:\HANDBRAKE\input\video2160P.mp4, title_index=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\HANDBRAKE\input\video2160P.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.40.101
Duration: 00:29:32.40, start: 0.000000, bitrate: 15139 kb/s
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 3840x2160 [SAR 1:1 DAR 16:9], 15004 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
[07:20:10] scan: decoding previews for title 1
[07:20:10] scan: audio 0x1: aac, rate=48000Hz, bitrate=128000 English (AAC LC, 2.0 ch, 128 kbps)
[07:20:11] using bitstream PAR 1:1
[07:20:11] scan: 10 previews, 3840x2160, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[07:20:11] scan: supported video decoders: avcodec qsv
[07:20:11] libhb: scan thread found 1 valid title(s)
[07:20:11] Starting Task: Encoding Pass
[07:20:11] work: skipping crop/scale filter
[07:20:11] work: track 1, dithering not supported by codec
[07:20:11] work: only 1 chapter, disabling chapter markers
[07:20:11] job configuration:
[07:20:11] * source
[07:20:11] + C:\HANDBRAKE\input\video2160P.mp4
[07:20:11] + title 1, chapter(s) 1 to 1
[07:20:11] + container: mov,mp4,m4a,3gp,3g2,mj2
[07:20:11] + data rate: 15139 kbps
[07:20:11] * destination
[07:20:11] + C:\HANDBRAKE\output\video2160P.mp4
[07:20:11] + container: MPEG-4 (libavformat)
[07:20:11] * video track
[07:20:11] + decoder: h264_qsv 8-bit (nv12)
[07:20:11] + bitrate 15004 kbps
[07:20:11] + filter
[07:20:11] + Framerate Shaper (mode=0)
[07:20:11] + frame rate: same as source (around 29.970 fps)
[07:20:11] + Output geometry
[07:20:11] + storage dimensions: 3840 x 2160
[07:20:11] + pixel aspect ratio: 1 : 1
[07:20:11] + display dimensions: 3840 x 2160
[07:20:11] + encoder: AV1 (Intel Media SDK)
[07:20:11] + preset: balanced
[07:20:11] + options: lowpower=0
[07:20:11] + profile: auto
[07:20:11] + level: auto
[07:20:11] + quality: 28.00 (ICQ)
[07:20:11] + color profile: 1-1-1
[07:20:11] + chroma location: left
[07:20:11] * audio track 1
[07:20:11] + decoder: English (AAC LC, 2.0 ch, 128 kbps) (track 1, id 0x1)
[07:20:11] + bitrate: 128 kbps, samplerate: 48000 Hz
[07:20:11] + mixdown: Stereo
[07:20:11] + encoder: AAC (libavcodec)
[07:20:11] + bitrate: 160 kbps, samplerate: 48000 Hz
[07:20:11] sync: expecting 53118 video frames
hb_qsv_create_mfx_session: Error creating a MFX session: -9.
encqsvInit: MFXInit failed (-1313558101) with implementation 773
Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)'
[07:20:12] vfr: 0 frames output, 0 dropped
[07:20:12] vfr: lost time: 0 (0 frames)
[07:20:12] vfr: gained time: 0 (0 frames) (0 not accounted for)
[07:20:12] aac-decoder done: 0 frames, 0 decoder errors
[07:20:12] h264_qsv-decoder done: 0 frames, 0 decoder errors
[07:20:12] sync: got 0 frames, 53118 expected
[07:20:12] Finished work at: Sat Apr 13 07:20:12 2024
[07:20:12] libhb: work result = 3

# Job Failed to Initialise. Check log and input settings (3)
Post Reply