H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

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
minru
Posts: 4
Joined: Tue Oct 17, 2017 12:31 pm

H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by minru »

Hello,

Can someone explain me, why on an older version of handbrake 0.10.5, I can encode 1080p video at 190-200fps using H.264(intel QSV) video codec and the CPU is almost idle. But on the latest version of handbrake 1.0.7, with the same video settings I can get only 80-90fps... and the CPU is heavy loaded ~90%

My system specifications: CPU i7-6700 with intel HD 530 graphics, 8GB RAM

Encode logs:

Handbrake 0.10.5

Code: Select all

HandBrake 0.10.5.0 - 64bit Version
OS: Microsoft Windows NT 6.2.9200.0 - 64bit
CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
Ram: 7864 MB, 
GPU Information:
  NVIDIA GeForce GT 710 - 22.21.13.8205
  Intel(R) HD Graphics 530 - 21.20.16.4551
Screen: 1920x1080
Temp Dir: C:\Users\Mindaugas\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Mindaugas\AppData\Roaming\HandBrake Team\HandBrake\0.10.5.0

-------------------------------------------
CLI Query:  -i "D:\ffmpeg\macas.m2ts" -t 1 --angle 1 --start-at duration:0 --stop-at duration:120 -o "D:\ffmpeg\handbrake.mp4"  -f mp4  -w 1920 --crop 0:0:0:0 --loose-anamorphic  --modulus 2 -e qsv_h264 -b 8000 --cfr -a 1 -E av_aac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ac3 --markers="C:\Users\Mindaugas\AppData\Local\Temp\handbrake-1-chapters.csv" --encoder-preset=balanced --encoder-level="4.2"  --encoder-profile=high  --verbose=1

[10:19:08] hb_init: starting libhb thread
HandBrake 0.10.5 (2016021100) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening D:\ffmpeg\macas.m2ts...
[10:19:08] CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
[10:19:08]  - logical processor count: 8
[10:19:08] OpenCL device #1: NVIDIA Corporation GeForce GT 710
[10:19:08]  - OpenCL version: 1.2 CUDA
[10:19:08]  - driver version: 382.05
[10:19:08]  - device type:    GPU
[10:19:08]  - supported:      no
[10:19:08] OpenCL device #2: Intel(R) Corporation Intel(R) HD Graphics 530
[10:19:08]  - OpenCL version: 2.0 
[10:19:08]  - driver version: 21.20.16.4551
[10:19:08]  - device type:    GPU
[10:19:08]  - supported:      YES
[10:19:08] Intel Quick Sync Video support: yes
[10:19:08]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[10:19:08]  - H.264 encoder: yes
[10:19:08]     - preferred implementation: hardware (any)
[10:19:08]  - H.265 encoder: no
[10:19:08] hb_scan: path=D:\ffmpeg\macas.m2ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\ffmpeg\macas.m2ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\ffmpeg\macas.m2ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(D:\ffmpeg\macas.m2ts) failed
[10:19:08] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[10:19:08] dvd: not a dvd - trying as a stream/file instead
[10:19:08] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[10:19:08] Found the following PIDS
[10:19:08]     Video PIDS : 
[10:19:08]       0x1011 type H.264 (0x1b)
[10:19:08]     Audio PIDS : 
[10:19:08]       0x1100 type AC3 (0x81)
[10:19:08]     Subtitle PIDS : 
[10:19:08]       0x1200 type PGS Subtitle (0x90)
[10:19:08]     Other PIDS : 
[10:19:08]       0x1001 type Unknown (0xff) (PCR)
[10:19:08] stream id 0x1100 (type 0x81 substream 0x0) audio 0x1100
[10:19:08] stream id 0x1200 (type 0x90 substream 0x0) subtitle 0x1200
[10:19:08] stream doesn't seem to have video IDR frames
[10:19:08] scan: decoding previews for title 1
[10:19:08] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[10:19:08] scan: audio 0x1100: ac3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
Scanning title 1 of 1, preview 1, 10.00 %
Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 6, 60.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 9, 90.00 %
Scanning title 1 of 1, preview 10, 100.00 %[10:19:10] stream: 32 good frames, 0 errors (0%)
[10:19:10] scan: 10 previews, 1920x1080, 50.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[10:19:10] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\ffmpeg\macas.m2ts
  + duration: 01:09:33
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 50.000 fps
  + autocrop: 0/0/0/0
  + support opencl: yes
  + support hwd: yes
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 01:09:33
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 256000bps
  + subtitle tracks:
    + 1, Unknown (iso639-2: und) (Bitmap)(PGS)
Reading chapter markers from file C:\Users\Mindaugas\AppData\Local\Temp\handbrake-1-chapters.csv
[10:19:10] 1 job(s) to process
[10:19:10] starting job
[10:19:10] do_job: QSV: full path, removing unsupported filter 'Framerate Shaper'
[10:19:10] work: sanitizing track 1 mixdown Dolby Pro Logic II to Stereo
[10:19:10] sync: expecting 6050 video frames
[10:19:10] work: only 1 chapter, disabling chapter markers
[10:19:10] job configuration:
[10:19:10]  * source
[10:19:10]    + D:\ffmpeg\macas.m2ts
[10:19:10]    + title 1, start 00:00:0.00 stop 00:02:0.00
[10:19:10]  * destination
[10:19:10]    + D:\ffmpeg\handbrake.mp4
[10:19:10]    + container: MPEG-4 (libavformat)
[10:19:10]  * video track
[10:19:10]    + decoder: h264_qsv
[10:19:10]      + bitrate 200 kbps
[10:19:10]    + loose anamorphic
[10:19:10]      + storage dimensions: 1920 * 1080, mod 2
[10:19:10]      + pixel aspect ratio: 1 / 1
[10:19:10]      + display dimensions: 1920 * 1080
[10:19:10]    + encoder: H.264 (Intel Media SDK)
[10:19:10]      + preset:  balanced
[10:19:10]      + profile: high
[10:19:10]      + level:   4.2
[10:19:10]      + bitrate: 8000 kbps, pass: 0
[10:19:10]  * audio track 1
[10:19:10]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x1100)
[10:19:10]      + bitrate: 256 kbps, samplerate: 48000 Hz
[10:19:10]    + mixdown: Stereo
[10:19:10]    + encoder: AAC (libavcodec)
[10:19:10]      + bitrate: 160 kbps, samplerate: 48000 Hz
[10:19:10] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[10:19:10] reader: first SCR 35000 id 0x1011 DTS 78200
[10:19:10] h264_qsv: "Chapter 1" (1) at frame 0 time 1800
[10:19:10] encqsvInit: using full QSV path
[10:19:10] encqsvInit: TargetUsage 4 AsyncDepth 4
[10:19:10] encqsvInit: GopRefDist 3 GopPicSize 50 NumRefFrame 1
[10:19:10] encqsvInit: BFrames on BPyramid off
[10:19:10] encqsvInit: AdaptiveI off AdaptiveB off
[10:19:10] encqsvInit: RateControlMethod VBR TargetKbps 8000 MaxKbps 12000 BufferSizeInKB 3000 InitialDelayInKB 1500
[10:19:10] encqsvInit: CAVLC off
[10:19:10] encqsvInit: ExtBRC off
[10:19:10] encqsvInit: MBBRC on
[10:19:10] encqsvInit: Trellis off
[10:19:10] encqsvInit: H.264 profile High @ level 4.2
[10:19:10] sync: first pts is 1800
[10:19:10] qsv_enc_init: using 'hardware (2)' implementation, API: 1.19
[10:19:41] sync: reached pts 10800000, exiting early
[10:19:41] work: average encoding speed for job is 192.322937 fps
[10:19:41] reader: done. 1 scr changes
[10:19:41] sync: got 6000 frames, 6050 expected
[10:19:41] h264_qsv-decoder done: 6045 frames, 0 decoder errors, 0 drops
[10:19:41] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[10:19:41] mux: track 0, 6000 frames, 124140186 bytes, 8276.01 kbps, fifo 512
[10:19:41] mux: track 1, 5624 frames, 2402337 bytes, 160.16 kbps, fifo 512
[10:19:41] stream: 6054 good frames, 0 errors (0%)
[10:19:41] libhb: work result = 0
Encode done!
HandBrake has exited.

Handbrake 1.0.7

Code: Select all

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.15063.0 - 64bit
CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
Ram: 7864 MB, 
GPU Information:
  NVIDIA GeForce GT 710 - 22.21.13.8205
  Intel(R) HD Graphics 530 - 21.20.16.4551
Screen: 1920x1080
Temp Dir: C:\Users\Mindaugas\AppData\Local\Temp\
Install Dir: D:\HandBrake
Data Dir: C:\Users\Mindaugas\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0

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


# Starting Encode ...

[10:38:36] hb_init: starting libhb thread
[10:38:36] 1 job(s) to process
[10:38:36] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "File": "D:\\ffmpeg\\test.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "time",
      "Start": 0,
      "End": 10800000
    },
    "Title": 1,
    "Path": "D:\\ffmpeg\\macas.m2ts"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 256,
    "Level": "4.2",
    "Bitrate": 8000,
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "high",
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[10:38:36] CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
[10:38:36]  - Intel microarchitecture Skylake
[10:38:36]  - logical processor count: 8
[10:38:36] Intel Quick Sync Video support: yes
[10:38:36]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[10:38:36]  - H.264 encoder: yes
[10:38:36]     - preferred implementation: hardware (any)
[10:38:36]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[10:38:36]  - H.265 encoder: yes
[10:38:36]     - preferred implementation: hardware (any)
[10:38:36]     - capabilities (hardware):  bpyramid vsinfo opt1
[10:38:36] hb_scan: path=D:\ffmpeg\macas.m2ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\ffmpeg\macas.m2ts
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[10:38:36] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[10:38:36] dvd: not a dvd - trying as a stream/file instead
[10:38:36] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[10:38:36] Found the following PIDS
[10:38:36]     Video PIDS :
[10:38:36]       0x1011 type H.264 (0x1b)
[10:38:36]     Audio PIDS :
[10:38:36]       0x1100 type AC3 (0x81)
[10:38:36]     Subtitle PIDS :
[10:38:36]       0x1200 type PGS Subtitle (0x90)
[10:38:36]     Other PIDS :
[10:38:36]       0x1001 type Unknown (0xff) (PCR)
[10:38:36] stream id 0x1100 (type 0x81 substream 0x0) audio 0x1100
[10:38:36] stream id 0x1200 (type 0x90 substream 0x0) subtitle 0x1200
[10:38:36] stream doesn't seem to have video IDR frames
[10:38:36] scan: decoding previews for title 1
[10:38:36] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[10:38:36] scan: audio 0x1100: ac3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
[10:38:37] stream: 25 good frames, 0 errors (0%)
[10:38:37] scan: 10 previews, 1920x1080, 50.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[10:38:37] scan: supported video decoders: avcodec qsv
[10:38:37] libhb: scan thread found 1 valid title(s)
[10:38:37] starting job
[10:38:37] yadif thread started for segment 0
[10:38:37] work: track 1, dithering not supported by codec
[10:38:37] yadif thread started for segment 1
[10:38:37] work: only 1 chapter, disabling chapter markers
[10:38:37] job configuration:
[10:38:37] yadif thread started for segment 2
[10:38:37]  * source
[10:38:37]    + D:\ffmpeg\macas.m2ts
[10:38:37]    + title 1, start 00:00:0.00 stop 00:02:0.00
[10:38:37]  * destination
[10:38:37] yadif thread started for segment 3
[10:38:37]    + D:\ffmpeg\test.mp4
[10:38:37]    + container: MPEG-4 (libavformat)
[10:38:37]  * video track
[10:38:37]    + decoder: h264_qsv
[10:38:37]      + bitrate 200 kbps
[10:38:37]    + filters
[10:38:37] yadif thread started for segment 4
[10:38:37]      + Decomb (mode=7)
[10:38:37]      + Framerate Shaper (mode=1)
[10:38:37]        + frame rate: 50.000 fps -> constant 50.000 fps
[10:38:37]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[10:38:37]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[10:38:37]    + Output geometry
[10:38:37]      + storage dimensions: 1920 x 1080
[10:38:37]      + pixel aspect ratio: 1 : 1
[10:38:37]      + display dimensions: 1920 x 1080
[10:38:37]    + encoder: H.264 (Intel Media SDK)
[10:38:37] yadif thread started for segment 5
[10:38:37]      + preset:  balanced
[10:38:37]      + profile: high
[10:38:37]      + level:   4.2
[10:38:37]      + bitrate: 8000 kbps, pass: 0
[10:38:37]  * audio track 1
[10:38:37]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x1100)
[10:38:37]      + bitrate: 256 kbps, samplerate: 48000 Hz
[10:38:37]    + mixdown: Stereo
[10:38:37]    + encoder: AAC (libavcodec)
[10:38:37] yadif thread started for segment 6
[10:38:37]      + bitrate: 160 kbps, samplerate: 48000 Hz
[10:38:37] yadif thread started for segment 7
[10:38:37] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[10:38:37] sync: expecting 6050 video frames
[10:38:37] encqsvInit: using encode-only path
[10:38:37] encqsvInit: H.264/AVC High profile @ level 4.2
[10:38:37] encqsvInit: TargetUsage 4 AsyncDepth 3
[10:38:37] encqsvInit: GopRefDist 3 GopPicSize 50 NumRefFrame 1
[10:38:37] encqsvInit: BFramesMax 2 BRefType off
[10:38:37] encqsvInit: RateControlMethod VBR TargetKbps 8000 MaxKbps 12000 BufferSizeInKB 3000 InitialDelayInKB 1500
[10:38:37] sync: first pts video is 0
[10:38:37] sync: first pts audio 0x1100 is 0
[10:38:38] qsv_enc_init: using 'hardware (2)' implementation, API: 1.19
[10:39:49] sync: reached video pts 10800000, exiting early
[10:39:49] sync: reached audio 0x1100 pts 10800000, exiting early
[10:39:49] work: average encoding speed for job is 84.000511 fps
[10:39:49] decomb: deinterlaced 6000 | blended 0 | unfiltered 0 | total 6000
[10:39:49] vfr: 6000 frames output, 0 dropped and 0 duped for CFR/PFR
[10:39:49] vfr: lost time: 0 (0 frames)
[10:39:49] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:39:49] stream: 6097 good frames, 0 errors (0%)
[10:39:49] ac3-decoder done: 3810 frames, 0 decoder errors
[10:39:49] h264_qsv-decoder done: 6082 frames, 0 decoder errors
[10:39:49] sync: got 6000 frames, 6050 expected
[10:39:49] sync: framerate min 50.000 fps, max 50.000 fps, avg 50.000 fps
[10:39:49] mux: track 0, 6000 frames, 124624153 bytes, 8306.89 kbps, fifo 512
[10:39:49] mux: track 1, 5625 frames, 2402744 bytes, 160.16 kbps, fifo 512
[10:39:49] libhb: work result = 0

# Encode Completed ...

Regards,
Mindaugas
Last edited by minru on Wed Oct 18, 2017 7:43 am, edited 1 time in total.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by mduell »

Activity Log is required for support requests. See Must Read: How To Get Questions Answered on These Forums for details
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by Woodstock »

What mduell said - we can't tell you anything until we see what DIFFERENT PARAMETERS you used for the various rips. We need to see the encode logs for the same title done on both 0.10.x and 1.0.x.

0.10.x has many different defaults that 1.0.x, and most of the presets are geared for quality before speed. And a difference in filter selection will drastically affect CPU loading.
minru
Posts: 4
Joined: Tue Oct 17, 2017 12:31 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by minru »

I have added Encode logs for 0.10.5 and 1.0.7. Same source, same length on 1.0.7 avg fps is 84.000511, on 0.10.5 192.322937
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by rollin_eng »

Turn off the decomb filter, see if that helps.
minru
Posts: 4
Joined: Tue Oct 17, 2017 12:31 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by minru »

Thank You rollin_eng, now it is much better 135fps and ~40% CPU, but not so good as 0.10.5
I have read "Detelecine" as "Deinterlace" :)

Code: Select all

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.15063.0 - 64bit
CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
Ram: 7864 MB, 
GPU Information:
  NVIDIA GeForce GT 710 - 22.21.13.8205
  Intel(R) HD Graphics 530 - 21.20.16.4551
Screen: 1920x1080
Temp Dir: C:\Users\Mindaugas\AppData\Local\Temp\
Install Dir: D:\HandBrake
Data Dir: C:\Users\Mindaugas\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0

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



# Starting Encode ...

[12:00:52] hb_init: starting libhb thread
[12:00:52] 1 job(s) to process
[12:00:52] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "File": "D:\\ffmpeg\\test.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "time",
      "Start": 0,
      "End": 10800000
    },
    "Title": 1,
    "Path": "D:\\ffmpeg\\macas.m2ts"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 256,
    "Level": "4.2",
    "Bitrate": 8000,
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "high",
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[12:00:52] CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
[12:00:52]  - Intel microarchitecture Skylake
[12:00:52]  - logical processor count: 8
[12:00:52] Intel Quick Sync Video support: yes
[12:00:52]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[12:00:52]  - H.264 encoder: yes
[12:00:52]     - preferred implementation: hardware (any)
[12:00:52]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[12:00:52]  - H.265 encoder: yes
[12:00:52]     - preferred implementation: hardware (any)
[12:00:52]     - capabilities (hardware):  bpyramid vsinfo opt1
[12:00:52] hb_scan: path=D:\ffmpeg\macas.m2ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\ffmpeg\macas.m2ts
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[12:00:52] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[12:00:52] dvd: not a dvd - trying as a stream/file instead
[12:00:52] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[12:00:52] Found the following PIDS
[12:00:52]     Video PIDS :
[12:00:52]       0x1011 type H.264 (0x1b)
[12:00:52]     Audio PIDS :
[12:00:52]       0x1100 type AC3 (0x81)
[12:00:52]     Subtitle PIDS :
[12:00:52]       0x1200 type PGS Subtitle (0x90)
[12:00:52]     Other PIDS :
[12:00:52]       0x1001 type Unknown (0xff) (PCR)
[12:00:52] stream id 0x1100 (type 0x81 substream 0x0) audio 0x1100
[12:00:52] stream id 0x1200 (type 0x90 substream 0x0) subtitle 0x1200
[12:00:52] stream doesn't seem to have video IDR frames
[12:00:52] scan: decoding previews for title 1
[12:00:52] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[12:00:52] scan: audio 0x1100: ac3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
[12:00:53] stream: 25 good frames, 0 errors (0%)
[12:00:53] scan: 10 previews, 1920x1080, 50.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[12:00:53] scan: supported video decoders: avcodec qsv
[12:00:53] libhb: scan thread found 1 valid title(s)
[12:00:53] starting job
[12:00:53] work: track 1, dithering not supported by codec
[12:00:53] job configuration:
[12:00:53]  * source
[12:00:53]    + D:\ffmpeg\macas.m2ts
[12:00:53]    + title 1, start 00:00:0.00 stop 00:02:0.00
[12:00:53]  * destination
[12:00:53]    + D:\ffmpeg\test.mp4
[12:00:53]    + container: MPEG-4 (libavformat)
[12:00:53]  * video track
[12:00:53]    + decoder: h264_qsv
[12:00:53]      + bitrate 200 kbps
[12:00:53]    + filters
[12:00:53]      + Framerate Shaper (mode=1)
[12:00:53]        + frame rate: 50.000 fps -> constant 50.000 fps
[12:00:53]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[12:00:53]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[12:00:53]    + Output geometry
[12:00:53]      + storage dimensions: 1920 x 1080
[12:00:53]      + pixel aspect ratio: 1 : 1
[12:00:53]      + display dimensions: 1920 x 1080
[12:00:53]    + encoder: H.264 (Intel Media SDK)
[12:00:53]      + preset:  balanced
[12:00:53]      + profile: high
[12:00:53]      + level:   4.2
[12:00:53]      + bitrate: 8000 kbps, pass: 0
[12:00:53]  * audio track 1
[12:00:53]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x1100)
[12:00:53]      + bitrate: 256 kbps, samplerate: 48000 Hz
[12:00:53]    + mixdown: Stereo
[12:00:53]    + encoder: AAC (libavcodec)
[12:00:53]      + bitrate: 160 kbps, samplerate: 48000 Hz
[12:00:53] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[12:00:53] sync: expecting 6050 video frames
[12:00:53] encqsvInit: using encode-only path
[12:00:53] encqsvInit: H.264/AVC High profile @ level 4.2
[12:00:53] encqsvInit: TargetUsage 4 AsyncDepth 3
[12:00:53] encqsvInit: GopRefDist 3 GopPicSize 50 NumRefFrame 1
[12:00:53] encqsvInit: BFramesMax 2 BRefType off
[12:00:53] encqsvInit: RateControlMethod VBR TargetKbps 8000 MaxKbps 12000 BufferSizeInKB 3000 InitialDelayInKB 1500
[12:00:53] sync: first pts video is 0
[12:00:53] sync: first pts audio 0x1100 is 0
[12:00:54] qsv_enc_init: using 'hardware (2)' implementation, API: 1.19
[12:01:38] sync: reached video pts 10800000, exiting early
[12:01:38] sync: reached audio 0x1100 pts 10800000, exiting early
[12:01:38] work: average encoding speed for job is 135.836700 fps
[12:01:38] vfr: 6000 frames output, 0 dropped and 0 duped for CFR/PFR
[12:01:38] vfr: lost time: 0 (0 frames)
[12:01:38] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:01:38] stream: 6111 good frames, 0 errors (0%)
[12:01:38] ac3-decoder done: 3819 frames, 0 decoder errors
[12:01:38] h264_qsv-decoder done: 6093 frames, 0 decoder errors
[12:01:38] sync: got 6000 frames, 6050 expected
[12:01:38] sync: framerate min 50.000 fps, max 50.000 fps, avg 50.000 fps
[12:01:38] mux: track 0, 6000 frames, 124308076 bytes, 8285.82 kbps, fifo 1024
[12:01:38] mux: track 1, 5625 frames, 2402744 bytes, 160.16 kbps, fifo 512
[12:01:38] libhb: work result = 0

# Encode Completed ...

User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by s55 »

We are re-architecting how QSV is integrated to make it easier to maintain. Some of this work is reliant on changes in upstream libav. So we are still in-progress with this. There is an overhead to our current methods in 1.0.x which will mean a performance hit.

As long as your not using software filters, (which your now not) you'll get as fast as it can go.
CPU usage is always expected. LibHB still needs to use the CPU for it's own processes and any other filters/encoders (i.e audio) that are running.

Numbers above look to be in the right sorta ballpark for what we would expect. It'll hopefully improve in future release as we refactor out overheads. (1.2 or later)
minru
Posts: 4
Joined: Tue Oct 17, 2017 12:31 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by minru »

Thank You for detailed answer s55
mextreme
Posts: 6
Joined: Tue Jan 09, 2018 7:04 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by mextreme »

Thank you for the description.

I had same problem when I upgraded to 1.0.7. I figured out a change in a filter default was part of the encoding slowdown.
Using what I believe to be the same parameters between versions, I am seeing about 11% decrease in encoding speed
when comparing 0.10.5 to 1.0.7.

Bummed to take a performance penalty, is the quality any better in 1.0.7 to make it worth it?
I don't use filters - just pass the video/audio through to compress the video more in a MKV file.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by rollin_eng »

mextreme wrote: Tue Jan 09, 2018 7:40 pm Using what I believe to be the same parameters between versions, I am seeing about 11% decrease in encoding speed
when comparing 0.10.5 to 1.0.7
Could you please post your logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html
mextreme
Posts: 6
Joined: Tue Jan 09, 2018 7:04 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by mextreme »

Hope this is correct and helpful.

0.10.5 with average encoding speed for job is 199.506531 fps

Code: Select all

HandBrake 0.10.5.0 - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz
Ram: 7895 MB, 
GPU Information:
  mv video hook driver2 - 6.0.1.0
  Intel(R) HD Graphics 4000 - 10.18.10.3496
Screen: 1920x1080
Temp Dir: C:\Users\mark\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\mark\AppData\Roaming\HandBrake Team\HandBrake\0.10.5.0

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

CLI Query:  -i "C:\Video\Acme_3\Acme_3_t03.mkv" -t 1 --angle 1 -c 1-21 -o "C:\Video\Acme_3\Acme 3.mkv"  -f mkv  -w 1920 --crop 138:138:0:0 --loose-anamorphic  --modulus 2 -e qsv_h264 -q 22 --cfr -a 1 -E copy:dtshd -6 none -R Auto -B 0 -D 0 --gain 0 --audio-fallback ac3 --subtitle 1,2,3,4 --markers="C:\Users\mark\AppData\Local\Temp\Acme 3-1-chapters.csv" --encoder-preset=balanced --encoder-level="4.0"  --encoder-profile=main  --verbose=1

[19:14:25] hb_init: starting libhb thread
HandBrake 0.10.5 (2016021100) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening C:\Video\Acme_3\Acme_3_t03.mkv...
[19:14:25] CPU: Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz
[19:14:25]  - Intel microarchitecture Ivy Bridge
[19:14:25]  - logical processor count: 4
[19:14:25] OpenCL device #1: Intel(R) Corporation Intel(R) HD Graphics 4000
[19:14:25]  - OpenCL version: 1.2 
[19:14:25]  - driver version: 10.18.10.3496
[19:14:25]  - device type:    GPU
[19:14:25]  - supported:      no
[19:14:25] Intel Quick Sync Video support: yes
[19:14:25]  - Intel Media SDK hardware: API 1.8 (minimum: 1.3)
[19:14:25]  - H.264 encoder: yes
[19:14:25]     - preferred implementation: hardware (any)
[19:14:25]  - H.265 encoder: no
[19:14:25] hb_scan: path=C:\Video\Acme_3\Acme_3_t03.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Video\Acme_3\Acme_3_t03.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Video\Acme_3\Acme_3_t03.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(C:\Video\Acme_3\Acme_3_t03.mkv) failed
[19:14:25] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[19:14:25] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Video\Acme_3\Acme_3_t03.mkv':
  Metadata:
    title           : Acme 3
  Duration: 01:42:25.01, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 297.255292
    Metadata:
      title           : Chapter 01
    Chapter #0.1: start 297.255292, end 654.987667
    Metadata:
      title           : Chapter 02
    Chapter #0.2: start 654.987667, end 839.338500
    Metadata:
      title           : Chapter 03
    Chapter #0.3: start 839.338500, end 1095.344250
    Metadata:
      title           : Chapter 04
    Chapter #0.4: start 1095.344250, end 1267.641375
    Metadata:
      title           : Chapter 05
    Chapter #0.5: start 1267.641375, end 2048.880167
    Metadata:
      title           : Chapter 06
    Chapter #0.6: start 2048.880167, end 2272.103167
    Metadata:
      title           : Chapter 07
    Chapter #0.7: start 2272.103167, end 2564.812250
    Metadata:
      title           : Chapter 08
    Chapter #0.8: start 2564.812250, end 2984.398083
    Metadata:
      title           : Chapter 09
    Chapter #0.9: start 2984.398083, end 3237.734500
    Metadata:
      title           : Chapter 10
    Chapter #0.10: start 3237.734500, end 3497.494000
    Metadata:
      title           : Chapter 11
    Chapter #0.11: start 3497.494000, end 3567.522292
    Metadata:
      title           : Chapter 12
    Chapter #0.12: start 3567.522292, end 3735.940542
    Metadata:
      title           : Chapter 13
    Chapter #0.13: start 3735.940542, end 3995.533208
    Metadata:
      title           : Chapter 14
    Chapter #0.14: start 3995.533208, end 4113.109000
    Metadata:
      title           : Chapter 15
    Chapter #0.15: start 4113.109000, end 4548.126917
    Metadata:
      title           : Chapter 16
    Chapter #0.16: start 4548.126917, end 4857.853000
    Metadata:
      title           : Chapter 17
    Chapter #0.17: start 4857.853000, end 5382.418708
    Metadata:
      title           : Chapter 18
    Chapter #0.18: start 5382.418708, end 5537.031500
    Metadata:
      title           : Chapter 19
    Chapter #0.19: start 5537.031500, end 5640.092792
    Metadata:
      title           : Chapter 20
    Chapter #0.20: start 5640.092792, end 6145.013875
    Metadata:
      title           : Chapter 21
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 21638459
      DURATION-eng    : 01:42:25.013875000
      NUMBER_OF_FRAMES-eng: 147333
      NUMBER_OF_BYTES-eng: 16621076914
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.1(eng): Audio: dca (DTS-HD MA), 48000 Hz, 5.1, fltp, 1536 kb/s (default)
    Metadata:
      title           : Surround 7.1
      BPS-eng         : 4414994
      DURATION-eng    : 01:42:25.024000000
      NUMBER_OF_FRAMES-eng: 576096
      NUMBER_OF_BYTES-eng: 3391280792
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.2(eng): Audio: dca (DTS), 48000 Hz, 5.1, fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:42:25.024000000
      NUMBER_OF_FRAMES-eng: 576096
      NUMBER_OF_BYTES-eng: 1159105152
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.3(eng): Audio: dca (DTS-HD HRA), 48000 Hz, 5.1, fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 2046000
      DURATION-eng    : 01:42:25.024000000
      NUMBER_OF_FRAMES-eng: 576096
      NUMBER_OF_BYTES-eng: 1571589888
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.4(eng): Audio: dca (DTS), 48000 Hz, 5.1, fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:42:25.024000000
      NUMBER_OF_FRAMES-eng: 576096
      NUMBER_OF_BYTES-eng: 1159105152
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.5(eng): Subtitle: pgssub
    Metadata:
      BPS-eng         : 48805
      DURATION-eng    : 01:40:48.438229166
      NUMBER_OF_FRAMES-eng: 2852
      NUMBER_OF_BYTES-eng: 36899584
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.6(eng): Subtitle: pgssub
    Metadata:
      BPS-eng         : 57867
      DURATION-eng    : 01:40:49.564354166
      NUMBER_OF_FRAMES-eng: 3860
      NUMBER_OF_BYTES-eng: 43759408
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.7(eng): Subtitle: pgssub
    Metadata:
      BPS-eng         : 75550
      DURATION-eng    : 01:41:46.204270833
      NUMBER_OF_FRAMES-eng: 3934
      NUMBER_OF_BYTES-eng: 57665715
      SOURCE_ID-eng   : 001204
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0.8(eng): Subtitle: pgssub
    Metadata:
      BPS-eng         : 78290
      DURATION-eng    : 01:41:46.204270833
      NUMBER_OF_FRAMES-eng: 4004
      NUMBER_OF_BYTES-eng: 59757199
      SOURCE_ID-eng   : 001205
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[19:14:25] scan: decoding previews for title 1
[19:14:25] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
[19:14:25] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[19:14:25] scan: audio 0x3: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD HRA) (5.1 ch)
[19:14:25] scan: audio 0x4: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
Scanning title 1 of 1, preview 1, 10.00 %
Scanning title 1 of 1, preview 3, 30.00 %
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 6, 60.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 9, 90.00 %[19:14:26] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
Scanning title 1 of 1, preview 10, 100.00 %[19:14:26] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: C:\Video\Acme_3\Acme_3_t03.mkv
  + duration: 01:42:25
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + support opencl: no
  + support hwd: yes
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:04:57
    + 2: cells 0->0, 0 blocks, duration 00:05:58
    + 3: cells 0->0, 0 blocks, duration 00:03:04
    + 4: cells 0->0, 0 blocks, duration 00:04:16
    + 5: cells 0->0, 0 blocks, duration 00:02:52
    + 6: cells 0->0, 0 blocks, duration 00:13:01
    + 7: cells 0->0, 0 blocks, duration 00:03:43
    + 8: cells 0->0, 0 blocks, duration 00:04:53
    + 9: cells 0->0, 0 blocks, duration 00:07:00
    + 10: cells 0->0, 0 blocks, duration 00:04:13
    + 11: cells 0->0, 0 blocks, duration 00:04:20
    + 12: cells 0->0, 0 blocks, duration 00:01:10
    + 13: cells 0->0, 0 blocks, duration 00:02:48
    + 14: cells 0->0, 0 blocks, duration 00:04:20
    + 15: cells 0->0, 0 blocks, duration 00:01:58
    + 16: cells 0->0, 0 blocks, duration 00:07:15
    + 17: cells 0->0, 0 blocks, duration 00:05:10
    + 18: cells 0->0, 0 blocks, duration 00:08:45
    + 19: cells 0->0, 0 blocks, duration 00:02:35
    + 20: cells 0->0, 0 blocks, duration 00:01:43
    + 21: cells 0->0, 0 blocks, duration 00:08:25
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (DTS-HD HRA) (5.1 ch) (iso639-2: eng)
    + 4, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Bitmap)(PGS)
    + 2, English (iso639-2: eng) (Bitmap)(PGS)
    + 3, English (iso639-2: eng) (Bitmap)(PGS)
    + 4, English (iso639-2: eng) (Bitmap)(PGS)
Reading chapter markers from file C:\Users\mark\AppData\Local\Temp\Acme 3-1-chapters.csv
[19:14:26] 1 job(s) to process
[19:14:26] starting job
[19:14:26] do_job: QSV: full path, removing unsupported filter 'Framerate Shaper'
[19:14:26] sync: expecting 147332 video frames
[19:14:26] job configuration:
[19:14:26]  * source
[19:14:26]    + C:\Video\Acme_3\Acme_3_t03.mkv
[19:14:26]    + title 1, chapter(s) 1 to 21
[19:14:26]    + container: matroska,webm
[19:14:26]  * destination
[19:14:26]    + C:\Video\Acme_3\Acme 3.mkv
[19:14:26]    + container: Matroska (libavformat)
[19:14:26]      + chapter markers
[19:14:26]  * video track
[19:14:26]    + decoder: h264_qsv
[19:14:26]    + filter
[19:14:26]      + Quick Sync Video VPP (1920:804:138:138:0:0_dei:0)
[19:14:26]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[19:14:26]    + loose anamorphic
[19:14:26]      + storage dimensions: 1920 * 804, mod 2
[19:14:26]      + pixel aspect ratio: 1 / 1
[19:14:26]      + display dimensions: 1920 * 804
[19:14:26]    + encoder: H.264 (Intel Media SDK)
[19:14:26]      + preset:  balanced
[19:14:26]      + profile: main
[19:14:26]      + level:   4.0
[19:14:26]      + quality: 22.00 (QP)
[19:14:26]  * subtitle track 1, English (track 5, id 0x5) Picture [PGS] -> Passthrough
[19:14:26]  * subtitle track 2, English (track 6, id 0x6) Picture [PGS] -> Passthrough
[19:14:26]  * subtitle track 3, English (track 7, id 0x7) Picture [PGS] -> Passthrough
[19:14:26]  * subtitle track 4, English (track 8, id 0x8) Picture [PGS] -> Passthrough
[19:14:26]  * audio track 1
[19:14:26]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[19:14:26]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[19:14:26]    + DTS-HD Passthru
[19:14:26] reader: first SCR 0 id 0x0 DTS 0
[19:14:26] encqsvInit: using full QSV path
[19:14:26] encqsvInit: TargetUsage 2 AsyncDepth 4
[19:14:26] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 2
[19:14:26] encqsvInit: BFrames on
[19:14:26] encqsvInit: AdaptiveI off AdaptiveB off
[19:14:26] encqsvInit: RateControlMethod CQP with QPI 22 QPP 24 QPB 26
[19:14:26] encqsvInit: CAVLC off
[19:14:26] encqsvInit: H.264 profile Main @ level 4.0
[19:14:27] qsv_enc_init: using 'hardware (1)' implementation, API: 1.8
[19:15:03] h264_qsv: "Chapter 2" (2) at frame 7136 time 26756730
[19:15:47] h264_qsv: "Chapter 3" (3) at frame 15712 time 58948920
[19:16:10] h264_qsv: "Chapter 4" (4) at frame 20132 time 75540510
[19:16:40] h264_qsv: "Chapter 5" (5) at frame 26271 time 98584740
[19:17:00] h264_qsv: "Chapter 6" (6) at frame 30402 time 114091470
[19:18:32] h264_qsv: "Chapter 7" (7) at frame 49133 time 184402980
[19:18:58] h264_qsv: "Chapter 8" (8) at frame 54485 time 204493050
[19:19:33] h264_qsv: "Chapter 9" (9) at frame 61503 time 230836860
[19:20:25] h264_qsv: "Chapter 10" (10) at frame 71563 time 268599600
[19:20:55] h264_qsv: "Chapter 11" (11) at frame 77636 time 291396150
[19:21:26] h264_qsv: "Chapter 12" (12) at frame 83864 time 314774460
[19:21:34] h264_qsv: "Chapter 13" (13) at frame 85544 time 321080760
[19:21:54] h264_qsv: "Chapter 14" (14) at frame 89581 time 336234690
[19:22:25] h264_qsv: "Chapter 15" (15) at frame 95806 time 359601750
[19:22:39] h264_qsv: "Chapter 16" (16) at frame 98624 time 370179810
[19:23:32] h264_qsv: "Chapter 17" (17) at frame 109054 time 409331430
[19:24:10] h264_qsv: "Chapter 18" (18) at frame 116480 time 437206770
[19:25:15] h264_qsv: "Chapter 19" (19) at frame 129057 time 484417710
[19:25:34] h264_qsv: "Chapter 20" (20) at frame 132764 time 498332880
[19:25:46] h264_qsv: "Chapter 21" (21) at frame 135235 time 507608370
[19:26:45] reader: done. 1 scr changes
[19:26:45] work: average encoding speed for job is 199.506531 fps
[19:26:45] sync: got 147333 frames, 147332 expected
[19:26:45] qsv_filter[Default] done: max_surfaces: 14/32 , max_syncs: 11/32
[19:26:45] h264_qsv-decoder done: 147333 frames, 0 decoder errors, 0 drops
[19:26:46] dca-decoder done: 0 frames, 0 decoder errors, 0 drops
[19:26:46] mux: track 0, 147333 frames, 3226752736 bytes, 4200.81 kbps, fifo 512
[19:26:46] mux: track 1, 576096 frames, 3391280792 bytes, 4415.00 kbps, fifo 2048
[19:26:46] mux: track 2, 2852 frames, 36899584 bytes, 48.04 kbps, fifo 32
[19:26:46] mux: track 3, 3860 frames, 43759408 bytes, 56.97 kbps, fifo 32
[19:26:46] mux: track 4, 3934 frames, 57665715 bytes, 75.07 kbps, fifo 32
[19:26:46] mux: track 5, 4004 frames, 59757199 bytes, 77.80 kbps, fifo 32
[19:26:46] libhb: work result = 0
Encode done!
HandBrake has exited.
1.0.7 with average encoding speed for job is 178.810806 fps

Code: Select all

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz
Ram: 7895 MB, 
GPU Information:
  mv video hook driver2 - 6.0.1.0
  Intel(R) HD Graphics 4000 - 10.18.10.3496
Screen: 1920x1080
Temp Dir: C:\Users\mark\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\mark\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0

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


# Starting Encode ...

[18:48:00] hb_init: starting libhb thread
[18:48:00] 1 job(s) to process
[18:48:00] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": 1125984256,
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      }
    ],
    "ChapterMarkers": true,
    "File": "C:\\Video\\Acme_3\\Acme 3_new2.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 2097152
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "138",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "138",
          "height": "804",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 21
    },
    "Title": 1,
    "Path": "C:\\Video\\Acme_3\\Acme_3_t03.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 3,
        "Offset": 0,
        "Track": 2
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 4,
        "Offset": 0,
        "Track": 3
      }
    ]
  },
  "Video": {
    "Encoder": 256,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "main",
    "Quality": 22.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[18:48:00] CPU: Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz
[18:48:00]  - Intel microarchitecture Ivy Bridge
[18:48:00]  - logical processor count: 4
[18:48:00] Intel Quick Sync Video support: yes
[18:48:00]  - Intel Media SDK hardware: API 1.8 (minimum: 1.3)
[18:48:00]  - H.264 encoder: yes
[18:48:00]     - preferred implementation: hardware (any)
[18:48:00]     - capabilities (hardware):  vsinfo opt1 opt2+extbrc+ib_adapt+nmpslice
[18:48:00]  - H.265 encoder: no
[18:48:00] hb_scan: path=C:\Video\Acme_3\Acme_3_t03.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image C:\Video\Acme_3\Acme_3_t03.mkv
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[18:48:00] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[18:48:00] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Video\Acme_3\Acme_3_t03.mkv':
  Metadata:
    title           : Acme 3
  Duration: 01:42:25.01, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 297.255292
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 297.255292, end 654.987667
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 654.987667, end 839.338500
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 839.338500, end 1095.344250
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1095.344250, end 1267.641375
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1267.641375, end 2048.880167
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2048.880167, end 2272.103167
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2272.103167, end 2564.812250
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2564.812250, end 2984.398083
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2984.398083, end 3237.734500
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 3237.734500, end 3497.494000
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3497.494000, end 3567.522292
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 3567.522292, end 3735.940542
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 3735.940542, end 3995.533208
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 3995.533208, end 4113.109000
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 4113.109000, end 4548.126917
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 4548.126917, end 4857.853000
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 4857.853000, end 5382.418708
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 5382.418708, end 5537.031500
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 5537.031500, end 5640.092792
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 5640.092792, end 6145.013875
    Metadata:
      title           : Chapter 21
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn
    Metadata:
      BPS-eng         : 21638459
      DURATION-eng    : 01:42:25.013875000
      NUMBER_OF_FRAMES-eng: 147333
      NUMBER_OF_BYTES-eng: 16621076914
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS-HD MA)
      48000 Hz, 5.1, fltp, 1536 kb/s (default)
    Metadata:
      title           : Surround 7.1
      BPS-eng         : 4414994
      DURATION-eng    : 01:42:25.024000000
      NUMBER_OF_FRAMES-eng: 576096
      NUMBER_OF_BYTES-eng: 3391280792
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: dts (DTS)
      48000 Hz, 5.1, fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:42:25.024000000
      NUMBER_OF_FRAMES-eng: 576096
      NUMBER_OF_BYTES-eng: 1159105152
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(eng): Audio: dts (DTS-HD HRA)
      48000 Hz, 5.1, fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 2046000
      DURATION-eng    : 01:42:25.024000000
      NUMBER_OF_FRAMES-eng: 576096
      NUMBER_OF_BYTES-eng: 1571589888
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(eng): Audio: dts (DTS)
      48000 Hz, 5.1, fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:42:25.024000000
      NUMBER_OF_FRAMES-eng: 576096
      NUMBER_OF_BYTES-eng: 1159105152
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 48805
      DURATION-eng    : 01:40:48.438229166
      NUMBER_OF_FRAMES-eng: 2852
      NUMBER_OF_BYTES-eng: 36899584
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 57867
      DURATION-eng    : 01:40:49.564354166
      NUMBER_OF_FRAMES-eng: 3860
      NUMBER_OF_BYTES-eng: 43759408
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:7(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 75550
      DURATION-eng    : 01:41:46.204270833
      NUMBER_OF_FRAMES-eng: 3934
      NUMBER_OF_BYTES-eng: 57665715
      SOURCE_ID-eng   : 001204
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:8(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 78290
      DURATION-eng    : 01:41:46.204270833
      NUMBER_OF_FRAMES-eng: 4004
      NUMBER_OF_BYTES-eng: 59757199
      SOURCE_ID-eng   : 001205
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-20 02:00:24
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[18:48:00] scan: decoding previews for title 1
[18:48:00] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
[18:48:00] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[18:48:00] scan: audio 0x3: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD HRA) (5.1 ch)
[18:48:00] scan: audio 0x4: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[18:48:02] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[18:48:02] scan: supported video decoders: avcodec qsv
[18:48:02] libhb: scan thread found 1 valid title(s)
[18:48:02] starting job
[18:48:02] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[18:48:02] Auto Passthru: fallback is AC3
[18:48:02] Auto Passthru: using DTS-HD Passthru for track 1
[18:48:02] job configuration:
[18:48:02]  * source
[18:48:02]    + C:\Video\Acme_3\Acme_3_t03.mkv
[18:48:02]    + title 1, chapter(s) 1 to 21
[18:48:02]    + container: matroska,webm
[18:48:02]  * destination
[18:48:02]    + C:\Video\Acme_3\Acme 3_new2.mkv
[18:48:02]    + container: Matroska (libavformat)
[18:48:02]      + chapter markers
[18:48:02]  * video track
[18:48:02]    + decoder: h264_qsv
[18:48:02]    + filters
[18:48:02]      + Framerate Shaper (mode=1)
[18:48:02]        + frame rate: 23.976 fps -> constant 23.976 fps
[18:48:02]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[18:48:02]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[18:48:02]    + Output geometry
[18:48:02]      + storage dimensions: 1920 x 804
[18:48:02]      + pixel aspect ratio: 1 : 1
[18:48:02]      + display dimensions: 1920 x 804
[18:48:02]    + encoder: H.264 (Intel Media SDK)
[18:48:02]      + preset:  balanced
[18:48:02]      + profile: main
[18:48:02]      + level:   auto
[18:48:02]      + quality: 22.00 (QP)
[18:48:02]  * subtitle track 1, English (track 0, id 0x5) Picture [PGS] -> Passthrough
[18:48:02]  * subtitle track 2, English (track 1, id 0x6) Picture [PGS] -> Passthrough
[18:48:02]  * subtitle track 3, English (track 2, id 0x7) Picture [PGS] -> Passthrough
[18:48:02]  * subtitle track 4, English (track 3, id 0x8) Picture [PGS] -> Passthrough
[18:48:02]  * audio track 1
[18:48:02]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[18:48:02]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[18:48:02]    + DTS-HD Passthru
[18:48:02] sync: expecting 147332 video frames
[18:48:02] encqsvInit: using encode-only path
[18:48:02] encqsvInit: H.264/AVC Main profile @ level 4.0
[18:48:02] encqsvInit: TargetUsage 2 AsyncDepth 3
[18:48:02] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 2
[18:48:02] encqsvInit: BFramesMax 3
[18:48:02] encqsvInit: RateControlMethod CQP with QPI 22 QPP 24 QPB 26
[18:48:02] sync: first pts video is 0
[18:48:02] sync: "Chapter 1" (1) at frame 1 time 0
[18:48:02] sync: first pts audio 0x1 is 0
[18:48:02] qsv_enc_init: using 'hardware (1)' implementation, API: 1.8
[18:48:03] sync: first pts subtitle 0x7 is 304020
[18:48:03] sync: first pts subtitle 0x8 is 304020
[18:48:08] sync: first pts subtitle 0x6 is 4117860
[18:48:08] sync: first pts subtitle 0x5 is 4219200
[18:48:44] sync: "Chapter 2" (2) at frame 7129 time 26756730
[18:49:32] sync: "Chapter 3" (3) at frame 15705 time 58948890
[18:49:58] sync: "Chapter 4" (4) at frame 20125 time 75540465
[18:50:31] sync: "Chapter 5" (5) at frame 26264 time 98584736
[18:50:53] sync: "Chapter 6" (6) at frame 30395 time 114091477
[18:52:36] sync: "Chapter 7" (7) at frame 49126 time 184402968
[18:53:05] sync: "Chapter 8" (8) at frame 54478 time 204493038
[18:53:44] sync: "Chapter 9" (9) at frame 61496 time 230836856
[18:54:42] sync: "Chapter 10" (10) at frame 71556 time 268599581
[18:55:15] sync: "Chapter 11" (11) at frame 77629 time 291396105
[18:55:49] sync: "Chapter 12" (12) at frame 83857 time 314774460
[18:55:59] sync: "Chapter 13" (13) at frame 85537 time 321080760
[18:56:21] sync: "Chapter 14" (14) at frame 89574 time 336234648
[18:56:56] sync: "Chapter 15" (15) at frame 95799 time 359601742
[18:57:11] sync: "Chapter 16" (16) at frame 98617 time 370179810
[18:58:10] sync: "Chapter 17" (17) at frame 109047 time 409331422
[18:58:52] sync: "Chapter 18" (18) at frame 116473 time 437206770
[19:00:05] sync: "Chapter 19" (19) at frame 129050 time 484417683
[19:00:25] sync: "Chapter 20" (20) at frame 132757 time 498332835
[19:00:39] sync: "Chapter 21" (21) at frame 135228 time 507608351
[19:01:46] reader: done. 1 scr changes
[19:01:46] work: average encoding speed for job is 178.810806 fps
[19:01:46] vfr: 147333 frames output, 0 dropped and 0 duped for CFR/PFR
[19:01:46] vfr: lost time: 0 (0 frames)
[19:01:46] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:01:46] dca-decoder done: 576096 frames, 0 decoder errors
[19:01:46] h264_qsv-decoder done: 147333 frames, 0 decoder errors
[19:01:46] sync: got 147333 frames, 147332 expected
[19:01:46] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
[19:01:46] mux: track 0, 147333 frames, 3228196614 bytes, 4202.66 kbps, fifo 512
[19:01:46] mux: track 1, 576096 frames, 3391280792 bytes, 4414.97 kbps, fifo 2048
[19:01:46] mux: track 2, 2852 frames, 36899584 bytes, 48.04 kbps, fifo 32
[19:01:46] mux: track 3, 3860 frames, 43759408 bytes, 56.97 kbps, fifo 32
[19:01:46] mux: track 4, 3934 frames, 57665715 bytes, 75.07 kbps, fifo 32
[19:01:46] mux: track 5, 4004 frames, 59757199 bytes, 77.80 kbps, fifo 32
[19:01:46] libhb: work result = 0

# Encode Completed ...
video.baba
Novice
Posts: 59
Joined: Sun May 24, 2015 11:12 am

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by video.baba »

Code: Select all

0.10.5
[19:14:26] encqsvInit: using full QSV path

1.0.7
[18:48:02] encqsvInit: using encode-only path
Make sure 'Disable QuickSync Decoding' is not enabled.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by rollin_eng »

Also try the nightly build.
mextreme
Posts: 6
Joined: Tue Jan 09, 2018 7:04 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by mextreme »

So, 'Disable QuickSync Decoding' was NOT checked (enabled). I am not sure why the logs show that.
I ran test again with Disabled checked and then back to NOT checked.
Is this a bug in the log statement?

Disabled is checked: job is 112.242035 fps, and encqsvInit: using encode-only path

Code: Select all

[09:12:10] starting job
[09:12:10] job configuration:
[09:12:10]  * source
[09:12:10]    + C:\Video\Acme_3\Acme_3_t03.mkv
[09:12:10]    + title 1, chapter(s) 1 to 21
[09:12:10]    + container: matroska,webm
[09:12:10]  * destination
[09:12:10]    + C:\Video\Acme_3\Acme 3_new3.mkv
[09:12:10]    + container: Matroska (libavformat)
[09:12:10]      + chapter markers
[09:12:10]  * video track
[09:12:10]    + decoder: h264
[09:12:10]    + filters
[09:12:10]      + Framerate Shaper (mode=1)
[09:12:10]        + frame rate: 23.976 fps -> constant 23.976 fps
[09:12:10]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[09:12:10]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[09:12:10]    + Output geometry
[09:12:10]      + storage dimensions: 1920 x 804
[09:12:10]      + pixel aspect ratio: 1 : 1
[09:12:10]      + display dimensions: 1920 x 804
[09:12:10]    + encoder: H.264 (Intel Media SDK)
[09:12:10]      + preset:  balanced
[09:12:10]      + profile: main
[09:12:10]      + level:   auto
[09:12:10]      + quality: 22.00 (QP)
[09:12:10]  * subtitle track 1, English (track 0, id 0x5) Picture [PGS] -> Passthrough
[09:12:10]  * subtitle track 2, English (track 1, id 0x6) Picture [PGS] -> Passthrough
[09:12:10]  * subtitle track 3, English (track 2, id 0x7) Picture [PGS] -> Passthrough
[09:12:10]  * subtitle track 4, English (track 3, id 0x8) Picture [PGS] -> Passthrough
[09:12:10]  * audio track 1
[09:12:10]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[09:12:10]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[09:12:10]    + DTS-HD Passthru
[09:12:10] sync: expecting 147332 video frames
[09:12:10] encqsvInit: using encode-only path
[09:12:10] encqsvInit: H.264/AVC Main profile @ level 4.0
[09:12:10] encqsvInit: TargetUsage 2 AsyncDepth 3
[09:12:10] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 2
[09:12:10] encqsvInit: BFramesMax 3
[09:12:10] encqsvInit: RateControlMethod CQP with QPI 22 QPP 24 QPB 26
[09:12:10] sync: first pts video is 0
[09:12:10] sync: "Chapter 1" (1) at frame 1 time 0
[09:12:10] sync: first pts audio 0x1 is 0
[09:12:10] qsv_enc_init: using 'hardware (1)' implementation, API: 1.8
[09:12:11] sync: first pts subtitle 0x7 is 304020
[09:12:11] sync: first pts subtitle 0x8 is 304020
[09:12:22] sync: first pts subtitle 0x6 is 4117860
[09:12:22] sync: first pts subtitle 0x5 is 4219200
[09:13:15] sync: "Chapter 2" (2) at frame 7129 time 26756730
[09:14:33] sync: "Chapter 3" (3) at frame 15705 time 58948890
[09:15:15] sync: "Chapter 4" (4) at frame 20125 time 75540465
[09:16:09] sync: "Chapter 5" (5) at frame 26264 time 98584736
[09:16:46] sync: "Chapter 6" (6) at frame 30395 time 114091477
[09:19:33] sync: "Chapter 7" (7) at frame 49126 time 184402968
[09:20:19] sync: "Chapter 8" (8) at frame 54478 time 204493038
[09:21:22] sync: "Chapter 9" (9) at frame 61496 time 230836856
[09:22:56] sync: "Chapter 10" (10) at frame 71556 time 268599581
[09:23:49] sync: "Chapter 11" (11) at frame 77629 time 291396105
[09:24:43] sync: "Chapter 12" (12) at frame 83857 time 314774460
[09:25:00] sync: "Chapter 13" (13) at frame 85537 time 321080760
[09:25:38] sync: "Chapter 14" (14) at frame 89574 time 336234648
[09:26:34] sync: "Chapter 15" (15) at frame 95799 time 359601742
[09:26:59] sync: "Chapter 16" (16) at frame 98617 time 370179810
[09:28:33] sync: "Chapter 17" (17) at frame 109047 time 409331422
[09:29:41] sync: "Chapter 18" (18) at frame 116473 time 437206770
[09:31:35] sync: "Chapter 19" (19) at frame 129050 time 484417683
[09:32:08] sync: "Chapter 20" (20) at frame 132757 time 498332835
[09:32:31] sync: "Chapter 21" (21) at frame 135228 time 507608351
[09:34:02] reader: done. 1 scr changes
[09:34:03] work: average encoding speed for job is 112.242035 fps
[09:34:03] vfr: 147333 frames output, 0 dropped and 0 duped for CFR/PFR
[09:34:03] vfr: lost time: 0 (0 frames)
[09:34:03] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:34:03] dca-decoder done: 576096 frames, 0 decoder errors
[09:34:03] h264-decoder done: 147333 frames, 0 decoder errors
[09:34:03] sync: got 147333 frames, 147332 expected
[09:34:03] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
[09:34:03] mux: track 0, 147333 frames, 3228196614 bytes, 4202.66 kbps, fifo 512
[09:34:03] mux: track 1, 576096 frames, 3391280792 bytes, 4414.97 kbps, fifo 2048
[09:34:03] mux: track 2, 2852 frames, 36899584 bytes, 48.04 kbps, fifo 32
[09:34:03] mux: track 3, 3860 frames, 43759408 bytes, 56.97 kbps, fifo 32
[09:34:03] mux: track 4, 3934 frames, 57665715 bytes, 75.07 kbps, fifo 32
[09:34:03] mux: track 5, 4004 frames, 59757199 bytes, 77.80 kbps, fifo 32
[09:34:03] libhb: work result = 0

# Encode Completed ...
Switched back to allowing, job is 180.643631 fps, and encqsvInit: using encode-only path

Code: Select all

[10:00:34] starting job
[10:00:34] job configuration:
[10:00:34]  * source
[10:00:34]    + C:\Video\Acme_3\Acme_3_t03.mkv
[10:00:34]    + title 1, chapter(s) 1 to 21
[10:00:34]    + container: matroska,webm
[10:00:34]  * destination
[10:00:34]    + C:\Video\Acme_3\Acme 3_new3.mkv
[10:00:34]    + container: Matroska (libavformat)
[10:00:34]      + chapter markers
[10:00:34]  * video track
[10:00:34]    + decoder: h264_qsv
[10:00:34]    + filters
[10:00:34]      + Framerate Shaper (mode=1)
[10:00:34]        + frame rate: 23.976 fps -> constant 23.976 fps
[10:00:34]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[10:00:34]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[10:00:34]    + Output geometry
[10:00:34]      + storage dimensions: 1920 x 804
[10:00:34]      + pixel aspect ratio: 1 : 1
[10:00:34]      + display dimensions: 1920 x 804
[10:00:34]    + encoder: H.264 (Intel Media SDK)
[10:00:34]      + preset:  balanced
[10:00:34]      + profile: main
[10:00:34]      + level:   auto
[10:00:34]      + quality: 22.00 (QP)
[10:00:34]  * subtitle track 1, English (track 0, id 0x5) Picture [PGS] -> Passthrough
[10:00:34]  * subtitle track 2, English (track 1, id 0x6) Picture [PGS] -> Passthrough
[10:00:34]  * subtitle track 3, English (track 2, id 0x7) Picture [PGS] -> Passthrough
[10:00:34]  * subtitle track 4, English (track 3, id 0x8) Picture [PGS] -> Passthrough
[10:00:34]  * audio track 1
[10:00:34]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[10:00:34]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[10:00:34]    + DTS-HD Passthru
[10:00:34] sync: expecting 147332 video frames
[10:00:34] encqsvInit: using encode-only path
[10:00:34] encqsvInit: H.264/AVC Main profile @ level 4.0
[10:00:34] encqsvInit: TargetUsage 2 AsyncDepth 3
[10:00:34] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 2
[10:00:34] encqsvInit: BFramesMax 3
[10:00:34] encqsvInit: RateControlMethod CQP with QPI 22 QPP 24 QPB 26
[10:00:34] sync: first pts video is 0
[10:00:34] sync: "Chapter 1" (1) at frame 1 time 0
[10:00:34] sync: first pts audio 0x1 is 0
[10:00:34] qsv_enc_init: using 'hardware (1)' implementation, API: 1.8
[10:00:35] sync: first pts subtitle 0x7 is 304020
[10:00:35] sync: first pts subtitle 0x8 is 304020
[10:00:41] sync: first pts subtitle 0x6 is 4117860
[10:00:41] sync: first pts subtitle 0x5 is 4219200
[10:01:15] sync: "Chapter 2" (2) at frame 7129 time 26756730
[10:02:03] sync: "Chapter 3" (3) at frame 15705 time 58948890
[10:02:28] sync: "Chapter 4" (4) at frame 20125 time 75540465
[10:03:01] sync: "Chapter 5" (5) at frame 26264 time 98584736
[10:03:23] sync: "Chapter 6" (6) at frame 30395 time 114091477
[10:05:06] sync: "Chapter 7" (7) at frame 49126 time 184402968
[10:05:34] sync: "Chapter 8" (8) at frame 54478 time 204493038
[10:06:13] sync: "Chapter 9" (9) at frame 61496 time 230836856
[10:07:10] sync: "Chapter 10" (10) at frame 71556 time 268599581
[10:07:43] sync: "Chapter 11" (11) at frame 77629 time 291396105
[10:08:17] sync: "Chapter 12" (12) at frame 83857 time 314774460
[10:08:26] sync: "Chapter 13" (13) at frame 85537 time 321080760
[10:08:48] sync: "Chapter 14" (14) at frame 89574 time 336234648
[10:09:22] sync: "Chapter 15" (15) at frame 95799 time 359601742
[10:09:38] sync: "Chapter 16" (16) at frame 98617 time 370179810
[10:10:36] sync: "Chapter 17" (17) at frame 109047 time 409331422
[10:11:18] sync: "Chapter 18" (18) at frame 116473 time 437206770
[10:12:29] sync: "Chapter 19" (19) at frame 129050 time 484417683
[10:12:50] sync: "Chapter 20" (20) at frame 132757 time 498332835
[10:13:04] sync: "Chapter 21" (21) at frame 135228 time 507608351
[10:14:10] reader: done. 1 scr changes
[10:14:10] work: average encoding speed for job is 180.643631 fps
[10:14:10] vfr: 147333 frames output, 0 dropped and 0 duped for CFR/PFR
[10:14:10] vfr: lost time: 0 (0 frames)
[10:14:10] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:14:10] dca-decoder done: 576096 frames, 0 decoder errors
[10:14:10] h264_qsv-decoder done: 147333 frames, 0 decoder errors
[10:14:10] sync: got 147333 frames, 147332 expected
[10:14:10] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
[10:14:10] mux: track 0, 147333 frames, 3228196614 bytes, 4202.66 kbps, fifo 512
[10:14:10] mux: track 1, 576096 frames, 3391280792 bytes, 4414.97 kbps, fifo 2048
[10:14:10] mux: track 2, 2852 frames, 36899584 bytes, 48.04 kbps, fifo 32
[10:14:10] mux: track 3, 3860 frames, 43759408 bytes, 56.97 kbps, fifo 32
[10:14:10] mux: track 4, 3934 frames, 57665715 bytes, 75.07 kbps, fifo 32
[10:14:10] mux: track 5, 4004 frames, 59757199 bytes, 77.80 kbps, fifo 32
[10:14:10] libhb: work result = 0

# Encode Completed ...
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by s55 »

It's not a bug in the log. The two paths, decode and encode are fully separate in 1.0.7. A later release will offer zero-copy mode again (under certain conditions as per 0.10.5) that will offer a small performance boost.

Either way, this is expected results.
mextreme
Posts: 6
Joined: Tue Jan 09, 2018 7:04 pm

Re: H.264(intel QSV) codec performance is very low on handbrake version 1.0.7

Post by mextreme »

Thanks for reviewing / explanation.
Post Reply