[Solved] QSV speed problems: VC-1 Blu-Ray

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
kvaruni
Novice
Posts: 56
Joined: Tue Mar 24, 2009 1:12 pm

[Solved] QSV speed problems: VC-1 Blu-Ray

Post by kvaruni »

I am having issues with a very limited number of Blu-Rays when converting them using Intel QSV. Normally everything works fine and I get around 240fps.

Let's get into the details. The Main Features of the Blu-Rays are extracted using MakeMKV. I'm using the (almost) latest nightly of Handbrake to convert and I'm using Windows 8.1. So far, the problem occurs with The Bucket List and The Shawshank Redemption. I can only post the activity log for the first movie as the other movie is currently in my other home, so you'll have to wait for that one. Both exhibit the problem that the QSV speed is abnormally slow, about 10fps. This is even slower than using software mode. The encoding result of The Bucket List is as would be expected. The encoding result of The Shawshank Redemption has a very slow video speed, as if every frame is played 10 times. It could very well be that this timing issue with The Shawshank Redemption does not occur anymore with the latest nightly build, as I did that encode a few months ago, but I do mention this other Blu-Ray as the speed issue was the same (though not the end result). I don't have the Blu-Ray of The Shawshank Redemption with me for the moment, so if it is still helpful to get the activity log up here I can only provide that in a week or so.

The problem is reproducible and only Handbrake is running. No other background software is present, as this particular install of Windows is solely for the purpose of using Handbrake.

The Activity Log for The Bucket List is shown below and - to me - it all seems normal.

Code: Select all

HandBrake svn5953 (Nightly Build) - 64bit Version
OS: Microsoft Windows NT 6.2.9200.0
CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
Ram: 8132 MB, 
GPU Information:
  Intel(R) HD Graphics 5000 - 10.18.10.3379
Screen: 1440x900
Temp Dir: C:\Users\Kim Bauters\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Kim Bauters\AppData\Roaming\HandBrake\HandBrake\0.0.0.5953

-------------------------------------------
CLI Query:  -i "E:\rips\The_Bucket_List_t00.mkv" -t 1 --angle 1 -c 1 -o "E:\converted\The Bucket List.m4v"  -f mp4  --decomb -w 1920 --crop 0:0:0:0 --loose-anamorphic  --modulus 2 -e qsv_h264 -q 20 --cfr -a 1 -E av_aac -6 stereo -R Auto -B 256 -D 0 --gain 0 --audio-fallback ac3 --qsv-preset=quality --h264-level="4.0"  --h264-profile=high  --verbose=1

[22:37:21] hb_init: starting libhb thread
HandBrake svn5953 (2014010301) - MinGW x86_64 - http://handbrake.fr
4 CPUs detected
Opening E:\rips\The_Bucket_List_t00.mkv...
[22:37:21] CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
[22:37:21]  - Intel microarchitecture Haswell
[22:37:21]  - logical processor count: 4
[22:37:21] OpenCL device #1: Intel(R) Corporation Intel(R) HD Graphics 5000
[22:37:21]  - OpenCL version: 1.2 
[22:37:21]  - driver version: 10.18.10.3379
[22:37:21]  - device type:    GPU
[22:37:21]  - supported:      YES
[22:37:21] Intel Quick Sync Video support: yes
[22:37:21]  - Intel Media SDK hardware: API 1.7 (minimum: 1.3)
[22:37:21]  - Preferred implementation: hardware (any)
[22:37:21] hb_scan: path=E:\rips\The_Bucket_List_t00.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening E:\rips\The_Bucket_List_t00.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening E:\rips\The_Bucket_List_t00.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(E:\rips\The_Bucket_List_t00.mkv) failed (0000000003bc1250)
[22:37:21] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[22:37:21] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\rips\The_Bucket_List_t00.mkv':
  Metadata:
    title           : The Bucket List
  Duration: 01:37:04.56, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 90.048292
    Metadata:
      title           : Chapter 01
    Chapter #0.1: start 90.048292, end 369.494125
    Metadata:
      title           : Chapter 02
    Chapter #0.2: start 369.494125, end 758.340917
    Metadata:
      title           : Chapter 03
    Chapter #0.3: start 758.340917, end 1026.191833
    Metadata:
      title           : Chapter 04
    Chapter #0.4: start 1026.191833, end 1390.597542
    Metadata:
      title           : Chapter 05
    Chapter #0.5: start 1390.597542, end 1770.852417
    Metadata:
      title           : Chapter 06
    Chapter #0.6: start 1770.852417, end 2129.877750
    Metadata:
      title           : Chapter 07
    Chapter #0.7: start 2129.877750, end 2325.197875
    Metadata:
      title           : Chapter 08
    Chapter #0.8: start 2325.197875, end 2523.562708
    Metadata:
      title           : Chapter 09
    Chapter #0.9: start 2523.562708, end 2758.380625
    Metadata:
      title           : Chapter 10
    Chapter #0.10: start 2758.380625, end 2979.351375
    Metadata:
      title           : Chapter 11
    Chapter #0.11: start 2979.351375, end 3184.431250
    Metadata:
      title           : Chapter 12
    Chapter #0.12: start 3184.431250, end 3470.049917
    Metadata:
      title           : Chapter 13
    Chapter #0.13: start 3470.049917, end 3822.610458
    Metadata:
      title           : Chapter 14
    Chapter #0.14: start 3822.610458, end 4003.457792
    Metadata:
      title           : Chapter 15
    Chapter #0.15: start 4003.457792, end 4158.779625
    Metadata:
      title           : Chapter 16
    Chapter #0.16: start 4158.779625, end 4450.946500
    Metadata:
      title           : Chapter 17
    Chapter #0.17: start 4450.946500, end 4595.716125
    Metadata:
      title           : Chapter 18
    Chapter #0.18: start 4595.716125, end 4854.224375
    Metadata:
      title           : Chapter 19
    Chapter #0.19: start 4854.224375, end 5003.456792
    Metadata:
      title           : Chapter 20
    Chapter #0.20: start 5003.456792, end 5215.585375
    Metadata:
      title           : Chapter 21
    Chapter #0.21: start 5215.585375, end 5541.410875
    Metadata:
      title           : Chapter 22
    Chapter #0.22: start 5541.410875, end 5824.568750
    Metadata:
      title           : Chapter 23
    Stream #0.0(eng): Video: vc1 (Advanced), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, fltp, 640 kb/s (default)
    Metadata:
      title           : 3/2+1
    Stream #0.2(eng): Subtitle: pgssub
[22:37:22] dxva2:DxFindVideoServiceConversion failed
[22:37:22] scan: decoding previews for title 1
[22:37:22] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 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 8, 80.00 %
Scanning title 1 of 1, preview 9, 90.00 %
Scanning title 1 of 1, preview 10, 100.00 %[22:37:23] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
Scanning title 1 of 1, preview 10, 100.00 %[22:37:24] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: E:\rips\The_Bucket_List_t00.mkv
  + duration: 01:37:04
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + support opencl: yes
  + support hwd: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:01:30
    + 2: cells 0->0, 0 blocks, duration 00:04:39
    + 3: cells 0->0, 0 blocks, duration 00:06:29
    + 4: cells 0->0, 0 blocks, duration 00:04:28
    + 5: cells 0->0, 0 blocks, duration 00:06:04
    + 6: cells 0->0, 0 blocks, duration 00:06:20
    + 7: cells 0->0, 0 blocks, duration 00:05:59
    + 8: cells 0->0, 0 blocks, duration 00:03:15
    + 9: cells 0->0, 0 blocks, duration 00:03:18
    + 10: cells 0->0, 0 blocks, duration 00:03:55
    + 11: cells 0->0, 0 blocks, duration 00:03:41
    + 12: cells 0->0, 0 blocks, duration 00:03:25
    + 13: cells 0->0, 0 blocks, duration 00:04:46
    + 14: cells 0->0, 0 blocks, duration 00:05:53
    + 15: cells 0->0, 0 blocks, duration 00:03:01
    + 16: cells 0->0, 0 blocks, duration 00:02:35
    + 17: cells 0->0, 0 blocks, duration 00:04:52
    + 18: cells 0->0, 0 blocks, duration 00:02:25
    + 19: cells 0->0, 0 blocks, duration 00:04:19
    + 20: cells 0->0, 0 blocks, duration 00:02:29
    + 21: cells 0->0, 0 blocks, duration 00:03:32
    + 22: cells 0->0, 0 blocks, duration 00:05:26
    + 23: cells 0->0, 0 blocks, duration 00:04:43
  + audio tracks:
    + 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 640000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Bitmap)(PGS)
[22:37:24] 1 job(s) to process
[22:37:24] starting job
[22:37:24] yadif thread started for segment 0
[22:37:24] yadif thread started for segment 1
[22:37:24] yadif thread started for segment 2
[22:37:24] yadif thread started for segment 3
[22:37:24] decomb filter thread started for segment 0
[22:37:24] decomb filter thread started for segment 1
[22:37:24] decomb filter thread started for segment 2
[22:37:24] decomb filter thread started for segment 3
[22:37:24] decomb check thread started for segment 0
[22:37:24] decomb check thread started for segment 1
[22:37:24] decomb check thread started for segment 2
[22:37:24] decomb check thread started for segment 3
[22:37:24] mask filter thread started for segment 0
[22:37:24] mask filter thread started for segment 1
[22:37:24] mask filter thread started for segment 2
[22:37:24] mask filter thread started for segment 3
[22:37:24] mask erode thread started for segment 0
[22:37:24] mask erode thread started for segment 1
[22:37:24] mask erode thread started for segment 2
[22:37:24] mask erode thread started for segment 3
[22:37:24] mask dilate thread started for segment 0
[22:37:24] mask dilate thread started for segment 1
[22:37:24] mask dilate thread started for segment 2
[22:37:24] mask dilate thread started for segment 3
[22:37:24] sync: expecting 2158 video frames
[22:37:24] job configuration:
[22:37:24]  * source
[22:37:24]    + E:\rips\The_Bucket_List_t00.mkv
[22:37:24]    + title 1, chapter(s) 1 to 1
[22:37:24]    + container: matroska,webm
[22:37:24]  * destination
[22:37:24]    + E:\converted\The Bucket List.m4v
[22:37:24]    + container: MPEG-4 (avformat)
[22:37:24]  * video track
[22:37:24]    + decoder: vc1
[22:37:24]    + filters
[22:37:24]      + Decomb (default settings)
[22:37:24]      + Framerate Shaper (1:27000000:1126125)
[22:37:24]        + frame rate: 23.976 fps -> constant 23.976 fps
[22:37:24]      + Crop and Scale (1920:1080:0:0:0:0)
[22:37:24]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[22:37:24]    + loose anamorphic
[22:37:24]      + storage dimensions: 1920 * 1080, mod 2
[22:37:24]      + pixel aspect ratio: 1 / 1
[22:37:24]      + display dimensions: 1920 * 1080
[22:37:24]    + encoder: H.264 (Intel QSV)
[22:37:24]      + QSV preset: quality
[22:37:24]      + h264 profile: high
[22:37:24]      + h264 level: 4.0
[22:37:24]      + quality: 20.00 (QP)
[22:37:24]  * audio track 1
[22:37:24]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[22:37:24]      + bitrate: 640 kbps, samplerate: 48000 Hz
[22:37:24]    + mixdown: Stereo
[22:37:24]    + encoder: AAC (avcodec)
[22:37:24]      + bitrate: 256 kbps, samplerate: 48000 Hz
[22:37:24] reader: first SCR 0 id 0x0 DTS 0
[22:37:24] encqsvInit: using encode-only path
[22:37:24] encqsvInit: TargetUsage 2 AsyncDepth 4
[22:37:24] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 3
[22:37:24] encqsvInit: BFrames on BPyramid on
[22:37:24] encqsvInit: RateControlMethod CQP with QPI 20 QPP 22 QPB 24
[22:37:24] encqsvInit: CAVLC off
[22:37:24] encqsvInit: Trellis off
[22:37:24] encqsvInit: H.264 profile High @ level 4.0
[22:37:26] qsv_enc_init: using 'hardware (1)' implementation, API: 1.7
[22:40:41] reader: end of chapter 1 (media 1) reached at media chapter 2
[22:40:41] reader: done. 1 scr changes
[22:40:43] work: average encoding speed for job is 10.872098 fps
[22:40:43] sync: got 2161 frames, 2158 expected
[22:40:43] decomb: deinterlaced 0 | blended 0 | unfiltered 2160 | total 2160
[22:40:43] render: 2160 frames output, 0 dropped and 0 duped for CFR/PFR
[22:40:43] render: lost time: 0 (0 frames)
[22:40:43] render: gained time: 0 (0 frames) (0 not accounted for)
[22:40:43] vc1-decoder done: 2161 frames, 0 decoder errors, 0 drops
[22:40:43] enc_qsv done: frames: 2160 in, 2160 out
[22:40:43] mux: track 0, 2160 frames, 76714929 bytes, 6809.14 kbps, fifo 512
[22:40:43] mux: track 1, 4226 frames, 2710412 bytes, 240.57 kbps, fifo 1024
[22:40:43] libhb: work result = 0
Encode done!
HandBrake has exited.
Last edited by kvaruni on Wed Jan 08, 2014 11:56 am, edited 1 time in total.
Deleted User 11865

Re: QSV speed problems

Post by Deleted User 11865 »

Only H.264 can be decoded in hardware right now. VC-1 Blu-rays will be processed using software decoding and scaling.

Also, you're using the decomb filter, which can be quite slow on 1080p content. In "full QSV" mode, it's automatically removed (because it hasn't been tested yet), so there's no speed hit from it, but if your Blu-ray's video track is encoded in VC-1 or MPEG-2, it'll stay enabled. It's typically unnecessary for high definition content, so you should just remove it.
kvaruni
Novice
Posts: 56
Joined: Tue Mar 24, 2009 1:12 pm

Re: [Solved] QSV speed problems: VC-1 Blu-Ray

Post by kvaruni »

Thank you, never noticed that it was a VC-1.

Also thanks for the hint about decomb. The setting I use is basically a "one size fits all" for Blu-Rays and DVDs. It has served me well so far but apparently there are border cases where it needs to be tweaked a bit, such as this one.
Deleted User 11865

Re: [Solved] QSV speed problems: VC-1 Blu-Ray

Post by Deleted User 11865 »

Eventually, we'll have decomb working with the full QSV path too, so you might as well get used to disabling it now ;-)
Post Reply