More QSV fun

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
nasruddin
Posts: 49
Joined: Mon Jun 05, 2023 6:13 pm

More QSV fun

Post by nasruddin »

Description of problem or question:

I updated handbrake & tried my prior experiments on a particular set of files produced by MakeMKV using the Intel QSV preset.
Same issues. Also unchecked the enable low power hardware box at someone's suggestion; this caused a failure even
on the "speed" encoder preset, log file attached.


Steps to reproduce the problem (If Applicable):

See above


HandBrake version (e.g., 1.0.0):


173

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):


windows 11

HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.7.3 (2024021000)
OS: Microsoft Windows NT 10.0.22631.0
CPU: 13th Gen Intel(R) Core(TM) i7-1355U
Ram: 32479 MB, 
GPU Information:
  Intel(R) Iris(R) Xe Graphics - 31.0.101.4575
  NVIDIA GeForce RTX 3050 4GB Laptop GPU - 31.0.15.5123
Screen: 1920x1080
Temp Dir: C:\Users\whowho\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\whowho\AppData\Roaming\HandBrake

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

 # Starting Encode ...

[09:24:13] base preset: H.265 QSV 1080p
[09:24:13] Remote Process started with Process ID: 60636 using port: 8037. Max Allowed Instances: 1
[09:24:13] Worker: Starting HandBrake Engine ...
[09:24:13] Worker: Parent Process Id 60668
[09:24:13] Worker: Starting Web Server on port 8037 ...
[09:24:13] Worker: Starting Listener: 1
[09:24:14] Worker: Server Started
[09:24:14] Worker: Disconnected worker monitoring enabled!
[09:24:14] Compile-time hardening features are enabled
[09:24:14] nvenc: version 12.2 is available
[09:24:14] nvdec: is available
[09:24:14] CUDA Version: 8.6
[09:24:14] vcn: not available on this system
[09:24:15] qsv: is available on this system
[09:24:15] hb_init: starting libhb thread
[09:24:15] Starting work at: Thu Feb 22 09:24:15 2024
[09:24:15] 1 job(s) to process
[09:24:15] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Stereo",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac"
    ],
    "FallbackEncoder": "none"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "D:\\Users\\whowho\\Videos\\hbexp\\capture-process\\1-B2_T01-qsv-nolo-speed.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": "480",
          "width": "720"
        }
      },
      {
        "ID": 10,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 32,
    "Den": 27
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 5
    },
    "Title": 1,
    "Path": "D:\\Users\\whowho\\Videos\\hbexp\\haha\\disk4\\MakeMKV\\B2_t01.mkv",
    "HWDecode": 6
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "qsv_h265",
    "Level": "auto",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "lowpower=0",
    "Preset": "speed",
    "Profile": "auto",
    "Quality": 25,
    "QSV": {
      "Decode": true
    },
    "HardwareDecode": 0
  }
}
[09:24:15] CPU: 13th Gen Intel(R) Core(TM) i7-1355U
[09:24:15]  - logical processor count: 12
[09:24:15] Intel Quick Sync Video support: yes, gpu list: 1
[09:24:15] Intel Quick Sync Video integrated adapter with index 1
[09:24:15] Impl mfx-gen library path: C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_8d38a8081cfb8dcd\libmfx64-gen.dll
[09:24:15]  - Intel Media SDK hardware: API 2.9 (minimum: 1.3)
[09:24:15]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[09:24:15]  - H.264 encoder: yes
[09:24:15]     - preferred implementation: hardware (2) via D3D11
[09:24:15]     - capabilities (hardware):  lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[09:24:15]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[09:24:15]     - preferred implementation: hardware (2) via D3D11
[09:24:15]     - capabilities (hardware):  lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1
[09:24:15]  - AV1 encoder: no
[09:24:15] hb_scan: path=D:\Users\whowho\Videos\hbexp\haha\disk4\MakeMKV\B2_t01.mkv, title_index=1
Input #0, matroska,webm, from 'D:\Users\whowho\Videos\hbexp\haha\disk4\MakeMKV\B2_t01.mkv':
  Metadata:
    encoder         : libmakemkv v1.17.5 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2024-01-01T22:49:20.000000Z
  Duration: 00:16:25.28, start: 0.000000, bitrate: 7511 kb/s
  Chapters:
    Chapter #0:0: start 0.083417, end 21.104417
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 21.104417, end 341.424417
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 341.424417, end 615.698417
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 615.698417, end 984.066417
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 984.066417, end 985.284300
      Metadata:
        title           : Chapter 05
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, progressive), 720x480 [SAR 32:27 DAR 16:9], SAR 853:720 DAR 853:480, 29.97 fps, 29.97 tbr, 1k tbn
    Metadata:
      BPS-eng         : 5962606
      DURATION-eng    : 00:16:25.284300000
      NUMBER_OF_FRAMES-eng: 23623
      NUMBER_OF_BYTES-eng: 734357610
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2024-01-01 22:49:20
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      cpb: bitrate max/min/avg: 7000000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 1536000
      DURATION-eng    : 00:16:25.275000000
      NUMBER_OF_FRAMES-eng: 29559
      NUMBER_OF_BYTES-eng: 189172800
      SOURCE_ID-eng   : 01A0BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2024-01-01 22:49:20
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Subtitle: dvd_subtitle, 720x480 (default)
    Metadata:
      BPS-eng         : 6782
      DURATION-eng    : 00:16:16.397844444
      NUMBER_OF_FRAMES-eng: 270
      NUMBER_OF_BYTES-eng: 827784
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2024-01-01 22:49:20
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Subtitle: subrip
    Metadata:
      BPS-eng         : 127
      DURATION-eng    : 00:16:15.006000000
      NUMBER_OF_FRAMES-eng: 267
      NUMBER_OF_BYTES-eng: 15510
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2024-01-01 22:49:20
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[09:24:15] scan: decoding previews for title 1
[09:24:15] scan: audio 0x1: pcm_s16le, rate=48000Hz, bitrate=1536000 English (pcm_s16le, 2.0 ch, 1536 kbps)
[09:24:15] WARNING: bitstream PAR 32:27 != container PAR 853:720
[09:24:15] using bitstream PAR 32:27
[09:24:15] scan: 10 previews, 720x480, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 32:27, color profile: 6-1-6, chroma location: left
[09:24:15] libhb: scan thread found 1 valid title(s)
[09:24:15] Starting Task: Encoding Pass
[09:24:15] work: skipping crop/scale filter
[09:24:15] work: track 1, dithering not supported by codec
[09:24:15] job configuration:
[09:24:15]  * source
[09:24:15]    + D:\Users\whowho\Videos\hbexp\haha\disk4\MakeMKV\B2_t01.mkv
[09:24:15]    + title 1, chapter(s) 1 to 5
[09:24:15]    + container: matroska,webm
[09:24:15]    + data rate: 7511 kbps
[09:24:15]  * destination
[09:24:15]    + D:\Users\whowho\Videos\hbexp\capture-process\1-B2_T01-qsv-nolo-speed.mp4
[09:24:15]    + container: MPEG-4 (libavformat)
[09:24:15]      + chapter markers
[09:24:15]  * video track
[09:24:15]    + decoder: mpeg2video 8-bit (yuv420p)
[09:24:15]    + filters
[09:24:15]      + Framerate Shaper (mode=0)
[09:24:15]        + frame rate: same as source (around 23.976 fps)
[09:24:15]      + Format (format=nv12)
[09:24:15]    + Output geometry
[09:24:15]      + storage dimensions: 720 x 480
[09:24:15]      + pixel aspect ratio: 32 : 27
[09:24:15]      + display dimensions: 853 x 480
[09:24:15]    + encoder: H.265 (Intel Media SDK)
[09:24:15]      + preset:  speed
[09:24:15]      + options: lowpower=0
[09:24:15]      + profile: auto
[09:24:15]      + level:   auto
[09:24:15]      + quality: 25.00 (ICQ)
[09:24:15]      + color profile: 6-1-6
[09:24:15]      + chroma location: left
[09:24:15]  * audio track 1
[09:24:15]    + name: Stereo
[09:24:15]    + decoder: English (pcm_s16le, 2.0 ch, 1536 kbps) (track 1, id 0x1)
[09:24:15]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[09:24:15]    + mixdown: Stereo
[09:24:15]    + encoder: AAC (libavcodec)
[09:24:15]      + bitrate: 160 kbps, samplerate: 48000 Hz
[09:24:15] sync: expecting 23623 video frames
[09:24:16] encqsvInit: using encode-only via system memory path
[09:24:16] encqsvInit: H.265/HEVC Main profile @ level 3.0
[09:24:16] encqsvInit: TargetUsage 7 AsyncDepth 6
[09:24:16] encqsvInit: GopRefDist 8 GopPicSize 48 NumRefFrame 4 IdrInterval 0
[09:24:16] encqsvInit: BFramesMax 7 BRefType pyramid
[09:24:16] encqsvInit: RateControlMethod ICQ ICQQuality 25
[09:24:16] sync: first pts video is 0
[09:24:16] sync: first pts audio 0x1 is 0
[09:24:16] sync: "Chapter 1" (1) at frame 3 time 7507
[09:24:16] qsv_enc_init: using 'hardware (2) via D3D11' implementation, API: 2.9
[09:24:17] sync: "Chapter 2" (2) at frame 510 time 1910658
[mp4 @ 00000172ac38c200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 3753 >= -3754
avformatMux: track 0, av_interleaved_write_frame failed with error 'Invalid argument'
[mp4 @ 00000172ac38c200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 3753 >= 0
[mp4 @ 00000172ac38c200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 3753 >= 3753
[09:24:20] work: average encoding speed for job is 0.000000 fps
[09:24:20] vfr: 2118 frames output, 0 dropped
[09:24:20] vfr: lost time: 0 (0 frames)
[09:24:20] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:24:20] pcm_s16le-decoder done: 2723 frames, 0 decoder errors
[09:24:20] mpeg2video-decoder done: 2173 frames, 0 decoder errors
[09:24:20] sync: got 2127 frames, 23623 expected
[09:24:20] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[09:24:21] mux: track 0, 2094 frames, 8717245 bytes, 786.47 kbps, fifo 4096
[09:24:21] mux: track 1, 4156 frames, 1777824 bytes, 160.40 kbps, fifo 8192
EHW Exception: failed in core.DecreaseReference
EHW Exception: failed in core.DecreaseReference
EHW Exception: failed in core.DecreaseReference
EHW Exception: failed in core.DecreaseReference
EHW Exception: failed in core.DecreaseReference
[09:24:21] Finished work at: Thu Feb 22 09:24:21 2024
[09:24:21] libhb: work result = 4

 # Job Failed (4)


Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.
If you are unable to do so, please state why so we can help you.
Post Reply