Handbrake on TrueNAS Fails When Encoding 4K Video
Been pulling my hair out troubleshooting this issue and dozens of searches have come up empty.
I am running Handbrake on a recently built TrueNAS home server (specs below just in case they are relevant) that I installed via the TrueNAS apps catalogue. Have been encoding 1080p videos without issue (5-6 jobs) however, when attempting to encode any 4K videos, handbrake crashes. I saw another post where someone mentioned removing any additional encoding parameters and video filters, which made my crashes delay from almost immediately to ~2 minutes after starting the encode (enough to give me momentary hope). I've pasted below the activity log in hopes someone can tell me if it says what is happening. The only part that stands out to me is the repeated "set\_mempolicy: Operation not permitted" but googling that has not turned up any answers for me.
I also can confirm that there is nothing wrong with the video file, as Handbrake on my windows PC was able to encode the video (and other 4K videos just fine).
# PC Specs:
CPU - Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz
GPU - AMD Radeon RX 580
RAM - 16 GB
Truenas Community Version - 25.10.6
Handbrake Version - App Version: v26.08.1 / Version: 2.3.13
# Activity Log:
Handbrake Version: 1.11.2 (2026081100)
\[21:21:46\] gtkgui: Modified Custom Preset: /Jon's Presets/4K MKV H.265 (x265) w/Audio Settings
\[21:21:46\] Starting work at: Sat Aug 15 21:21:46 2026
\[21:21:46\] 1 job(s) to process
\[21:21:46\] json job:
{
"Audio": {
"AudioList": \[
{
"Bitrate": 640,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "ac3",
"Gain": 0.0,
"Mixdown": "5point1",
"Name": "Surround",
"NormalizeMixLevel": false,
"PresetEncoder": "ac3",
"Quality": -3.0,
"Samplerate": 0,
"Track": 0
},
{
"Bitrate": 0,
"DRC": 0.0,
"Encoder": "copy:dtshd",
"Mixdown": "none",
"Name": "Surround",
"PresetEncoder": "copy:dtshd",
"Quality": -3.0,
"Samplerate": 0,
"Track": 0
}
\],
"CopyMask": \[
"copy:dtshd",
"copy:truehd"
\],
"FallbackEncoder": "none"
},
"Destination": {
"AlignAVStart": false,
"ChapterList": \[
{
"Duration": {
"Hours": 0,
"Minutes": 9,
"Seconds": 39,
"Ticks": 52147094
},
"Name": "Chapter 1"
},
{
"Duration": {
"Hours": 0,
"Minutes": 9,
"Seconds": 51,
"Ticks": 53198145
},
"Name": "Chapter 2"
},
{
"Duration": {
"Hours": 0,
"Minutes": 8,
"Seconds": 48,
"Ticks": 47511214
},
"Name": "Chapter 3"
},
{
"Duration": {
"Hours": 0,
"Minutes": 10,
"Seconds": 31,
"Ticks": 56771715
},
"Name": "Chapter 4"
},
{
"Duration": {
"Hours": 0,
"Minutes": 10,
"Seconds": 31,
"Ticks": 56771715
},
"Name": "Chapter 5"
},
{
"Duration": {
"Hours": 0,
"Minutes": 11,
"Seconds": 13,
"Ticks": 60593033
},
"Name": "Chapter 6"
},
{
"Duration": {
"Hours": 0,
"Minutes": 9,
"Seconds": 8,
"Ticks": 49286737
},
"Name": "Chapter 7"
},
{
"Duration": {
"Hours": 0,
"Minutes": 12,
"Seconds": 56,
"Ticks": 69797228
},
"Name": "Chapter 8"
},
{
"Duration": {
"Hours": 0,
"Minutes": 8,
"Seconds": 18,
"Ticks": 44849805
},
"Name": "Chapter 9"
},
{
"Duration": {
"Hours": 0,
"Minutes": 8,
"Seconds": 45,
"Ticks": 47285988
},
"Name": "Chapter 10"
},
{
"Duration": {
"Hours": 0,
"Minutes": 11,
"Seconds": 22,
"Ticks": 61407597
},
"Name": "Chapter 11"
},
{
"Duration": {
"Hours": 0,
"Minutes": 8,
"Seconds": 38,
"Ticks": 46614067
},
"Name": "Chapter 12"
},
{
"Duration": {
"Hours": 0,
"Minutes": 12,
"Seconds": 2,
"Ticks": 65014950
},
"Name": "Chapter 13"
},
{
"Duration": {
"Hours": 0,
"Minutes": 7,
"Seconds": 24,
"Ticks": 39984945
},
"Name": "Chapter 14"
},
{
"Duration": {
"Hours": 0,
"Minutes": 11,
"Seconds": 3,
"Ticks": 59665857
},
"Name": "Chapter 15"
}
\],
"ChapterMarkers": true,
"File": "\*\*\*\*\*\*\*\*\*\*\*\*",
"InlineParameterSets": false,
"Mux": "mkv",
"Options": {
"IpodAtom": false,
"Optimize": false
}
},
"Filters": {
"FilterList": \[
{
"ID": 11,
"Settings": {
"mode": 1
}
},
{
"ID": 20,
"Settings": {
"crop-bottom": 0,
"crop-left": 0,
"crop-right": 0,
"crop-top": 0,
"height": 2160,
"width": 3840
}
}
\]
},
"Metadata": {
"CreationTime": "2026-08-15T16:53:02.000000Z",
"Name": "\*\*\*\*\*\*\*\*\*\*\*\*"
},
"PAR": {
"Den": 1,
"Num": 1
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"HWDecode": 0,
"KeepDuplicateTitles": false,
"Path": "\*\*\*\*\*\*\*\*\*\*\*\*",
"Range": {
"End": 15,
"Start": 1,
"Type": "chapter"
},
"Title": 1
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": \[
{
"Burn": false,
"Default": false,
"Forced": false,
"Name": "English-SRT",
"Track": 0
}
\]
},
"Video": {
"AdapterIndex": -1,
"AsyncDepth": 0,
"ChromaLocation": 3,
"ColorInputFormat": 0,
"ColorMatrix": 9,
"ColorOutputFormat": 0,
"ColorPrimaries": 9,
"ColorRange": 0,
"ColorTransfer": 16,
"ContentLightLevel": {
"MaxCLL": 349,
"MaxFALL": 86
},
"Encoder": "x265\_10bit",
"HardwareDecode": 0,
"Level": "5.0",
"MasteringDisplayColorVolume": {
"DisplayPrimaries": \[
\[
\[
34000,
50000
\],
\[
16000,
50000
\]
\],
\[
\[
13250,
50000
\],
\[
34500,
50000
\]
\],
\[
\[
7500,
50000
\],
\[
3000,
50000
\]
\]
\],
"HasLuminance": true,
"HasPrimaries": true,
"MaxLuminance": \[
40000000,
10000
\],
"MinLuminance": \[
50,
10000
\],
"WhitePoint": \[
\[
15635,
50000
\],
\[
16450,
50000
\]
\]
},
"MultiPass": false,
"Options": "",
"PasshtruHDRDynamicMetadata": 6,
"Preset": "slow",
"Profile": "main10",
"Quality": 20.0,
"Tune": "",
"Turbo": false
}
}
\[21:21:46\] OS: Linux 6.12.99-production+truenas (#1 SMP PREEMPT\_DYNAMIC Wed Aug 12 13:43:54 UTC 2026)
\[21:21:46\] CPU: Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz
\[21:21:46\] - Intel microarchitecture Comet Lake
\[21:21:46\] - logical processor count: 16
\[21:21:46\] Intel Quick Sync Video support: no
\[21:21:46\] hb\_scan: path=\*\*\*\*\*\*\*\*\*\*\*\*
Input #0, matroska,webm, from '\*\*\*\*\*\*\*\*\*\*\*\*':
Metadata:
title : \*\*\*\*\*\*\*\*\*\*\*\*
encoder : ***
creation\_time : 2026-08-15T16:53:02.000000Z
Duration: 02:30:10.00, start: 0.000000, bitrate: 27587 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 579.412167
Metadata:
title : Chapter 01
Chapter #0:1: start 579.412167, end 1170.502667
Metadata:
title : Chapter 02
Chapter #0:2: start 1170.502667, end 1698.405042
Metadata:
title : Chapter 03
Chapter #0:3: start 1698.405042, end 2329.201875
Metadata:
title : Chapter 04
Chapter #0:4: start 2329.201875, end 2959.998708
Metadata:
title : Chapter 05
Chapter #0:5: start 2959.998708, end 3633.254625
Metadata:
title : Chapter 06
Chapter #0:6: start 3633.254625, end 4180.885042
Metadata:
title : Chapter 07
Chapter #0:7: start 4180.885042, end 4956.409792
Metadata:
title : Chapter 08
Chapter #0:8: start 4956.409792, end 5454.740958
Metadata:
title : Chapter 09
Chapter #0:9: start 5454.740958, end 5980.140833
Metadata:
title : Chapter 10
Chapter #0:10: start 5980.140833, end 6662.447458
Metadata:
title : Chapter 11
Chapter #0:11: start 6662.447458, end 7180.381542
Metadata:
title : Chapter 12
Chapter #0:12: start 7180.381542, end 7902.769875
Metadata:
title : Chapter 13
Chapter #0:13: start 7902.769875, end 8347.047042
Metadata:
title : Chapter 14
Chapter #0:14: start 8347.047042, end 9010.001000
Metadata:
title : Chapter 15
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 \[SAR 1:1 DAR 16:9\], 23.98 fps, 23.98 tbr, 1k tbn
Metadata:
title : \*\*\*\*\*\*\*\*\*\*\*\*
BPS-eng : 23512552
DURATION-eng : 02:30:10.001000000
NUMBER\_OF\_FRAMES-eng: 216024
NUMBER\_OF\_BYTES-eng: 26481015671
\_STATISTICS\_WRITING\_APP-eng: ***
\_STATISTICS\_WRITING\_DATE\_UTC-eng: 2026-08-15 16:53:02
\_STATISTICS\_TAGS-eng: BPS DURATION NUMBER\_OF\_FRAMES NUMBER\_OF\_BYTES
Stream #0:1(eng): Audio: dts (dca) (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
Metadata:
title : DTS-HD.MA.5.1
BPS-eng : 4035689
DURATION-eng : 02:30:10.005333333
NUMBER\_OF\_FRAMES-eng: 844688
NUMBER\_OF\_BYTES-eng: 4545197764
SOURCE\_ID-eng : 001100
\_STATISTICS\_WRITING\_APP-eng: ***
\_STATISTICS\_WRITING\_DATE\_UTC-eng: 2026-08-15 16:53:02
\_STATISTICS\_TAGS-eng: BPS DURATION NUMBER\_OF\_FRAMES NUMBER\_OF\_BYTES SOURCE\_ID
Stream #0:2(eng): Subtitle: (srt) (default)
Metadata:
title : English-SRT
BPS-eng : 52
DURATION-eng : 02:25:45.017000000
NUMBER\_OF\_FRAMES-eng: 1872
NUMBER\_OF\_BYTES-eng: 56926
\_STATISTICS\_WRITING\_APP-eng: ***
\_STATISTICS\_WRITING\_DATE\_UTC-eng: 2026-08-15 16:53:02
\_STATISTICS\_TAGS-eng: BPS DURATION NUMBER\_OF\_FRAMES NUMBER\_OF\_BYTES
Stream #0:3(eng): Subtitle: hdmv\_pgs\_subtitle (pgssub)
Metadata:
title : English-PGS
BPS-eng : 36432
DURATION-eng : 02:26:53.742437500
NUMBER\_OF\_FRAMES-eng: 4274
NUMBER\_OF\_BYTES-eng: 40138396
SOURCE\_ID-eng : 0012A0
\_STATISTICS\_WRITING\_APP-eng: ***
\_STATISTICS\_WRITING\_DATE\_UTC-eng: 2026-08-15 16:53:02
\_STATISTICS\_TAGS-eng: BPS DURATION NUMBER\_OF\_FRAMES NUMBER\_OF\_BYTES SOURCE\_ID
\[21:21:46\] scan: decoding previews for title 1
\[21:21:46\] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA, 5.1 ch)
\[21:21:49\] using container PAR 1:1
\[21:21:49\] scan: 10 previews, 3840x2160, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 9-16-9, chroma location: topleft
\[21:21:49\] scan: mastering display metadata: r(0.6800,0.3200) g(0.2650,0.6900) b(0.1500 0.0600) wp(0.3127, 0.3290) min\_luminance=0.005000, max\_luminance=4000.000000
\[21:21:49\] scan: content light level: max\_cll=349, max\_fall=86
\[21:21:49\] libhb: scan thread found 1 valid title(s)
\[21:21:49\] Starting Task: Encoding Pass
\[21:21:49\] work: skipping crop/scale filter
\[21:21:49\] job configuration:
\[21:21:49\] \* source
\[21:21:49\] + \*\*\*\*\*\*\*\*\*\*\*\*
\[21:21:49\] + title 1, chapter(s) 1 to 15
\[21:21:49\] + container: matroska,webm
\[21:21:49\] + data rate: 27587 kbps
\[21:21:49\] \* destination
\[21:21:49\] + \*\*\*\*\*\*\*\*\*\*\*\*
\[21:21:49\] + container: Matroska
\[21:21:49\] + chapter markers
\[21:21:49\] \* video track
\[21:21:49\] + decoder: hevc 10-bit (yuv420p10le)
\[21:21:49\] + filter
\[21:21:49\] + Framerate Shaper (mode=1)
\[21:21:49\] + frame rate: 23.976 fps -> constant 23.976 fps
\[21:21:49\] + Output geometry
\[21:21:49\] + storage dimensions: 3840 x 2160
\[21:21:49\] + pixel aspect ratio: 1 : 1
\[21:21:49\] + display dimensions: 3840 x 2160
\[21:21:49\] + encoder: H.265 10-bit
\[21:21:49\] + preset: slow
\[21:21:49\] + profile: main10
\[21:21:49\] + level: 5.0
\[21:21:49\] + quality: 20.00 (RF)
\[21:21:49\] + color profile: 9-16-9
\[21:21:49\] + color range: tv
\[21:21:49\] + chroma location: topleft
\[21:21:49\] + mastering display metadata: r(0.6800,0.3200) g(0.2650,0.6900) b(0.1500 0.0600) wp(0.3127, 0.3290) min\_luminance=0.005000, max\_luminance=4000.000000
\[21:21:49\] + content light level: max\_cll=349, max\_fall=86
\[21:21:49\] \* subtitle track 1, English (UTF-8) (track 0, id 0x2, Text) -> Passthru
\[21:21:49\] + name: English-SRT
\[21:21:49\] \* audio track 1
\[21:21:49\] + name: Surround
\[21:21:49\] + decoder: English (DTS-HD MA, 5.1 ch) (track 1, id 0x1)
\[21:21:49\] + samplerate: 48000 Hz
\[21:21:49\] + mixdown: 5.1 Channels
\[21:21:49\] + encoder: AC3
\[21:21:49\] + bitrate: 640 kbps, samplerate: 48000 Hz
\[21:21:49\] \* audio track 2
\[21:21:49\] + name: Surround
\[21:21:49\] + decoder: English (DTS-HD MA, 5.1 ch) (track 1, id 0x1)
\[21:21:49\] + samplerate: 48000 Hz
\[21:21:49\] + DTS-HD Passthru
\[21:21:49\] sync: expecting 216024 video frames
x265 \[info\]: HEVC encoder version 4.1+222-afa0028
x265 \[info\]: build info \[Linux\]\[clang 17.0.6\]\[64 bit\] 10bit
x265 \[info\]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 \[warning\]: Turning on repeat-headers for HDR compatibility
x265 \[warning\]: Specifying a decoder level with constant rate factor rate-control requires
x265 \[warning\]: enabling VBV with vbv-bufsize=100000kb vbv-maxrate=100000kbps. VBV outputs are non-deterministic!
x265 \[info\]: Main 10 profile, Level-5 (High tier)
x265 \[info\]: Thread pool created using 16 threads
x265 \[info\]: Slices : 1
x265 \[info\]: frame threads / pool features : 4 / wpp(34 rows)
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
set\_mempolicy: Operation not permitted
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 : star / 57 / 3 / 3
x265 \[info\]: Keyframe min / max / scenecut / bias : 24 / 240 / 40 / 5.00
x265 \[info\]: Lookahead / bframes / badapt : 25 / 4 / 2
x265 \[info\]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 \[info\]: References / ref-limit cu / depth : 4 / on / on
x265 \[info\]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
x265 \[info\]: Rate Control / qCompress : CRF-20.0 / 0.60
x265 \[info\]: VBV/HRD buffer / max-rate / init : 100000 / 100000 / 0.900
x265 \[info\]: tools: rect limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00
x265 \[info\]: tools: rskip mode=1 signhide tmvp strong-intra-smoothing lslices=4
x265 \[info\]: tools: deblock sao
\[21:21:50\] sync: first pts video is 0
\[21:21:50\] sync: "Chapter 1" (1) at frame 1 time 0
\[21:21:50\] sync: first pts audio 0x1 is 0
\[21:21:50\] sync: first pts audio 0x1 is 0