How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
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
Boris911
Posts: 16
Joined: Sat Apr 23, 2022 10:59 am

How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by Boris911 »

Description of problem or question:
I have a dedicated server with two Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz (8 cores/16 threads = 16 cores/32 threads total), 64GB RAM, 1TB SSD and Ubuntu 22.04 LTS.

The weird thing is that it can't use the full power of the server when encoding, and Handbrake uses only max 25% of the total power of both CPUs. It's strange because when I installed Windows 10 Professional on a dedicated server via the iKVM console, the Windows version of Handbrake can use both CPUs to their full load potential.

But for security reasons, I'd rather have Linux on there (I connect via Putty with an SSH key to the dedicated server, where I have the port forwarded to 127.0.0.1:5901 and I connect via VNC Client from my machine. And there I run the Linux version of Handbrake.

It takes several times longer than on my home PC with AMD Ryzen 9 5950X, 64GB RAM, 1TB SSD and Windows 11 Professionl. But this one has a high power consumption of over 330W (according to the UPS consumption). The parameters in Handbrake, for x265 are the same as on the Linux version. Only at home I get it in 12 hours, but on a dedicated server it's 24-36 hours, because for some mysterious reason it can't use the full power of the XEON processors when running Linux. And the cost is "on par" with what I would pay for electricity if I encode it at home with the fans roaring (AMD Ryzen temperature when encoding is 89,7C with water cooler, with air cooler it went over 90C = 97C for example, which is harmful to the processor). When I turn on, at full blast, the mobile air conditioner, it's already roaring, like in a server room somewhere.

So I will sell my home computer and let the computational tasks (video encoding) run on a dedicated server. But it would like to solve that, so that Handbrake can load all cores in Linux, please.

I thank you very much in advance.



Steps to reproduce the problem (If Applicable):
On the HTOP and on the Gnome System Monitor is total CPUs usage only up to 25%.
Image
Image
Image



HandBrake version (e.g., 1.0.0):
1.5.1



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



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

Code: Select all

Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.
If you are unable to do so, please state why so we can help you.
User avatar
s55
HandBrake Team
Posts: 10195
Joined: Sun Dec 24, 2006 1:05 pm

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by s55 »

First, the CPU isn't ideal for video encoding. The low clock speed means you will likely hit a decode or filter bottleneck. Also note that NUMA (dual socket) is not optimal either.

Post an encode log and we can see if we can make any suggestions, but ultimately, it's often tricky getting this kind of configuration fully utilised without running more than 1 encode at once.
Boris911
Posts: 16
Joined: Sat Apr 23, 2022 10:59 am

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by Boris911 »

x265 encoder can't work via GPU. When I tried nvEnc (nVidia GPU), AMD VCE (AMD GPU) and Quick Sync (Intel GPU), there wasn't CRF, only CQP and finished video have much more size then x265 Placebo with CRF encoded video. Speed on encoding isn't priority for me. Only quality. I transfer all my bought DVD/Blu-Ray movie library to NAS (x265).

[23:59:38] gtkgui: HandBrake 1.5.1 (2022071700) - Linux x86_64 - https://handbrake.fr
[23:59:38] Compile-time hardening features are enabled
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
[23:59:38] hb_init: starting libhb thread
[23:59:38] hb_init: starting libhb thread
[23:59:38] hb_init: starting libhb thread
[23:59:38] gtkgui: Failed to read presets file, initializing new presets...
[00:00:55] CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
[00:00:55] - Intel microarchitecture Broadwell
[00:00:55] - logical processor count: 32
[00:00:55] Intel Quick Sync Video support: no
[00:00:55] hb_scan: path=/mnt/sdb1/MakeMKV/New 23.06.2022/Terapie láskou.mkv, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /mnt/sdb1/MakeMKV/New 23.06.2022/Terapie láskou.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(/mnt/sdb1/MakeMKV/New 23.06.2022/Terapie láskou.mkv/) failed
[00:00:56] 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
[00:00:56] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/mnt/sdb1/MakeMKV/New 23.06.2022/Terapie láskou.mkv':
Metadata:
encoder : libmakemkv v1.16.7 (1.3.10/1.5.2) win(x64-release)
creation_time : 2022-06-22T19:08:39.000000Z
Duration: 01:57:03.88, start: 0.000000, bitrate: 8068 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 489.600000
Metadata:
title : Chapter 01
Chapter #0:1: start 489.600000, end 984.480000
Metadata:
title : Chapter 02
Chapter #0:2: start 984.480000, end 1693.920000
Metadata:
title : Chapter 03
Chapter #0:3: start 1693.920000, end 2059.200000
Metadata:
title : Chapter 04
Chapter #0:4: start 2059.200000, end 2416.320000
Metadata:
title : Chapter 05
Chapter #0:5: start 2416.320000, end 3133.920000
Metadata:
title : Chapter 06
Chapter #0:6: start 3133.920000, end 3668.640000
Metadata:
title : Chapter 07
Chapter #0:7: start 3668.640000, end 4216.800000
Metadata:
title : Chapter 08
Chapter #0:8: start 4216.800000, end 4927.680000
Metadata:
title : Chapter 09
Chapter #0:9: start 4927.680000, end 5424.000000
Metadata:
title : Chapter 10
Chapter #0:10: start 5424.000000, end 6403.200000
Metadata:
title : Chapter 11
Chapter #0:11: start 6403.200000, end 7023.360000
Metadata:
title : Chapter 12
Chapter #0:12: start 7023.360000, end 7023.880000
Metadata:
title : Chapter 13
Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, smpte170m/bt470bg/bt470bg, top first), 720x576 [SAR 64:45 DAR 16:9], 8000 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
Metadata:
BPS-eng : 7156920
DURATION-eng : 01:57:03.880000000
NUMBER_OF_FRAMES-eng: 175597
NUMBER_OF_BYTES-eng: 6283669123
SOURCE_ID-eng : 0100E0
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.7 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-06-22 19:08:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Side data:
cpb: bitrate max/min/avg: 8000000/0/0 buffer size: 1835008 vbv_delay: N/A
Stream #0:1(cze): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
Metadata:
title : Surround 5.1
BPS-eng : 448000
DURATION-eng : 01:57:03.840000000
NUMBER_OF_FRAMES-eng: 219495
NUMBER_OF_BYTES-eng: 393335040
SOURCE_ID-eng : 0181BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.7 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-06-22 19:08:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 448000
DURATION-eng : 01:57:03.840000000
NUMBER_OF_FRAMES-eng: 219495
NUMBER_OF_BYTES-eng: 393335040
SOURCE_ID-eng : 0183BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.7 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-06-22 19:08:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:3(cze): Subtitle: dvd_subtitle, 720x576 (default)
Metadata:
BPS-eng : 4833
DURATION-eng : 01:56:54.719466666
NUMBER_OF_FRAMES-eng: 1421
NUMBER_OF_BYTES-eng: 4238430
SOURCE_ID-eng : 0120BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.7 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-06-22 19:08:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:4(cze): Subtitle: dvd_subtitle, 720x576
Metadata:
BPS-eng : 4920
DURATION-eng : 01:56:54.719466666
NUMBER_OF_FRAMES-eng: 1460
NUMBER_OF_BYTES-eng: 4314074
SOURCE_ID-eng : 0123BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.7 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-06-22 19:08:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[00:00:56] scan: decoding previews for title 1
[00:00:56] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 ?e?tina (AC3) (5.1 ch) (448 kbps)
[00:00:56] scan: audio 0x2: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[00:00:56] scan: 10 previews, 720x576, 25.000 fps, autocrop = 74/74/0/0, aspect 16:9, PAR 64:45, color profile: 5-5-6, chroma location: left
[00:00:56] libhb: scan thread found 1 valid title(s)
[00:00:56] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[00:00:56] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[00:01:05] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[00:01:05] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[00:01:09] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[00:01:09] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[00:01:23] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[00:01:36] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1

(ghb:4004): Gtk-WARNING **: 00:01:44.203: Calling org.xfce.Session.Manager.Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method ?Inhibit?
[00:01:44] gtkgui: Modified Custom Preset: /H.265 MKV FDK-AAC Boris911
[00:01:44] Starting work at: Mon Jul 18 00:01:44 2022

[00:01:44] 1 job(s) to process
[00:01:44] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 768,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "fdk_aac",
"Gain": 0.0,
"Mixdown": "5point1",
"Name": "Surround 5.1",
"NormalizeMixLevel": false,
"PresetEncoder": "fdk_aac",
"Quality": -3.0,
"Samplerate": 0,
"Track": 0
},
{
"Bitrate": 768,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "fdk_aac",
"Gain": 0.0,
"Mixdown": "5point1",
"Name": "Surround 5.1",
"NormalizeMixLevel": false,
"PresetEncoder": "fdk_aac",
"Quality": -3.0,
"Samplerate": 0,
"Track": 1
}
],
"CopyMask": [],
"FallbackEncoder": "fdk_aac"
},
"Destination": {
"AlignAVStart": false,
"ChapterList": [
{
"Duration": {
"Hours": 0,
"Minutes": 8,
"Seconds": 10,
"Ticks": 44064000
},
"Name": "Chapter 1"
},
{
"Duration": {
"Hours": 0,
"Minutes": 8,
"Seconds": 15,
"Ticks": 44539200
},
"Name": "Chapter 2"
},
{
"Duration": {
"Hours": 0,
"Minutes": 11,
"Seconds": 49,
"Ticks": 63849600
},
"Name": "Chapter 3"
},
{
"Duration": {
"Hours": 0,
"Minutes": 6,
"Seconds": 5,
"Ticks": 32875200
},
"Name": "Chapter 4"
},
{
"Duration": {
"Hours": 0,
"Minutes": 5,
"Seconds": 57,
"Ticks": 32140800
},
"Name": "Chapter 5"
},
{
"Duration": {
"Hours": 0,
"Minutes": 11,
"Seconds": 58,
"Ticks": 64584000
},
"Name": "Chapter 6"
},
{
"Duration": {
"Hours": 0,
"Minutes": 8,
"Seconds": 55,
"Ticks": 48124800
},
"Name": "Chapter 7"
},
{
"Duration": {
"Hours": 0,
"Minutes": 9,
"Seconds": 8,
"Ticks": 49334400
},
"Name": "Chapter 8"
},
{
"Duration": {
"Hours": 0,
"Minutes": 11,
"Seconds": 51,
"Ticks": 63979200
},
"Name": "Chapter 9"
},
{
"Duration": {
"Hours": 0,
"Minutes": 8,
"Seconds": 16,
"Ticks": 44668800
},
"Name": "Chapter 10"
},
{
"Duration": {
"Hours": 0,
"Minutes": 16,
"Seconds": 19,
"Ticks": 88128000
},
"Name": "Chapter 11"
},
{
"Duration": {
"Hours": 0,
"Minutes": 10,
"Seconds": 20,
"Ticks": 55814400
},
"Name": "Chapter 12"
},
{
"Duration": {
"Hours": 0,
"Minutes": 0,
"Seconds": 1,
"Ticks": 46800
},
"Name": "Chapter 13"
}
],
"ChapterMarkers": true,
"File": "/home/boris911/Videos/Terapie láskou.mkv",
"InlineParameterSets": false,
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "mkv"
},
"Filters": {
"FilterList": [
{
"ID": 3,
"Settings": {
"block-height": "16",
"block-thresh": "40",
"block-width": "16",
"filter-mode": "2",
"mode": "3",
"motion-thresh": "1",
"spatial-metric": "2",
"spatial-thresh": "1"
}
},
{
"ID": 4,
"Settings": {
"mode": "15"
}
},
{
"ID": 6,
"Settings": {
"mode": 1
}
},
{
"ID": 13,
"Settings": {
"crop-bottom": 74,
"crop-left": 0,
"crop-right": 0,
"crop-top": 74,
"height": 428,
"width": 720
}
}
]
},
"Metadata": {
"Name": "Terapie láskou"
},
"PAR": {
"Den": 45,
"Num": 64
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"Path": "/mnt/sdb1/MakeMKV/New 23.06.2022/Terapie láskou.mkv",
"Range": {
"End": 13,
"Start": 1,
"Type": "chapter"
},
"Title": 1
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": [
{
"Burn": false,
"Default": true,
"Forced": false,
"Track": 0
},
{
"Burn": false,
"Default": false,
"Forced": false,
"Track": 1
}
]
},
"Video": {
"ChromaLocation": 1,
"ColorInputFormat": 0,
"ColorMatrix": 6,
"ColorOutputFormat": 0,
"ColorPrimaries": 5,
"ColorRange": 1,
"ColorTransfer": 5,
"Encoder": "x265_10bit",
"Level": "4.1",
"Options": "aq-mode=3:qg-size=16:aq-strength=0.8:qcomp=0.65:weightb=1:qpmax=45:subme=7:analyze-src-pics=1:bframes=8:rc-lookahead=80:ref=5:keyint=250:pmode=1:deblock=-1,-1:hme=1:hme-search=star,star,star",
"Preset": "placebo",
"Profile": "main10",
"QSV": {
"AdapterIndex": 0,
"AsyncDepth": 0,
"Decode": false
},
"Quality": 20.0,
"Tune": "",
"Turbo": false,
"TwoPass": false
}
}
[00:01:44] CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
[00:01:44] - Intel microarchitecture Broadwell
[00:01:44] - logical processor count: 32
[00:01:44] Intel Quick Sync Video support: no
[00:01:44] hb_scan: path=/mnt/sdb1/MakeMKV/New 23.06.2022/Terapie láskou.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /mnt/sdb1/MakeMKV/New 23.06.2022/Terapie láskou.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(/mnt/sdb1/MakeMKV/New 23.06.2022/Terapie láskou.mkv/) failed
[00:01:44] 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
[00:01:44] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/mnt/sdb1/MakeMKV/New 23.06.2022/Terapie láskou.mkv':
Metadata:
encoder : libmakemkv v1.16.7 (1.3.10/1.5.2) win(x64-release)
creation_time : 2022-06-22T19:08:39.000000Z
Duration: 01:57:03.88, start: 0.000000, bitrate: 8068 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 489.600000
Metadata:
title : Chapter 01
Chapter #0:1: start 489.600000, end 984.480000
Metadata:
title : Chapter 02
Chapter #0:2: start 984.480000, end 1693.920000
Metadata:
title : Chapter 03
Chapter #0:3: start 1693.920000, end 2059.200000
Metadata:
title : Chapter 04
Chapter #0:4: start 2059.200000, end 2416.320000
Metadata:
title : Chapter 05
Chapter #0:5: start 2416.320000, end 3133.920000
Metadata:
title : Chapter 06
Chapter #0:6: start 3133.920000, end 3668.640000
Metadata:
title : Chapter 07
Chapter #0:7: start 3668.640000, end 4216.800000
Metadata:
title : Chapter 08
Chapter #0:8: start 4216.800000, end 4927.680000
Metadata:
title : Chapter 09
Chapter #0:9: start 4927.680000, end 5424.000000
Metadata:
title : Chapter 10
Chapter #0:10: start 5424.000000, end 6403.200000
Metadata:
title : Chapter 11
Chapter #0:11: start 6403.200000, end 7023.360000
Metadata:
title : Chapter 12
Chapter #0:12: start 7023.360000, end 7023.880000
Metadata:
title : Chapter 13
Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, smpte170m/bt470bg/bt470bg, top first), 720x576 [SAR 64:45 DAR 16:9], 8000 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
Metadata:
BPS-eng : 7156920
DURATION-eng : 01:57:03.880000000
NUMBER_OF_FRAMES-eng: 175597
NUMBER_OF_BYTES-eng: 6283669123
SOURCE_ID-eng : 0100E0
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.7 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-06-22 19:08:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Side data:
cpb: bitrate max/min/avg: 8000000/0/0 buffer size: 1835008 vbv_delay: N/A
Stream #0:1(cze): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
Metadata:
title : Surround 5.1
BPS-eng : 448000
DURATION-eng : 01:57:03.840000000
NUMBER_OF_FRAMES-eng: 219495
NUMBER_OF_BYTES-eng: 393335040
SOURCE_ID-eng : 0181BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.7 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-06-22 19:08:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 448000
DURATION-eng : 01:57:03.840000000
NUMBER_OF_FRAMES-eng: 219495
NUMBER_OF_BYTES-eng: 393335040
SOURCE_ID-eng : 0183BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.7 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-06-22 19:08:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:3(cze): Subtitle: dvd_subtitle, 720x576 (default)
Metadata:
BPS-eng : 4833
DURATION-eng : 01:56:54.719466666
NUMBER_OF_FRAMES-eng: 1421
NUMBER_OF_BYTES-eng: 4238430
SOURCE_ID-eng : 0120BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.7 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-06-22 19:08:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:4(cze): Subtitle: dvd_subtitle, 720x576
Metadata:
BPS-eng : 4920
DURATION-eng : 01:56:54.719466666
NUMBER_OF_FRAMES-eng: 1460
NUMBER_OF_BYTES-eng: 4314074
SOURCE_ID-eng : 0123BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.7 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2022-06-22 19:08:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[00:01:44] scan: decoding previews for title 1
[00:01:44] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 ?e?tina (AC3) (5.1 ch) (448 kbps)
[00:01:44] scan: audio 0x2: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[00:01:44] scan: 10 previews, 720x576, 25.000 fps, autocrop = 74/74/0/0, aspect 16:9, PAR 64:45, color profile: 5-5-6, chroma location: left
[00:01:44] libhb: scan thread found 1 valid title(s)
[00:01:44] Starting Task: Encoding Pass
[00:01:44] job configuration:
[00:01:44] * source
[00:01:44] + /mnt/sdb1/MakeMKV/New 23.06.2022/Terapie láskou.mkv
[00:01:44] + title 1, chapter(s) 1 to 13
[00:01:44] + container: matroska,webm
[00:01:44] + data rate: 8068 kbps
[00:01:44] * destination
[00:01:44] + /home/boris911/Videos/Terapie láskou.mkv
[00:01:44] + container: Matroska (libavformat)
[00:01:44] + chapter markers
[00:01:44] * video track
[00:01:44] + decoder: mpeg2video 8-bit (yuv420p)
[00:01:44] + bitrate 8000 kbps
[00:01:44] + filters
[00:01:44] + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[00:01:44] + Decomb (mode=47)
[00:01:44] + Framerate Shaper (mode=1)
[00:01:44] + frame rate: 25.000 fps -> constant 25.000 fps
[00:01:44] + Crop and Scale (width=720:height=428:crop-top=74:crop-bottom=74:crop-left=0:crop-right=0)
[00:01:44] + source: 720 * 576, crop (74/74/0/0): 720 * 428, scale: 720 * 428
[00:01:44] + Output geometry
[00:01:44] + storage dimensions: 720 x 428
[00:01:44] + pixel aspect ratio: 64 : 45
[00:01:44] + display dimensions: 1024 x 428
[00:01:44] + encoder: H.265 10-bit (libx265)
[00:01:44] + preset: placebo
[00:01:44] + options: aq-mode=3:qg-size=16:aq-strength=0.8:qcomp=0.65:weightb=1:qpmax=45:subme=7:analyze-src-pics=1:bframes=8:rc-lookahead=80:ref=5:keyint=250:pmode=1:deblock=-1,-1:hme=1:hme-search=star,star,star
[00:01:44] + profile: main10
[00:01:44] + level: 4.1
[00:01:44] + quality: 20.00 (RF)
[00:01:44] + color profile: 5-5-6
[00:01:44] + chroma location: left
[00:01:44] * subtitle track 1, ?e?tina [VOBSUB] (track 0, id 0x3, Picture) -> Passthrough, Default
[00:01:44] * subtitle track 2, ?e?tina [VOBSUB] (track 1, id 0x4, Picture) -> Passthrough
[00:01:44] * audio track 1
[00:01:44] + name: Surround 5.1
[00:01:44] + decoder: ?e?tina (AC3) (5.1 ch) (448 kbps) (track 1, id 0x1)
[00:01:44] + bitrate: 448 kbps, samplerate: 48000 Hz
[00:01:44] + mixdown: 5.1 Channels
[00:01:44] + encoder: AAC (libfdk_aac)
[00:01:44] + bitrate: 768 kbps, samplerate: 48000 Hz
[00:01:44] * audio track 2
[00:01:44] + name: Surround 5.1
[00:01:44] + decoder: English (AC3) (5.1 ch) (448 kbps) (track 2, id 0x2)
[00:01:44] + bitrate: 448 kbps, samplerate: 48000 Hz
[00:01:44] + mixdown: 5.1 Channels
[00:01:44] + encoder: AAC (libfdk_aac)
[00:01:44] + bitrate: 768 kbps, samplerate: 48000 Hz
[00:01:44] sync: expecting 175597 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 11.2.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [warning]: Source height < 540p is too low for HME. Disabling HME.
x265 [warning]: Specifying a decoder level with constant rate factor rate-control requires
x265 [warning]: enabling VBV with vbv-bufsize=50000kb vbv-maxrate=50000kbps. VBV outputs are non-deterministic!
x265 [info]: Main 10 profile, Level-4.1 (High tier)
x265 [info]: Thread pool 0 using 32 threads on numa nodes 0,1
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 5 / wpp(7 rows)+pmode
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 4 inter / 4 intra
x265 [info]: ME / range / subpel / merge : star / 92 / 7 / 5
x265 [info]: Keyframe min / max / scenecut / bias : 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt : 80 / 8 / 2
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 1
x265 [info]: References / ref-limit cu / depth : 5 / off / off
x265 [info]: AQ: mode / str / qg-size / cu-tree : 3 / 0.8 / 16 / 1
x265 [info]: Rate Control / qCompress : CRF-20.0 / 0.65
x265 [info]: VBV/HRD buffer / max-rate / init : 50000 / 50000 / 0.900
x265 [info]: tools: rect amp rd=6 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 tskip
x265 [info]: tools: signhide tmvp b-intra strong-intra-smoothing
x265 [info]: tools: deblock(tC=-1:B=-1) sao
[00:01:44] sync: first pts video is 0
[00:01:44] sync: "Chapter 1" (1) at frame 1 time 0
[00:01:44] sync: first pts audio 0x1 is 0
[00:01:44] sync: first pts audio 0x2 is 0
[00:01:44] sync: first pts subtitle 0x3 is 342000
[00:01:44] sync: first pts subtitle 0x4 is 342000
[02:53:08] sync: "Chapter 2" (2) at frame 12241 time 44064000
[05:43:20] sync: "Chapter 3" (3) at frame 24613 time 88603200
[09:39:38] sync: "Chapter 4" (4) at frame 42349 time 152452800
[11:56:53] sync: "Chapter 5" (5) at frame 51481 time 185328000
User avatar
s55
HandBrake Team
Posts: 10195
Joined: Sun Dec 24, 2006 1:05 pm

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by s55 »

You can try removing the Comb Detect and Decomb filters if you know your source isn't interlaced.

Beyond that, I'd suggest not using placebo. It's rather pointless. You may be slightly better scaling if you dial it back to slow or slower.

Ultimately, you may have to run multiple jobs to get full utilisation.
Boris911
Posts: 16
Joined: Sat Apr 23, 2022 10:59 am

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by Boris911 »

PAL DVD-Video (720x576) is always interlaced.
rollin_eng
Veteran User
Posts: 4422
Joined: Wed May 04, 2011 11:06 pm

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by rollin_eng »

Any luck not using placebo?
User avatar
Rodeo
HandBrake Team
Posts: 12973
Joined: Tue Mar 03, 2009 8:55 pm

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by Rodeo »

Boris911 wrote: Mon Jul 18, 2022 6:46 pm PAL DVD-Video (720x576) is always interlaced.
Technically yes, but most movies on PAL DVD are just progressive frames encoded as though they were interlaced, and can be encoded in HandBrake without Decomb/Deinterlace while still giving a correct result.

I would definitely go from placebo down to veryslow, but for SD frame sizes you may indeed to do multiple parallel encodes to maximize CPU usage anyway.
Boris911
Posts: 16
Joined: Sat Apr 23, 2022 10:59 am

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by Boris911 »

I possible run more tasks in queue in Handbrake, please?
Boris911
Posts: 16
Joined: Sat Apr 23, 2022 10:59 am

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by Boris911 »

Boris911 wrote: Tue Jul 19, 2022 11:33 am I possible run more tasks in queue in Handbrake, please?
Is possible run more tasks in queue in Handbrake, please?
rollin_eng
Veteran User
Posts: 4422
Joined: Wed May 04, 2011 11:06 pm

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by rollin_eng »

I can’t remember if the nightly build supports this, but worth a try.
Boris911
Posts: 16
Joined: Sat Apr 23, 2022 10:59 am

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by Boris911 »

I recomplile Handbrake to last version from github. There isn't parallel job run, too. I found that you don't support it in linux https://handbrake.fr/docs/en/latest/tec ... ation.html.

For Windows I found solution make in GUI joblist and export it to json file. Afterthat run it with this command e.g.

Code: Select all

HandBrakeCLI --queue-import-file file.json --parallel=4
like run 4 file encoding parallelly from the queue json file. This isn't work in the linux distributions. :(
Boris911
Posts: 16
Joined: Sat Apr 23, 2022 10:59 am

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by Boris911 »

Well, I resolved it. I found that when I click on handbrake by right mouse button there is context menu where is possible open new Handbrake GUI instance:
Image

I open and run 4 Handbrake instances. Now it uses almost all the computing power (with five instances it will run at full load).
Image
Boris911
Posts: 16
Joined: Sat Apr 23, 2022 10:59 am

Re: How to set HandBrake on Ubuntu 22.04 to use the CPU to its full load (to encode on all cores), please?

Post by Boris911 »

The Handbrake forum doesn't seem to show pictures, so I'll add that as links.

Start new GUI instance: https://i.imgur.com/zspop9V.png
CPU load with 4 instances in Putty: https://i.imgur.com/eVi6uR1.png
Post Reply