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.
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 ...
Mindaugas