Longtime handbrake user and huge fan, encoutering my first trouble with the program. Hope someone can help, espeically if this is an early problem that could eventually impact more Debian users.
I'm running the current Debian sid and have begun to experience very poor transcoding performance coupled with low CPU usage. On my system (an Intel 8700k CPU) I previously would get ~95 FPS rending SD content with x265/medium preset, but now average less than 30, with low CPU usage to match (~50% CPU usage on the most taxed core, ~30% on the remaining cores).
neofetch:
OS: Debian GNU/Linux bookworm/sid x86_64
,$$P' `$$$. Kernel: 6.0.0-4-amd64
',$$P ,ggs. `$$b: Uptime: 6 days, 14 hours, 11 mins
`d$$' ,$P"' . $$$ Packages: 3966 (dpkg), 16 (flatpak)
$$P d$' , $$P Shell: bash 5.2.2
$$: $$. - ,d$$' Resolution: 1920x1080, 1920x1200
$$; Y$b._ _,d$P' DE: Plasma 5.26.4
Y$$. `.`"Y$$$$P"' WM: KWin
`$$b "-.__ Theme: Breeze [Plasma], Breeze [GTK2/3]
`Y$$ Icons: [Plasma], breeze-dark [GTK2/3]
`Y$$. Terminal: konsole
`$$b. CPU: Intel i7-8700K (12) @ 4.700GHz
`Y$$b. GPU: NVIDIA GeForce GTX 1050 Ti
`"Y$b._ Memory: 4963MiB / 32021MiB
Steps to reproduce the problem (If Applicable):
All encodes suffer the same issue.
HandBrake version (e.g., 1.0.0):
1.5.1 (x86_64) (flatpak). I also tried the .deb from the current APT repository and had the same issue.
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Debian sid, kernel 6.0.0-4
HandBrake Activity Log ***required*** (see How-to get an activity log)
One sample encode:
Code: Select all
[10:12:55] gtkgui: HandBrake 1.5.1 (2022112600) - Linux x86_64 - https://handbrake.fr
[10:12:55] Compile-time hardening features are enabled
[10:12:55] hb_init: starting libhb thread
[10:12:55] hb_init: starting libhb thread
[10:12:55] hb_init: starting libhb thread
[10:14:50] CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
[10:14:50] - Intel microarchitecture Kaby Lake
[10:14:50] - logical processor count: 12
[10:14:50] Intel Quick Sync Video support: no
[10:14:50] hb_scan: path=/home/[trimmed]/B1_t00.mkv, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /home/[trimmed]/B1_t00.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(/home/[trimmed]/B1_t00.mkv/) failed
[10:14:51] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[10:14:51] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/home/[trimmed]/B1_t00.mkv':
Metadata:
encoder : libmakemkv v1.17.2 (1.3.10/1.5.2) x86_64-unknown-linux-gnu
creation_time : 2022-12-03T14:47:21.000000Z
Duration: 01:25:19.81, start: 0.000000, bitrate: 5698 kb/s
Chapters:
Chapter #0:0: start 0.066733, end 11.578233
Metadata:
title : Chapter 01
Chapter #0:1: start 11.578233, end 793.859733
Metadata:
title : Chapter 02
Chapter #0:2: start 793.859733, end 1529.594733
Metadata:
title : Chapter 03
Chapter #0:3: start 1529.594733, end 2071.135733
Metadata:
title : Chapter 04
Chapter #0:4: start 2071.135733, end 2430.494733
Metadata:
title : Chapter 05
Chapter #0:5: start 2430.494733, end 3008.572233
Metadata:
title : Chapter 06
Chapter #0:6: start 3008.572233, end 3966.529233
Metadata:
title : Chapter 07
Chapter #0:7: start 3966.529233, end 4310.372733
Metadata:
title : Chapter 08
Chapter #0:8: start 4310.372733, end 5078.139733
Metadata:
title : Chapter 09
Chapter #0:9: start 5078.139733, end 5119.814700
Metadata:
title : Chapter 10
Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], 5500 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
Metadata:
BPS-eng : 5499973
DURATION-eng : 01:25:19.814700000
NUMBER_OF_FRAMES-eng: 153441
NUMBER_OF_BYTES-eng: 3519855172
SOURCE_ID-eng : 0100E0
_STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-12-03 14:47:21
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Side data:
cpb: bitrate max/min/avg: 5500000/0/0 buffer size: 1835008 vbv_delay: N/A
Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
title : Stereo
BPS-eng : 192000
DURATION-eng : 01:25:19.808000000
NUMBER_OF_FRAMES-eng: 159994
NUMBER_OF_BYTES-eng: 122875392
SOURCE_ID-eng : 0180BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-12-03 14:47:21
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[10:14:51] scan: decoding previews for title 1
[10:14:51] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[10:14:51] scan: 10 previews, 720x480, 29.970 fps, autocrop = 6/6/0/20, aspect 4:3, PAR 8:9, color profile: 6-1-6, chroma location: left
[10:14:51] libhb: scan thread found 1 valid title(s)
[10:15:57] Starting work at: Sat Dec 3 10:15:57 2022
[10:15:57] 1 job(s) to process
[10:15:57] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": "stereo",
"Name": "Stereo",
"NormalizeMixLevel": false,
"PresetEncoder": "av_aac",
"Quality": -3.0,
"Samplerate": 0,
"Track": 0
}
],
"CopyMask": [
"copy:aac"
],
"FallbackEncoder": "av_aac"
},
"Destination": {
"AlignAVStart": false,
"ChapterList": [
{
"Duration": {
"Hours": 0,
"Minutes": 0,
"Seconds": 12,
"Ticks": 1042040
},
"Name": "Chapter 1"
},
{
"Duration": {
"Hours": 0,
"Minutes": 13,
"Seconds": 2,
"Ticks": 70405335
},
"Name": "Chapter 2"
},
{
"Duration": {
"Hours": 0,
"Minutes": 12,
"Seconds": 16,
"Ticks": 66216150
},
"Name": "Chapter 3"
},
{
"Duration": {
"Hours": 0,
"Minutes": 9,
"Seconds": 2,
"Ticks": 48738690
},
"Name": "Chapter 4"
},
{
"Duration": {
"Hours": 0,
"Minutes": 5,
"Seconds": 59,
"Ticks": 32342310
},
"Name": "Chapter 5"
},
{
"Duration": {
"Hours": 0,
"Minutes": 9,
"Seconds": 38,
"Ticks": 52026975
},
"Name": "Chapter 6"
},
{
"Duration": {
"Hours": 0,
"Minutes": 15,
"Seconds": 58,
"Ticks": 86216130
},
"Name": "Chapter 7"
},
{
"Duration": {
"Hours": 0,
"Minutes": 5,
"Seconds": 44,
"Ticks": 30945915
},
"Name": "Chapter 8"
},
{
"Duration": {
"Hours": 0,
"Minutes": 12,
"Seconds": 48,
"Ticks": 69099030
},
"Name": "Chapter 9"
},
{
"Duration": {
"Hours": 0,
"Minutes": 0,
"Seconds": 42,
"Ticks": 3750685
},
"Name": "Chapter 10"
}
],
"ChapterMarkers": true,
"File": "/tmp/hb.2/live01",
"InlineParameterSets": false,
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "mkv"
},
"Filters": {
"FilterList": [
{
"ID": 6,
"Settings": {
"mode": 1
}
},
{
"ID": 13,
"Settings": {
"crop-bottom": 6,
"crop-left": 0,
"crop-right": 20,
"crop-top": 4,
"height": 470,
"width": 700
}
}
]
},
"Metadata": {
"Name": "[trimmed]",
"ReleaseDate": "1978"
},
"PAR": {
"Den": 9,
"Num": 8
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"Path": "/home/[trimmed]/B1_t00.mkv",
"Range": {
"End": 1350000,
"SeekPoints": 10,
"Start": 2,
"Type": "preview"
},
"Title": 1
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"ChromaLocation": 1,
"ColorInputFormat": 0,
"ColorMatrix": 6,
"ColorOutputFormat": 0,
"ColorPrimaries": 6,
"ColorRange": 1,
"ColorTransfer": 1,
"Encoder": "x265_10bit",
"Level": "auto",
"Options": "",
"Preset": "medium",
"Profile": "auto",
"QSV": {
"AdapterIndex": 0,
"AsyncDepth": 0,
"Decode": false
},
"Quality": 17.0,
"Tune": "",
"Turbo": false,
"TwoPass": false
}
}
[10:15:57] CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
[10:15:57] - Intel microarchitecture Kaby Lake
[10:15:57] - logical processor count: 12
[10:15:57] Intel Quick Sync Video support: no
[10:15:57] hb_scan: path=/home/[trimmed]/B1_t00.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /home/[trimmed]/B1_t00.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(/home/[trimmed]/B1_t00.mkv/) failed
[10:15:57] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[10:15:57] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/home/[trimmed]/B1_t00.mkv':
Metadata:
encoder : libmakemkv v1.17.2 (1.3.10/1.5.2) x86_64-unknown-linux-gnu
creation_time : 2022-12-03T14:47:21.000000Z
Duration: 01:25:19.81, start: 0.000000, bitrate: 5698 kb/s
Chapters:
Chapter #0:0: start 0.066733, end 11.578233
Metadata:
title : Chapter 01
Chapter #0:1: start 11.578233, end 793.859733
Metadata:
title : Chapter 02
Chapter #0:2: start 793.859733, end 1529.594733
Metadata:
title : Chapter 03
Chapter #0:3: start 1529.594733, end 2071.135733
Metadata:
title : Chapter 04
Chapter #0:4: start 2071.135733, end 2430.494733
Metadata:
title : Chapter 05
Chapter #0:5: start 2430.494733, end 3008.572233
Metadata:
title : Chapter 06
Chapter #0:6: start 3008.572233, end 3966.529233
Metadata:
title : Chapter 07
Chapter #0:7: start 3966.529233, end 4310.372733
Metadata:
title : Chapter 08
Chapter #0:8: start 4310.372733, end 5078.139733
Metadata:
title : Chapter 09
Chapter #0:9: start 5078.139733, end 5119.814700
Metadata:
title : Chapter 10
Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], 5500 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
Metadata:
BPS-eng : 5499973
DURATION-eng : 01:25:19.814700000
NUMBER_OF_FRAMES-eng: 153441
NUMBER_OF_BYTES-eng: 3519855172
SOURCE_ID-eng : 0100E0
_STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-12-03 14:47:21
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Side data:
cpb: bitrate max/min/avg: 5500000/0/0 buffer size: 1835008 vbv_delay: N/A
Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
title : Stereo
BPS-eng : 192000
DURATION-eng : 01:25:19.808000000
NUMBER_OF_FRAMES-eng: 159994
NUMBER_OF_BYTES-eng: 122875392
SOURCE_ID-eng : 0180BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-12-03 14:47:21
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[10:15:57] scan: decoding previews for title 1
[10:15:57] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[10:15:57] scan: 10 previews, 720x480, 29.970 fps, autocrop = 6/6/0/20, aspect 4:3, PAR 8:9, color profile: 6-1-6, chroma location: left
[10:15:57] libhb: scan thread found 1 valid title(s)
[10:15:57] Starting Task: Encoding Pass
[10:15:57] job configuration:
[10:15:57] * source
[10:15:57] + /home/[trimmed]/B1_t00.mkv
[10:15:57] + title 1, start 00:00:0.00 stop 00:00:15.00
[10:15:57] + container: matroska,webm
[10:15:57] + data rate: 5698 kbps
[10:15:57] * destination
[10:15:57] + /tmp/hb.2/live01
[10:15:57] + container: Matroska (libavformat)
[10:15:57] + chapter markers
[10:15:57] * video track
[10:15:57] + decoder: mpeg2video 8-bit (yuv420p)
[10:15:57] + bitrate 5500 kbps
[10:15:57] + filters
[10:15:57] + Framerate Shaper (mode=1)
[10:15:57] + frame rate: 29.970 fps -> constant 29.970 fps
[10:15:57] + Crop and Scale (width=700:height=470:crop-top=4:crop-bottom=6:crop-left=0:crop-right=20)
[10:15:57] + source: 720 * 480, crop (4/6/0/20): 700 * 470, scale: 700 * 470
[10:15:57] + Output geometry
[10:15:57] + storage dimensions: 700 x 470
[10:15:57] + pixel aspect ratio: 8 : 9
[10:15:57] + display dimensions: 622 x 470
[10:15:57] + encoder: H.265 10-bit (libx265)
[10:15:57] + preset: medium
[10:15:57] + profile: auto
[10:15:57] + level: auto
[10:15:57] + quality: 17.00 (RF)
[10:15:57] + color profile: 6-1-6
[10:15:57] + chroma location: left
[10:15:57] * audio track 1
[10:15:57] + name: Stereo
[10:15:57] + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x1)
[10:15:57] + bitrate: 192 kbps, samplerate: 48000 Hz
[10:15:57] + mixdown: Stereo
[10:15:57] + encoder: AAC (libavcodec)
[10:15:57] + bitrate: 160 kbps, samplerate: 48000 Hz
[10:15:57] sync: expecting 479 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 12.1.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main 10 profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 12 threads
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 3 / wpp(8 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias : 30 / 300 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : CRF-17.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing deblock sao
[10:15:57] sync: first pts video is 0
[10:15:57] sync: "Chapter 2" (2) at frame 3 time 6006
[10:15:57] sync: first pts audio 0x1 is 8190
[10:16:11] sync: reached audio 0x1 pts 1350270, exiting early
[10:16:11] sync: reached video pts 1351350, exiting early
[10:16:14] work: average encoding speed for job is 30.815109 fps
[10:16:14] vfr: 450 frames output, 0 dropped and 0 duped for CFR/PFR
[10:16:14] vfr: lost time: 0 (0 frames)
[10:16:14] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:16:14] ac3-decoder done: 8457 frames, 0 decoder errors
[10:16:14] mpeg2video-decoder done: 8099 frames, 0 decoder errors
[10:16:14] sync: got 450 frames, 479 expected
[10:16:14] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x265 [info]: frame I: 3, Avg QP:18.17 kb/s: 8465.69
x265 [info]: frame P: 90, Avg QP:18.48 kb/s: 6121.86
x265 [info]: frame B: 357, Avg QP:22.55 kb/s: 2060.72
x265 [info]: Weighted P-Frames: Y:28.9% UV:17.8%
x265 [info]: consecutive B-frames: 3.2% 0.0% 1.1% 1.1% 94.6%
encoded 450 frames in 17.22s (26.13 fps), 2915.65 kb/s, Avg QP:21.70
[10:16:14] mux: track 0, 450 frames, 5474103 bytes, 2910.14 kbps, fifo 512
[10:16:14] mux: track 1, 700 frames, 299369 bytes, 159.15 kbps, fifo 1024
[10:16:14] Finished work at: Sat Dec 3 10:16:14 2022