[Support] Djoss - HandBrake


Recommended Posts

2 minutes ago, C_James said:

its normal. i have a 10 core xeon with all 10 cores being used on handbrake. same high 80 to 90% temps. you are close to thermal limit for the chip. i hope the cooler is for 105w or more cpus.

 

Are you talking 80-90% cpu usage, or 80-90C temps? I'm more wondering if it's normal that the cores aren't maxing out their potential. My cooler is a corsair h115i people say it's good for this CPU.

Link to comment
1 minute ago, stev067 said:

 

Are you talking 80-90% cpu usage, or 80-90C temps? I'm more wondering if it's normal that the cores aren't maxing out their potential. My cooler is a corsair h115i people say it's good for this CPU.

im saying usage. that my bad. was typing the reply while in and out of a siege game. and okay. 81c does seem a little high for not all of the cores. i would check in case temps or reapply the thermal paste. 90 c is where ryzen thermal slows down. 

Link to comment
1 minute ago, C_James said:

im saying usage. that my bad. was typing the reply while in and out of a siege game. and okay. 81c does seem a little high for not all of the cores. i would check in case temps or reapply the thermal paste. 90 c is where ryzen thermal slows down. 

So but when you run the handbrake docker, what do the core utilizations look like?

Link to comment
16 hours ago, C_James said:

running handbrake now so here a screenshot.

image.png

Huh thanks. Is there anyone with a ryzen cpu who can confirm I should be getting higher CPU utilization than 60-80% per core?

Edit: Doesn't seem to have anything to do with temps or my cooler. When I run cinebench, it pegs all my cores at 100% and temps hold around 84c. It shouldn't have anything to do with storage speeds either, since Handbrake is reading from and writing to an nvme drive.

Edited by stev067
Link to comment

Just to follow up on my issue, I tried changing the "niceness" to give this docker highest priority and that didn't make a difference. I ended up dedicating fewer cores, and now those remaining cores are going in the 90%+ range. So I guess I have more CPU than handbrake knows what to do with?

Link to comment

Hi

Just installed the docker on my unraid and it appeared to install correctly and is running on my server. But when I try to go to the webui, I get a "refused to connect" error.

 

I left the ports at default, confirmed there is no conflict with another docker. I tried using the unraid menu to connect and typing the address and port directly in the browser. All other dockers work fine.

 

I just installed a pfSense hardware router and am still learning its voodoo. It is mostly default configuration. I see no rules that exclude my unraid server or ports 7803/7903. So I don't think that is it. But I tried making a rule to allow all ports on the unraid server and placed it 2nd in priority behind the anti lockout rule. Again, I am new to pfsense and firewall rules, so I may have done that wrong.

 

Please and Thank you

Link to comment
28 minutes ago, davper said:

Hi

Just installed the docker on my unraid and it appeared to install correctly and is running on my server. But when I try to go to the webui, I get a "refused to connect" error.

 

I left the ports at default, confirmed there is no conflict with another docker. I tried using the unraid menu to connect and typing the address and port directly in the browser. All other dockers work fine.

 

I just installed a pfSense hardware router and am still learning its voodoo. It is mostly default configuration. I see no rules that exclude my unraid server or ports 7803/7903. So I don't think that is it. But I tried making a rule to allow all ports on the unraid server and placed it 2nd in priority behind the anti lockout rule. Again, I am new to pfsense and firewall rules, so I may have done that wrong.

 

Please and Thank you

Some times its worth clearing the web browser cache. so might be worth clearing the cache and trying to connect again.

Link to comment
48 minutes ago, davper said:

Hi

Just installed the docker on my unraid and it appeared to install correctly and is running on my server. But when I try to go to the webui, I get a "refused to connect" error.

 

I left the ports at default, confirmed there is no conflict with another docker. I tried using the unraid menu to connect and typing the address and port directly in the browser. All other dockers work fine.

 

I just installed a pfSense hardware router and am still learning its voodoo. It is mostly default configuration. I see no rules that exclude my unraid server or ports 7803/7903. So I don't think that is it. But I tried making a rule to allow all ports on the unraid server and placed it 2nd in priority behind the anti lockout rule. Again, I am new to pfsense and firewall rules, so I may have done that wrong.

 

Please and Thank you

Disregard.

For the last 12 hours, I have been unable to connect. Then when I post for additional help, it resolves itself. effin gremlins!

Link to comment

Hi,

I just recently started using this docker for encoding movies and videos, and I ran into issue that someone may be able to help me out with.

Last night I queued seven videos, the first six encoded without any issues, but the last video did not encode at all. And somehow the original file managed to get deleted in the process of the encode.

The log looks like HandBrake found the video file, but when it switched to libdvdread, it could not find the file at all.

 

Here is the log for the failed encode:

Handbrake Version: 20210124210417-6c92584-1.3.x (2021022701)
[00:45:19] gtkgui: Modified Custom Preset: /Custom Presets/H265 MKV 1440p60 NVENC
[00:45:19] Starting work at: Fri Jul 16 00:45:19 2021

[00:45:19] 1 job(s) to process
[00:45:19] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "fdk_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 1,
                    "Minutes": 13,
                    "Seconds": 41,
                    "Ticks": 397897380
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/output/Millbrook Corona Invitational #1 Stream VOD.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": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 720,
                    "width": 1280
                }
            }
        ]
    },
    "Metadata": {
        "Name": "Millbrook Corona Invitational #1 Stream VOD"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4",
        "Range": {
            "End": 275400000,
            "Start": 0,
            "Type": "time"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "nvenc_h265",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[00:45:19] CPU: Intel(R) Core(TM) i3-10320 CPU @ 3.80GHz
[00:45:19]  - logical processor count: 8
[00:45:19] hb_scan: path=/storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4, title_index=1
disc.c:323: failed opening UDF image /storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4/) failed
[00:45:19] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Can't stat /storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4
No such file or directory
libdvdread: Could not open /storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4
libdvdnav: vm: failed to open/read the DVD
[00:45:19] dvd: not a dvd - trying as a stream/file instead
[00:45:19] hb_stream_open: open /storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4 failed
[00:45:19] scan: unrecognized file type
[00:45:19] libhb: scan thread found 0 valid title(s)
[00:45:19] hb_dict_to_job: Title 1 doesn't exist
[00:45:19] Finished work at: Fri Jul 16 00:45:19 2021

[00:45:19] libhb: work result = 3

 

 

Edited by resort
Grammar fix
Link to comment
On 7/16/2021 at 7:19 AM, resort said:

Hi,

I just recently started using this docker for encoding movies and videos, and I ran into issue that someone may be able to help me out with.

Last night I queued seven videos, the first six encoded without any issues, but the last video did not encode at all. And somehow the original file managed to get deleted in the process of the encode.

The log looks like HandBrake found the video file, but when it switched to libdvdread, it could not find the file at all.

 

Here is the log for the failed encode:


Handbrake Version: 20210124210417-6c92584-1.3.x (2021022701)
[00:45:19] gtkgui: Modified Custom Preset: /Custom Presets/H265 MKV 1440p60 NVENC
[00:45:19] Starting work at: Fri Jul 16 00:45:19 2021

[00:45:19] 1 job(s) to process
[00:45:19] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "fdk_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 1,
                    "Minutes": 13,
                    "Seconds": 41,
                    "Ticks": 397897380
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/output/Millbrook Corona Invitational #1 Stream VOD.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": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 720,
                    "width": 1280
                }
            }
        ]
    },
    "Metadata": {
        "Name": "Millbrook Corona Invitational #1 Stream VOD"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4",
        "Range": {
            "End": 275400000,
            "Start": 0,
            "Type": "time"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "nvenc_h265",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[00:45:19] CPU: Intel(R) Core(TM) i3-10320 CPU @ 3.80GHz
[00:45:19]  - logical processor count: 8
[00:45:19] hb_scan: path=/storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4, title_index=1
disc.c:323: failed opening UDF image /storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4/) failed
[00:45:19] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Can't stat /storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4
No such file or directory
libdvdread: Could not open /storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4
libdvdnav: vm: failed to open/read the DVD
[00:45:19] dvd: not a dvd - trying as a stream/file instead
[00:45:19] hb_stream_open: open /storage/Backup/Videos/Millbrook Corona Invitational #1 Stream VOD.mp4 failed
[00:45:19] scan: unrecognized file type
[00:45:19] libhb: scan thread found 0 valid title(s)
[00:45:19] hb_dict_to_job: Title 1 doesn't exist
[00:45:19] Finished work at: Fri Jul 16 00:45:19 2021

[00:45:19] libhb: work result = 3

 

 

This was with the UI and not the automatic video converted?

As you mentioned, looks like that the file has been removed while Handbrake was handling the file...

 

Link to comment

Slightly off-topic but does anyone know why Handbrake doesn't do hardware decoding?

 

When I convert h264 -> h265 using hardware encoding (thanks Djoss) I see low iGPU utilization and high CPU.  Contrast with Emby/ffmpeg h265 -> h264 which has high GPU utilization and low CPU.

 

Seems like such an obvious oversight I wonder if there's something I'm missing.

Link to comment
5 hours ago, CS01-HS said:

Slightly off-topic but does anyone know why Handbrake doesn't do hardware decoding?

 

When I convert h264 -> h265 using hardware encoding (thanks Djoss) I see low iGPU utilization and high CPU.  Contrast with Emby/ffmpeg h265 -> h264 which has high GPU utilization and low CPU.

 

Seems like such an obvious oversight I wonder if there's something I'm missing.

 

Well it seems like it's not doing anything hardware. Hardware decoding is next to pointless these days. Very little if any benefit from hardware decoding. Hardware encoding should be eating up quite a bit of GPU resources, but then the quality is never going to be as good as CPU encoding, so I'd leave it as it is.

Link to comment
1 hour ago, OFark said:

Well it seems like it's not doing anything hardware. Hardware decoding is next to pointless these days. 

 

Interesting. My conversions are noticeably faster with hardware encoding than pure CPU so it must be doing something.

 

Here are graphs of GPU utilization (dashed line) courtesy of gpu-monitor.

 

Emby transcoding:

1203226138_ScreenShot2021-07-19at8_17_53PM.thumb.png.ce4d23f86bb27aea9c7d13a968fb4956.png

 

Handbrake hardware conversion:

1276852347_ScreenShot2021-07-19at8_16_02PM.thumb.png.b4108de1abc7a0690fe81b6729b08e1b.png

 

Both using the intel quicksync driver and assigned to 3 CPUs.

I wonder what accounts for the difference.

Link to comment
5 hours ago, OFark said:

Have you passed /dev/dri to both? I use QSV in Handbrake just fine. 

 

Yes. You can see it working in second graph (Handbrake conversion.) The GPU's utilized but at a much lower level vs Emby. Seems this problem's unique to me but will post if I make any progress. 

 

Note: I have all video encoding filters disabled in Handbrake settings.

Link to comment

Since the last handbrake update i use its breake the intel QSV encoding. before it works for a couple of month. i can see the hardware profiles and i can select and start a job but the encoding doesnt work the encoding stops after i started. 

in the log i can see: " Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)'. plex working with hardware encoding and the device /dev/dri is already be there.

?????

 

handbrake.jpg

Edited by cracyfloyd
  • Like 1
Link to comment

Question: I have a Ryzen 9 processor and I am encoding H265 but I've noticed I'm only getting about 30% CPU utilisation.

 

Other than installing a second instance of Handbrake - Is there any plans to support multiple Encodes at the same time?

 

Thank-you for all your hard work....

 

I really do appreciate the hard work and expertise required.

 

Note: When I have tried a second instance of Handbrake - I have to use different watch folder otherwise they will both encode the same content at the same time. 

Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.