Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Djoss - HandBrake

Featured Replies

I set a memory limit of 4GB and while this stopped Handbrake from crashing my server, it did not stop it from crashing itself. Here are the relevant logs:

logs.txt

  • Replies 1.4k
  • Views 294.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Try the latest version, which have Quick Sync support. See https://github.com/jlesage/docker-handbrake#intel-quick-sync-video for more details on how to use it.

  • Ok I found the issue.  A new image with the fix is on its way.

  • @nuhll, try the latest update, the issue should be fixed.

Posted Images

This is fixed by updating to v24.12.1

Newbie ... so will probably be something I have or haven't done
Handbrake for nvidia docker install falls over with
docker: Error response from daemon: unknown or invalid runtime name: nvidia.

HA! you say that'll be no driver but I patched in the package before installing the docker (ich777)


*** Sorted that I missed the reboot and after installation. Now I get a report that I'm good and the libraries are installed plus the quadro card is detected ***
I don't want to CPU recode on the fly to stream as I'm using an I5 on the NAS mobo and have a P4000 Quadro card to allow the GPU to either manage this or most likely recode what I have .

 

*** OK Now got the docker up and running and can pull up the handbrake web page ***
 

*** Picked a file on the NAS to recode and watched the CPU ramp up to virtually 100% activity, clearly then not using the GPU to recode.  I'm OK with short bursts of high activity but these are around 10 mins for a short 30 minute TV serial episode and I don't feel happy letting this loose on transcoding a 2 hr film?? ***

 

What blindingly obvious thing am I missing here?
It might be the file types (primarily MKV's) but handbrake on my laptop seems quite happy using the cuda cores with handbrake

Any good ideas? or am I stuck sucking the files in and out to do this to reduce the possibility of frying my CPU.

Edited by NickJ
edit

1 minute ago, NickJ said:

Handbrake for nvidia docker install falls over with

then you are prolly in the wrong thread here, this docker doesnt support Nvidia ...

 

and as far as i know the fork out there doesnt have any support thread here, may check the git page

 

https://github.com/zocker-160/handbrake-nvenc-docker

 

in terms you are using this docker ...

  • 2 weeks later...

For some reason whenever I try to export queues or presets Handbrake fails to actually make the file. I don't get any error. It's just the exported file does not show. It's weird because it is able to export videos just fine.

 

Has anyone else had this problem?

 

Btw I also cant use libaom-av1, only SVT-AV1. Is that normal?

Edited by Bob-omb

  • 3 weeks later...

I'm a bit out of ideas in trying to get QSV working -- let me explain:

 

I just built an Alder Lake i9-based system and can't seem to get GPU encoding working no matter what I do. I've spent hours researching on these forums and tried everything -- different versions of device additions into Docker (/dev/dri, etc.), 'lowpower=0' switches in Handbrake...and nothing seems to work. I should state that I'm running 6.12.14, and Frigate and Plex utilize my GPU beautifully -- I can see their app icons when I monitor my GPU usage on the dashboard.

 

When I encode something that utilizes the QSV profiles in Handbrake, my CPU usage shoots up as if it's not utilize the GPU at all...even though all logs would suggest that Handbrake recognizes my Intel GPU.

 

Any thoughts or suggestions would be appreciated!

2 hours ago, JDavidKeith said:

I'm a bit out of ideas in trying to get QSV working -- let me explain:

 

I just built an Alder Lake i9-based system and can't seem to get GPU encoding working no matter what I do. I've spent hours researching on these forums and tried everything -- different versions of device additions into Docker (/dev/dri, etc.), 'lowpower=0' switches in Handbrake...and nothing seems to work. I should state that I'm running 6.12.14, and Frigate and Plex utilize my GPU beautifully -- I can see their app icons when I monitor my GPU usage on the dashboard.

 

When I encode something that utilizes the QSV profiles in Handbrake, my CPU usage shoots up as if it's not utilize the GPU at all...even though all logs would suggest that Handbrake recognizes my Intel GPU.

 

Any thoughts or suggestions would be appreciated!

 

From the Handbrake documentation:

 

Quote

Presets

The following presets are available under the ‘Hardware’ category in the presets menu:

 

- AV1 QSV 2160P 4K

- H.265 QSV 2160P 4K

- H.265 QSV 1080p

 

Performance

HandBrake supports both QSV encode and decode. The CPU will still be used for:

 

- Video decoding (if QSV decode is disabled or your source is in a format which is not supported by the QSV hardware)

- Most video filters

- Audio encoding

- HandBrake’s engine, A/V sync etc

- Subtitles

- Muxing

 

These operations all happen in parallel as the job progresses. As such, it is normal to see high (or even 100%) CPU utilisation even when using QSV.


It's entirely possible that whatever it is you're trying to encode is not supported by QuickSync either the source codec or the encode codec you're trying to encode to. I ran into this issue myself trying to do something a while back with my Arc A310 GPU.

Edited by MowMdown

Hi folks. Just wanted to chime in to say I'm seeing a similar thing. Using the H265 QSV 1080P or 2160P presets on an intel n305. I had this working fine last year with 1080p and 4k mkv blu ray rips, but now despite seeing the GPU power draw increase to 1-5 watts, there's no render load registering, no active app icon appearing, constant high cpu usage and long encode times. 

 

Based on prior success I'm sure these are QSV supported operations but looks like there's no hardware encoding happening. Like @JDavidKeithI'm really out of ideas how to get this working and would be interested to get anyone's thoughts. Thanks!

So handbrake had been working fine and I haven't changed anything but now all my conversions fail. It also crashes once it gets past a few in the que of failures. Anyone have ideas? Let me know what I need to provide for logs or whatever.

On 1/21/2025 at 9:27 AM, downloadedskill said:

So handbrake had been working fine and I haven't changed anything but now all my conversions fail. It also crashes once it gets past a few in the que of failures. Anyone have ideas? Let me know what I need to provide for logs or whatever.

Finally realized where the logs are so I attached a few.

Star Trek Lower Decks - S05E01 2025-01-25 10-02-48.log Star Trek Discovery - S04E10 2025-01-25 10-02-45.log Star Trek Discovery - S05E10 2025-01-25 10-02-48.log Star Trek Strange New Worlds - S02E08 2025-01-25 10-02-44.log Star Trek Strange New Worlds - S02E10 2025-01-25 10-02-45.log

NVM - didn't do enough digging and found what to change

 

 

QUICK Q

 

I have a NVidia card that i use for plex transcoding when needed, i had to edit plex's template to use, do i have to edit the template somewhere to use the card here, or will it auto use it?

 

extra param has --runtime=nvidia --device /dev/dri:/dev/dri/ already

 

thanks

Myk

Edited by MyKroFt

I'm trying to use HandBrake but it always says when I clic Start to encode "invalid destination is not a writable directory"

This is my config for docker, I have touched the bare minimum but I always get the same error no matter what folder I choose to output

Quote

docker run

-d

--name='HandBrake'

--net='bridge'

--pids-limit 2048

-e TZ="Europe/Paris"

-e HOST_OS="Unraid"

-e HOST_HOSTNAME="Skynet"

-e HOST_CONTAINERNAME="HandBrake"

-e 'AUTOMATED_CONVERSION_PRESET'='General/Very Fast 1080p30'

-e 'AUTOMATED_CONVERSION_FORMAT'='mp4'

-e 'AUTOMATED_CONVERSION_KEEP_SOURCE'='1'

-e 'AUTOMATED_CONVERSION_NON_VIDEO_FILE_ACTION'='ignore'

-e 'AUTOMATED_CONVERSION_OUTPUT_DIR'='/output'

-e 'AUTOMATED_CONVERSION_OUTPUT_SUBDIR'=''

-e 'USER_ID'='99' -e 'GROUP_ID'='100' -e 'UMASK'='0000'

-e 'APP_NICENESS'='0'

-e 'DISPLAY_WIDTH'='1920'

-e 'DISPLAY_HEIGHT'='1080'

-e 'DARK_MODE'='0'

-e 'WEB_AUDIO'='0'

-e 'WEB_AUTHENTICATION'='0'

-e 'WEB_AUTHENTICATION_USERNAME'=''

-e 'WEB_AUTHENTICATION_PASSWORD'=''

-e 'SECURE_CONNECTION'='0'

-e 'SECURE_CONNECTION_VNC_METHOD'='SSL'

-e 'SECURE_CONNECTION_CERTS_CHECK_INTERVAL'='60'

-e 'WEB_LISTENING_PORT'='5800'

-e 'VNC_LISTENING_PORT'='5900'

-e 'HANDBRAKE_GUI'='1'

-e 'HANDBRAKE_GUI_QUEUE_STARTUP_ACTION'='NONE'

-e 'AUTOMATED_CONVERSION'='1'

-e 'AUTOMATED_CONVERSION_VIDEO_FILE_EXTENSIONS'=''

-e 'AUTOMATED_CONVERSION_NON_VIDEO_FILE_EXTENSIONS'='jpg jpeg bmp png gif txt nfo'

-e 'AUTOMATED_CONVERSION_OVERWRITE_OUTPUT'='0'

-e 'AUTOMATED_CONVERSION_SOURCE_STABLE_TIME'='5'

-e 'AUTOMATED_CONVERSION_SOURCE_MIN_DURATION'='10'

-e 'AUTOMATED_CONVERSION_SOURCE_MAIN_TITLE_DETECTION'='0'

-e 'AUTOMATED_CONVERSION_CHECK_INTERVAL'='5'

-e 'AUTOMATED_CONVERSION_MAX_WATCH_FOLDERS'='5'

-e 'AUTOMATED_CONVERSION_NO_GUI_PROGRESS'='0'

-e 'AUTOMATED_CONVERSION_HANDBRAKE_CUSTOM_ARGS'=''

-e 'AUTOMATED_CONVERSION_INSTALL_PKGS'=''

-e 'AUTOMATED_CONVERSION_USE_TRASH'='0'

-l net.unraid.docker.managed=dockerman

-l net.unraid.docker.webui='http://[IP]:[PORT:5800]'

-l net.unraid.docker.icon='https://raw.githubusercontent.com/jlesage/docker-templates/master/jlesage/images/handbrake-icon.png'

-p '7803:5800/tcp'

-p '7903:5900/tcp'

-v '/mnt/user':'/storage':'ro'

-v '/mnt/cache/appdata/HandBrake':'/config':'rw' 'jlesage/handbrake'

vsdfdvrfs.jpg

Edited by SeTe

I don't use this, but your mapping for /storage is ro (readonly). You probably want another mapping for the output. 

2 minutes ago, trurl said:

I don't use this, but your mapping for /storage is ro (readonly). You probably want another mapping for the output. 

ChatGPT said the same thing but there is no EDIT button on the template for the /storage mapping and I can't change the access, is there any other way of changing it?

vsdfdsfv.jpg

8 hours ago, MyKroFt said:

I have a NVidia card that i use for plex transcoding when needed, i had to edit plex's template to use, do i have to edit the template somewhere to use the card here, or will it auto use it?

 

quick A, this docker doesnt support Nvidia.

  • 2 weeks later...

Hi everyone,

I just recently moved my media server from windows 10 to unraid so I'm completely new to this so a explanation that is targeted for someone new to this would be very appreciated, I have two questions that I can't seem to find the exact answers to in a search or on the github page:

1: Is there a way for me to save the parent directory and then the source name? I've tried {source-path} but when I finally got that to work it is the entire path so it tries to put it in the path my file is located instead of the folder that I put my output files in.


Example: I want {movie-name folder from makemkv output source}/{source title}.

2: Is there a way for the automatic conversion to follow the preset file naming format? When I tried using the automatic file conversion it uses the exact same name as the source file even though the preset should have {source}.{preset},to add on top of that I also tried to use the SAME-AS-SRC command for sub-directory in auto conversion but that just makes a folder named SAME-AS-SRC



Any help would be appreciated.
 

Edit: Fixed the same as source forgot to update post. I mistyped it here I had it SAME_AS_SRC. The actual problem I had was way more embarrassing. For every video I tested automatic on I forgot to bring the parent folder with. Crazy dumb mistake. :(

Edited by Pman404
Fixed one of the issues updating post to reflect.

  • 2 months later...

This is a bit of a weird one but I wonder if anyone here has any ideas: when using Quick Sync for encoding (iGPU) I am unable to use ICQ rate control and am only able to use the QP metric (but at least it's still QSV). Activity log shows ICQ is absent from identified hardware capabilities. Been using the Handbrake container for a few months and apart from this I haven't noticed (or at least can't recall) any other issues.

 

However, recently I decided to experiment with a Windows 11 VM - iGPU passed through with the help of the Intel SR-IOV plugin - and when using Handbrake inside ICQ shows up with no obvious problems. Encodes seem to work; speeds seem unexpectedly fast but unsure if that's indicative of an issue or more so the file I chose to test with, will have to try some others.

On 1/26/2025 at 11:55 AM, SeTe said:

ChatGPT said the same thing but there is no EDIT button on the template for the /storage mapping and I can't change the access, is there any other way of changing it?

vsdfdsfv.jpg

Not sure if you're still looking for an answer three months on but...

 

You need to set an output directory in the container configuration - it's between 'Watch Directory' and 'Automatic Video Converter: Preset'. If you don't plan on using a watch directory you can skip that but at least set the output directory (which is set to rw). 

On 2/7/2025 at 6:36 PM, Pman404 said:

Hi everyone,

I just recently moved my media server from windows 10 to unraid so I'm completely new to this so a explanation that is targeted for someone new to this would be very appreciated, I have two questions that I can't seem to find the exact answers to in a search or on the github page:

1: Is there a way for me to save the parent directory and then the source name? I've tried {source-path} but when I finally got that to work it is the entire path so it tries to put it in the path my file is located instead of the folder that I put my output files in.


Example: I want {movie-name folder from makemkv output source}/{source title}.

2: Is there a way for the automatic conversion to follow the preset file naming format? When I tried using the automatic file conversion it uses the exact same name as the source file even though the preset should have {source}.{preset}, to add on top of that I also tried to use the SAME-AS-SRC command for sub-directory in auto conversion but that just makes a folder named SAME-AS-SRC.

Any help would be appreciated.
 

I hope you found your answer long before now, as I believe it is covered in an earlier post, but just in case you have not, and for others in the future, your syntax is wrong, it is underscores not hyphens. SAME_AS_SRC not SAME-AS-SRC

I have an issue that I cannot find a solution to elsewhere.  I believe the problem to be unique to Handbrake, as nothing else running on my server is currently causing any issues. 

To start, I was experiencing the idle crash bug common on Linux systems running on first generation Ryzen CPUs (issue due to incompatibility between how the Linux kernal calls for C-states and how 1st-gen Ryzen handles them), during this time, as long as I could keep the server from going idle, I could keep the server up indefinitely with absolutely no issues. 

As my work load declined, and I was not having stuff being backed up to the server 24/7, I finally got around to finding the fix for that issue, and changed the the PSU management in the UEFI to "Typical Idle Current".

Ever since I made that change, I have not been able to successfully encode anything in Handbrake. One of three things happen any time I try to do any encodes in Handbrake, in order to most frequent to least frequent they are:

The Handbrake Container just stops, no event is recorded in the logs, it just stops.  I can start it again, and it will get part way through an encode and then crash again in one of these 3 ways.

 

The Handbrake Container completely locks up but still shows as running. No event recorded in the logs. If I stop the container I can then start it again, but if I choose restart from the dropdown the entire server locks up, requiring a hard reset.

 

The Unraid GUI and the Handbrake Container both become unresponsive, but my other Containers still function and can be accessed directly. Again no event recorded in the logs, and also when this happens, I can no longer access my SMB shares from my Windows PCs.

 

I am currently running Unraid 7.0.1 on a Ryzen 1700, ASUS ROG Strix X370-F Gaming mobo using ethernet, Intel ARC Alchemist A750 GPU, my array consists of 4 HGST 8TB Enterprise drives 1 assigned to parity (all running off the mobo SATA controller), and I have a 2TB Predator GM7000 NVMe SSD as a Cache drive.

My PSU is an 80Plus Gold Rosewill Lepton 500w that has proven very reliable.  I don't think its a power draw issue, as before I fixed the idle crash bug, I was able to run a Handbrake QSV encode, while having 4 simultaneous Plex streams running with QSV hardware transcoding and the GPU running at 80% and that was while also pushing files to the array from 2 Windows PCs.  With all that my total system power draw was about 400w.

 

Also running on my server is MAKEMKV, Immich, GoDaddy-DDNS, Plex, and MKVToolNix.

Edited by Æþerfox
missing potentially relevant info

  • 2 weeks later...

Hi, Any chance we could hardware encoding support for AMD (H.265 VCN )? I'm using the Radeon TOP which works great with Plex.

On 4/25/2025 at 10:52 AM, Æþerfox said:

I have an issue that I cannot find a solution to elsewhere.  I believe the problem to be unique to Handbrake, as nothing else running on my server is currently causing any issues. 

To start, I was experiencing the idle crash bug common on Linux systems running on first generation Ryzen CPUs (issue due to incompatibility between how the Linux kernal calls for C-states and how 1st-gen Ryzen handles them), during this time, as long as I could keep the server from going idle, I could keep the server up indefinitely with absolutely no issues. 

As my work load declined, and I was not having stuff being backed up to the server 24/7, I finally got around to finding the fix for that issue, and changed the the PSU management in the UEFI to "Typical Idle Current".

Ever since I made that change, I have not been able to successfully encode anything in Handbrake. One of three things happen any time I try to do any encodes in Handbrake, in order to most frequent to least frequent they are:

The Handbrake Container just stops, no event is recorded in the logs, it just stops.  I can start it again, and it will get part way through an encode and then crash again in one of these 3 ways.

 

The Handbrake Container completely locks up but still shows as running. No event recorded in the logs. If I stop the container I can then start it again, but if I choose restart from the dropdown the entire server locks up, requiring a hard reset.

 

The Unraid GUI and the Handbrake Container both become unresponsive, but my other Containers still function and can be accessed directly. Again no event recorded in the logs, and also when this happens, I can no longer access my SMB shares from my Windows PCs.

 

I am currently running Unraid 7.0.1 on a Ryzen 1700, ASUS ROG Strix X370-F Gaming mobo using ethernet, Intel ARC Alchemist A750 GPU, my array consists of 4 HGST 8TB Enterprise drives 1 assigned to parity (all running off the mobo SATA controller), and I have a 2TB Predator GM7000 NVMe SSD as a Cache drive.

My PSU is an 80Plus Gold Rosewill Lepton 500w that has proven very reliable.  I don't think its a power draw issue, as before I fixed the idle crash bug, I was able to run a Handbrake QSV encode, while having 4 simultaneous Plex streams running with QSV hardware transcoding and the GPU running at 80% and that was while also pushing files to the array from 2 Windows PCs.  With all that my total system power draw was about 400w.

 

Also running on my server is MAKEMKV, Immich, GoDaddy-DDNS, Plex, and MKVToolNix.

During my testing I eliminated the possibility of it being a conflict, as the crash was occurring even when no other containers or services were running on my server. Just Unraid, the Intel GPU plugins, and Handbrake.

 

After extensive testing I seem to have fixed my issue, though I do not know what it was.  I ended up enabling SMB sharing for my appdata folder, shutting down and removing the Handbrake container, then going into appdata and deleting all the files left behind after the removal.  I then reinstalled Handbrake and had it successfully encode 12 of the movies I had ripped while Handbrake was giving me issues.  I then upgraded to Unraid 7.1.0, and experienced one unrelated system issue, my USB stick got corrupted, thankfully my last backup was from 2 weeks ago. During this time I have had no other containers running at the same time as Handbrake.  I will begin starting up my other containers soon, one at a time to check for conflicts, but in my professional opinion, this was most likely an issue with the update script not removing old files.  If I make no future updates to this, then I am not having Furter issues.

On 5/3/2025 at 6:04 PM, Etherealthe1st said:

Hi, Any chance we could hardware encoding support for AMD (H.265 VCN )? I'm using the Radeon TOP which works great with Plex.

I don't know what your skill level is, but if your up to it you could try and compose your own docker container using the official Handbrake for Linux package available at the official Handbrake website https://handbrake.fr/ 

Handbrake currently has native support for AMD GPU hardware encoding (as well as nVidia, and Intel) baked into the program, so the inability to use other GPUs must be a limitation baked into this container.

 

Now if you go this route, you will be losing the automatic video encoder function, as that is a custom feature and not standard to Handbrake... Though if you can make your own container you can probably figure out how to copy that code and add it to your container as well.

  • 4 weeks later...

doesn't sound like there's a debug logger but for the past month or so there seems to be a lot of errors in the output where its not outputting the whole video file. Anyone been experiencing this since moving to Unraid 7?

On 5/8/2025 at 3:23 PM, Æþerfox said:

During my testing I eliminated the possibility of it being a conflict, as the crash was occurring even when no other containers or services were running on my server. Just Unraid, the Intel GPU plugins, and Handbrake.

 

After extensive testing I seem to have fixed my issue, though I do not know what it was.  I ended up enabling SMB sharing for my appdata folder, shutting down and removing the Handbrake container, then going into appdata and deleting all the files left behind after the removal.  I then reinstalled Handbrake and had it successfully encode 12 of the movies I had ripped while Handbrake was giving me issues.  I then upgraded to Unraid 7.1.0, and experienced one unrelated system issue, my USB stick got corrupted, thankfully my last backup was from 2 weeks ago. During this time I have had no other containers running at the same time as Handbrake.  I will begin starting up my other containers soon, one at a time to check for conflicts, but in my professional opinion, this was most likely an issue with the update script not removing old files.  If I make no future updates to this, then I am not having Furter issues.

After migrating to Unraid 7.1.2 Handbrake auto converter now just saves empty files.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.