AV1 Encoding Error on Intel ARC A750 when using the "Quality" Encoder Preset

Discuss encoding for devices and presets.
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
GDILord
Posts: 4
Joined: Tue Nov 08, 2022 11:30 pm

AV1 Encoding Error on Intel ARC A750 when using the "Quality" Encoder Preset

Post by GDILord »

Description of problem or question:
Hello. I'm a video codec n00b, please assume that I know nothing in this area.

I'm using a brand new Intel ARC A750 card to encode to AV1 much faster than with my i7-6700. I literally just installed the card into my machine a few minutes ago and this is the first thing I'm doing with it. :-) I'm trying to get reasonably the smallest file size for my video library using this file as a test as I'm running out of disk space.

I'm trying to encode a video from a .MWV file (codec as per VLC = WMA2 48KHz, 32bps; WMV3, 1280x720, 25fps) to an AV1 video (I think it's only the .MKV container file format?) If you need a reference, I uploaded the video to youtube as well a while ago: https://www.youtube.com/watch?v=juoVrC-ba0c

Steps to reproduce the problem (If Applicable):
I got an error on the "Quality" encoder preset.
Using QSV for the AV1 with Constant Quality set to 20 with the Balanced preset works fine.
Using QSV for the AV1 with Constant Quality set to 20 with the Speed preset works fine.

As a side question, because I'm trying to minimise the size of my library (a tiny bit of loss of quality is ok) and I haven't even started encoding my DVD collection yet, would you recommend that I use an average bit rate instead with two passes, or are those options not applicable to AV1 please?

HandBrake Nightly 20221023060214-8bc44dfb6-master (2022102801)
I'm using the Nightly because I didn't see AV1 in the normal build.

Operating system and version: Windows 10 21H2 OS Build 19044.2130. Using the latest publically available Intel Arc driver of 31.0.101.3490

HandBrake Activity Log

Probable error part of the log:

Code: Select all

[01:10:06] qsv_enc_init: using 'hardware (2) via D3D11' implementation, API: 2.7
[01:10:07] sync: first pts audio 0x0 is 7680
[01:16:22] sync: audio 0x0 time went backwards 213 ms, dropped 1 frames. PTS 183041280
Error code -21,	hb_qsv_wait_on_sync	607
encqsv: hb_qsv_wait_on_sync failed (-21)
encqsvWork: qsv_enc_work failed -21
[01:20:43] work: average encoding speed for job is 134.009567 fps
[01:20:43] comb detect: heavy 955 | light 6477 | uncombed 77887 | total 85319
Full log:

Code: Select all

HandBrake Nightly 20221023060214-8bc44dfb6-master (2022102801)
OS: Microsoft Windows NT 10.0.19044.0
CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
Ram: 64450 MB, 
GPU Information:
  Intel(R) Arc(TM) A750 Graphics - 31.0.101.3490
  AMD Radeon RX 6800 XT - 31.0.12019.9007
  Intel(R) HD Graphics 530 - 31.0.101.2111
Screen: 2560x1440
Temp Dir: C:\Temp\
Install Dir: C:\Program Files\Handbrake_Nightly\
Data Dir: C:\Users\Andrew\AppData\Roaming\HandBrake\Nightly

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

 # Starting Encode ...

[01:10:00] base preset: H.264 MKV 720p30 (Modified)
[01:10:00] Remote Process started with Process ID: 10024 using port: 8037. Max Allowed Instances: 1
[01:10:01] Worker: Starting HandBrake Engine ...
[01:10:01] Worker: Starting Web Server on port 8037 ...
[01:10:01] Worker: Disconnected worker monitoring enabled!
[01:10:01] Compile-time hardening features are enabled
[01:10:05] vcn: is available
Cannot load nvEncodeAPI64.dll
[01:10:05] hb_init: starting libhb thread
[01:10:05] Starting work at: Wed Nov 09 01:10:05 2022
[01:10:05] 1 job(s) to process
[01:10:05] 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"
    ]
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "D:\\ERDDUG_CommHDD\\Mdcctechtalkbillbuxton 2Mb Ch9_QSV_AV1_20_Quality.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": 14,
        "Settings": {
          "crop-bottom": "4",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "716",
          "width": "1280"
        }
      },
      {
        "ID": 7,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "D:\\ERDDUG_CommHDD\\MDCCTechTalkBillBuxton_2MB_ch9.wmv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "qsv_av1",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "lowpower=1",
    "Preset": "quality",
    "Profile": "auto",
    "Quality": 20,
    "QSV": {
      "Decode": true
    },
    "HardwareDecode": 4
  }
}
[01:10:05] CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
[01:10:05]  - Intel microarchitecture Skylake
[01:10:05]  - logical processor count: 8
[01:10:05] Intel Quick Sync Video support: yes, gpu list: 1, 2
[01:10:05] Intel Quick Sync Video discrete adapter with index 1
[01:10:05] Impl mfx-gen library path: C:\Windows\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_4f045c845295e0cc\libmfx64-gen.dll
[01:10:05]  - Intel Media SDK hardware: API 2.7 (minimum: 1.3)
[01:10:05]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[01:10:05]  - H.264 encoder: yes
[01:10:05]     - preferred implementation: hardware (2) via D3D11
[01:10:05]     - capabilities (hardware):  lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[01:10:05]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[01:10:05]     - preferred implementation: hardware (2) via D3D11
[01:10:05]     - capabilities (hardware):  lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1 hyperencode
[01:10:05]  - AV1 encoder: yes (8bit: yes, 10bit: yes)
[01:10:05]     - preferred implementation: hardware (2) via D3D11
[01:10:05]     - capabilities (hardware):  lowpower bpyramid icq vsinfo opt1 av1bitstream
[01:10:05] Intel Quick Sync Video integrated adapter with index 2
[01:10:05] Impl mfxhw64 library path: C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_51f685305808e3a5\libmfxhw64.dll
[01:10:05]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[01:10:05]  - Decode support:  h264 hevc (8bit: yes, 10bit: no)
[01:10:05]  - H.264 encoder: yes
[01:10:05]     - preferred implementation: hardware (3) via D3D11
[01:10:05]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[01:10:05]  - H.265 encoder: yes (8bit: yes, 10bit: no)
[01:10:05]     - preferred implementation: hardware (3) via D3D11
[01:10:05]     - capabilities (hardware):  bpyramid icq vsinfo masteringinfo cllinfo opt1
[01:10:05]  - AV1 encoder: no
[01:10:05] hb_scan: path=D:\ERDDUG_CommHDD\MDCCTechTalkBillBuxton_2MB_ch9.wmv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image D:\ERDDUG_CommHDD\MDCCTechTalkBillBuxton_2MB_ch9.wmv
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
[01:10:05] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdrlibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
ead: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[01:10:05] dvd: not a dvd - trying as a stream/file instead
Input #0, asf, from 'D:\ERDDUG_CommHDD\MDCCTechTalkBillBuxton_2MB_ch9.wmv':
  Metadata:
    WMFSDKNeeded    : 0.0.0.0000
    DeviceConformanceTemplate: MP@HL
    NumberOfFrames  : 135534
    WMFSDKVersion   : 12.0.7600.16385
    IsVBR           : 0
  Duration: 01:30:21.82, start: 0.000000, bitrate: 1132 kb/s
  Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 channels, fltp, 128 kb/s
  Stream #0:1: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 1280x720, 5754 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn
[01:10:05] scan: decoding previews for title 1
[01:10:05] scan: audio 0x0: wmav2, rate=48000Hz, bitrate=128016 Unknown (wmav2) (2.0 ch) (128 kbps)
[01:10:05] scan: 10 previews, 1280x720, 25.000 fps, autocrop = 0/4/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[01:10:05] libhb: scan thread found 1 valid title(s)
[01:10:05] qsv: discrete qsv adapter with index 1 has been selected
[01:10:05] Skipping subtitle scan.  No suitable subtitle tracks.
[01:10:05] Starting Task: Encoding Pass
[01:10:05] Skipping vfr filter
[01:10:05] work: track 1, dithering not supported by codec
[01:10:05] work: only 1 chapter, disabling chapter markers
[01:10:05] job configuration:
[01:10:05]  * source
[01:10:05]    + D:\ERDDUG_CommHDD\MDCCTechTalkBillBuxton_2MB_ch9.wmv
[01:10:05]    + title 1, chapter(s) 1 to 1
[01:10:05]    + container: asf
[01:10:05]    + data rate: 1132 kbps
[01:10:05]  * destination
[01:10:05]    + D:\ERDDUG_CommHDD\Mdcctechtalkbillbuxton 2Mb Ch9_QSV_AV1_20_Quality.mkv
[01:10:05]    + container: Matroska (libavformat)
[01:10:05]  * video track
[01:10:05]    + decoder: wmv3 8-bit (yuv420p)
[01:10:05]      + bitrate 5754 kbps
[01:10:05]    + filters
[01:10:05]      + 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)
[01:10:05]      + Decomb (mode=39)
[01:10:05]      + Crop and Scale (width=1280:height=716:crop-top=0:crop-bottom=4:crop-left=0:crop-right=0)
[01:10:05]        + source: 1280 * 720, crop (0/4/0/0): 1280 * 716, scale: 1280 * 716
[01:10:05]      + Format (format=nv12)
[01:10:05]    + Output geometry
[01:10:05]      + storage dimensions: 1280 x 716
[01:10:05]      + pixel aspect ratio: 1 : 1
[01:10:05]      + display dimensions: 1280 x 716
[01:10:05]    + encoder: AV1 (Intel Media SDK)
[01:10:05]      + preset:  quality
[01:10:05]      + options: lowpower=1
[01:10:05]      + profile: auto
[01:10:05]      + level:   auto
[01:10:05]      + quality: 20.00 (ICQ)
[01:10:05]      + color profile: 1-1-1
[01:10:05]      + chroma location: left
[01:10:05]  * audio track 1
[01:10:05]    + decoder: Unknown (wmav2) (2.0 ch) (128 kbps) (track 1, id 0x0)
[01:10:05]      + bitrate: 128 kbps, samplerate: 48000 Hz
[01:10:05]    + mixdown: Stereo
[01:10:05]    + encoder: AAC (libavcodec)
[01:10:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
[01:10:05] sync: expecting 135545 video frames
[01:10:06] Unknown Header.BufferId=1396846913
[01:10:06] encqsvInit: using encode-only (LowPower) path
[01:10:06] encqsvInit: AV1 Main profile @ level 3.1
[01:10:06] encqsvInit: TargetUsage 1 AsyncDepth 6
[01:10:06] encqsvInit: GopRefDist 4 GopPicSize 28 NumRefFrame 2
[01:10:06] encqsvInit: BFramesMax 3 BRefType pyramid
[01:10:06] encqsvInit: RateControlMethod ICQ ICQQuality 20
[01:10:06] sync: first pts video is 0
[01:10:06] sync: "Chapter 1" (1) at frame 1 time 0
[01:10:06] qsv_enc_init: using 'hardware (2) via D3D11' implementation, API: 2.7
[01:10:07] sync: first pts audio 0x0 is 7680
[01:16:22] sync: audio 0x0 time went backwards 213 ms, dropped 1 frames. PTS 183041280
Error code -21,	hb_qsv_wait_on_sync	607
encqsv: hb_qsv_wait_on_sync failed (-21)
encqsvWork: qsv_enc_work failed -21
[01:20:43] work: average encoding speed for job is 134.009567 fps
[01:20:43] comb detect: heavy 955 | light 6477 | uncombed 77887 | total 85319
[01:20:43] decomb: deinterlaced 955 | blended 6475 | unfiltered 77885 | total 85315
[01:20:43] wmav2-decoder done: 20009 frames, 0 decoder errors
[01:20:43] wmv3-decoder done: 85360 frames, 0 decoder errors
[01:20:43] sync: got 85320 frames, 135545 expected
[01:20:43] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
[01:20:43] mux: track 0, 85257 frames, 189466303 bytes, 444.45 kbps, fifo 8192
[01:20:43] mux: track 1, 159784 frames, 68205270 bytes, 160.00 kbps, fifo 8192
[01:20:43] Finished work at: Wed Nov 09 01:20:43 2022
[01:20:43] libhb: work result = 4

 # Job Failed (4)


GDILord
Posts: 4
Joined: Tue Nov 08, 2022 11:30 pm

Re: AV1 Encoding Error on Intel ARC A750 when using the "Quality" Encoder Preset

Post by GDILord »

I tried it again, and it worked. So I'm not really sure what to say about it now?
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: AV1 Encoding Error on Intel ARC A750 when using the "Quality" Encoder Preset

Post by s55 »

Couple of Points,

Your CPU / GPU combination are not technically supported by Intel.

The ARC drivers still need some work so are a little flaky right now. Expect to have some turmoil for a while.

If you bought a A750 for purely AV1 encoding, might want to return it for an A380. As far as I'm aware, the encode engine is the same on both cards.
GDILord
Posts: 4
Joined: Tue Nov 08, 2022 11:30 pm

Re: AV1 Encoding Error on Intel ARC A750 when using the "Quality" Encoder Preset

Post by GDILord »

Thank you for the reply, @s55. I know, I'm planning on upgrading in the near future. I'm more than happy to wait for the drivers to improve and I'm happy to work around issues if/when they arise. I'm in the fortunate position to part of Intel Graphics' #JoinTheOdyssey program as a community guide, so I didn't purchase the card. I am quite interested in how to use it's features and also it's compute with programs like Handbrake and get my hands a little bit dirty with Intel's oneAPI.
Post Reply