[Support] Djoss - HandBrake


Recommended Posts

56 minutes ago, mbc0 said:

I just reinstalled, only values entered where the folders (watch, output etc) 

 

Same problem, no errors in log? 

 

What do you mean docker command it ran?

 

Thanks for your time!

Can you try the clear your browser cache or try with a different browser?

Link to comment
12 minutes ago, rbroberts said:

Below is the relevant part of presets.json. In spite of the FileFormat av_mkv setting, the log shows that it's selecting an MPEG-4 container.

 


[21:34:57] job configuration:
[21:34:57]  * source
[21:34:57]    + /watch/Deleted Scenes-deleted.mkv
[21:34:57]    + title 1, chapter(s) 1 to 4
[21:34:57]    + container: matroska,webm
[21:34:57]    + data rate: 18432 kbps
[21:34:57]  * destination
[21:34:57]    + /output/Deleted Scenes-deleted.mp4
[21:34:57]    + container: MPEG-4 (libavformat)
[21:34:57]      + chapter markers
[21:34:57]  * video track
[21:34:57]    + decoder: h264
[21:34:57]    + filters
[21:34:57]      + 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)
[21:34:57]      + Decomb (mode=39)
[21:34:57]      + Framerate Shaper (mode=0)
[21:34:57]        + frame rate: same as source (around 23.976 fps)
[21:34:57]      + Subtitle renderer ()
[21:34:57]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[21:34:57]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[21:34:57]    + Output geometry
[21:34:57]      + storage dimensions: 1920 x 1080
[21:34:57]      + pixel aspect ratio: 1 : 1
[21:34:57]      + display dimensions: 1920 x 1080
[21:34:57]    + encoder: H.264 (libx264)
[21:34:57]      + preset:  fast
[21:34:57]      + profile: main
[21:34:57]      + level:   4.0
[21:34:57]      + quality: 22.00 (RF)
[21:34:57]  * subtitle track 1, English (track 0, id 0x2) Picture [PGS] -> Render/Burn-in
[21:34:57]  * audio track 1
[21:34:57]    + decoder: English (AC3) (2.0 ch) (track 1, id 0x1)
[21:34:57]      + bitrate: 320 kbps, samplerate: 48000 Hz
[21:34:57]    + mixdown: Stereo
[21:34:57]    + dynamic range compression: 2.000000
[21:34:57]    + encoder: AAC (libavcodec)
[21:34:57]      + bitrate: 192 kbps, samplerate: 48000 Hz
[21:34:57] sync: expecting 18127 video frames

 


        {
            "AudioCopyMask": [
                "copy:aac"
            ],
            "AudioEncoderFallback": "av_aac",
            "AudioLanguageList": [
                "und"
            ],
            "AudioList": [
                {
                    "AudioBitrate": 192,
                    "AudioCompressionLevel": -1.0,
                    "AudioDitherMethod": "auto",
                    "AudioEncoder": "av_aac",
                    "AudioMixdown": "dpl2",
                    "AudioNormalizeMixLevel": false,
                    "AudioSamplerate": "auto",
                    "AudioTrackDRCSlider": 2.0,
                    "AudioTrackGainSlider": 0.0,
                    "AudioTrackQuality": 1.0,
                    "AudioTrackQualityEnable": false
                }
            ],
            "AudioSecondaryEncoderMode": true,
            "AudioTrackSelectionBehavior": "all",
            "ChapterMarkers": true,
            "ChildrenArray": [],
            "Default": true,
            "FileFormat": "av_mkv",
            "Folder": false,
            "FolderOpen": false,
            "Mp4HttpOptimize": false,
            "Mp4iPodCompatible": false,
            "PictureAutoCrop": false,
            "PictureBottomCrop": 0,
            "PictureCombDetectCustom": "",
            "PictureCombDetectPreset": "default",
            "PictureDARWidth": 0,
            "PictureDeblock": 0,
            "PictureDeblockCustom": "qp=0:mode=2",
            "PictureDeinterlaceCustom": "",
            "PictureDeinterlaceFilter": "decomb",
            "PictureDeinterlacePreset": "default",
            "PictureDenoiseCustom": "",
            "PictureDenoiseFilter": "off",
            "PictureDenoisePreset": "",
            "PictureDenoiseTune": "none",
            "PictureDetelecine": "off",
            "PictureDetelecineCustom": "",
            "PictureForceHeight": 0,
            "PictureForceWidth": 0,
            "PictureHeight": 0,
            "PictureItuPAR": false,
            "PictureKeepRatio": true,
            "PictureLeftCrop": 0,
            "PictureLooseCrop": false,
            "PictureModulus": 2,
            "PicturePAR": "auto",
            "PicturePARHeight": 1,
            "PicturePARWidth": 1,
            "PictureRightCrop": 0,
            "PictureRotate": "disable=1",
            "PictureTopCrop": 0,
            "PictureWidth": 0,
            "PresetDescription": "H.264 video (up to 1080p30) and AAC stereo audio, in an MKV container.",
            "PresetName": "Custom Fast 1080p30",
            "SubtitleAddCC": false,
            "SubtitleAddForeignAudioSearch": false,
            "SubtitleAddForeignAudioSubtitle": false,
            "SubtitleBurnBDSub": false,
            "SubtitleBurnBehavior": "none",
            "SubtitleBurnDVDSub": false,
            "SubtitleLanguageList": [
                "eng",
                "und"
            ],
            "SubtitleTrackSelectionBehavior": "all",
            "Type": 1,
            "UsesPictureFilters": true,
            "UsesPictureSettings": 2,
            "VideoAvgBitrate": 6000,
            "VideoColorMatrixCode": 0,
            "VideoEncoder": "x264",
            "VideoFramerate": "auto",
            "VideoFramerateMode": "vfr",
            "VideoGrayScale": false,
            "VideoLevel": "4.0",
            "VideoOptionExtra": "",
            "VideoPreset": "fast",
            "VideoProfile": "main",
            "VideoQSVAsyncDepth": 4,
            "VideoQSVDecode": false,
            "VideoQualitySlider": 22.0,
            "VideoQualityType": 2,
            "VideoScaler": "swscale",
            "VideoTune": "",
            "VideoTurboTwoPass": true,
            "VideoTwoPass": true,
            "x264Option": "level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30",
            "x264UseAdvancedOptions": false
        }

 

The file format is set in container’s settings:  change it from mp4 to mkv.

Link to comment

This really is a great docker! Thank you so much for your hard work!!

 

This is going to save me a lot of time and is very convenient compared to my current but soon to be old setup!

 

As my server is also running Plex is there a way to handle CPU usage as I would need Plex to have priority over Handbrake.

 

Again.. Thanks this is brilliant!

Link to comment
1 hour ago, mbc0 said:

This really is a great docker! Thank you so much for your hard work!!

 

This is going to save me a lot of time and is very convenient compared to my current but soon to be old setup!

 

As my server is also running Plex is there a way to handle CPU usage as I would need Plex to have priority over Handbrake.

 

Again.. Thanks this is brilliant!

In the container’s settings, you can configure HandBrake to run with low priority :)

Click on”Show more settings” to see it.

Link to comment

aha thank you, set to 10 so hopefully that will not affect Plex, just out of interest will it always run at priority 10 no matter what or will it know if another process is using cpu? I guess being a docker it will not be able to know if something else is calling on the CPU?

 

Thanks again :-)

Link to comment
18 hours ago, mbc0 said:

aha thank you, set to 10 so hopefully that will not affect Plex, just out of interest will it always run at priority 10 no matter what or will it know if another process is using cpu? I guess being a docker it will not be able to know if something else is calling on the CPU?

 

Thanks again :-)

Everything in a container run natively on the host.  So the host just manages a bunch of processes and gives more CPU to processes with higher priorities

Link to comment

Thanks for that! 

 

I am having performance issues with the docker as encoding X265 I am only getting approx 9fps but if I use the same profile on a Windows VM (on the same unraid server) I get 40+ fps any ideas? my CPU has all cores maxed out and no other processes running...

Capture.JPG

Link to comment

Just been doing some testing using the same HEVC Presets, everything is on the same machine with the same amount of cores available and no GPU Passthrough, 

 

Windows 10 VM Handbrake 38fps

Linux Mint VM Handbrake 41fps

Linux Mint VM FFMPEG 39fps

Handbrake Docker 9fps

 

Any ideas?

Link to comment

Hi,

 

fps is not as consistent with this version but the net result is the same unfortunately. it is fluctuating between 3fps - 20fps.    any ideas what could be causing the slow processing? looking at the log you would think it would be slow disk speed but all my tests have been from the same 500mb file on the same disk.

 

 

Capture.JPG

Capture.JPG

Capture.JPG

Edited by mbc0
Link to comment
On 19/02/2018 at 11:41 AM, mbc0 said:

Hi,

 

fps is not as consistent with this version but the net result is the same unfortunately. it is fluctuating between 3fps - 20fps.    any ideas what could be causing the slow processing? looking at the log you would think it would be slow disk speed but all my tests have been from the same 500mb file on the same disk.

 

 

Capture.JPG

Capture.JPG

Capture.JPG

 

Since all your cores are almost at 100%, I suspect that there is some kind of acceleration that kicks in when you get ~40fps on other setups.

Searching a little bit on google seems to show that ~10fps is what to expect without acceleration.  I have similar results on my machine.

Do you have an Intel CPU?  Which graphic card did you configured for your VMs?

Link to comment

Did the handbrake image change recently? HE-AAC disappeared as an audio encoding option and x265 encoding now fail/error our when a glitch in the source stream is encountered with the following in the log

 

encoded 4416 frames in 49.98s (88.36 fps), 423.07 kb/s, Avg QP:28.96
[21:06:19] avformatMux: track 1, av_interleaved_write_frame failed with error 'Function not implemented'
[21:06:19] Last error repeated 1 times
[21:06:19] avformatMux: track 0, av_interleaved_write_frame failed with error 'Function not implemented'
[21:06:19] avformatMux: track 0, av_interleaved_write_frame failed with error 'Function not implemented'
[21:06:19] Last error repeated 1 times
[21:06:19] avformatMux: track 1, av_interleaved_write_frame failed with error 'Function not implemented'
[21:06:19] avformatMux: track 1, av_interleaved_write_frame failed with error 'Function not implemented'
[21:06:19] Last error repeated 8 times

Link to comment
15 hours ago, Makmanak said:

Did the handbrake image change recently? HE-AAC disappeared as an audio encoding option and x265 encoding now fail/error our when a glitch in the source stream is encountered with the following in the log

 

encoded 4416 frames in 49.98s (88.36 fps), 423.07 kb/s, Avg QP:28.96
[21:06:19] avformatMux: track 1, av_interleaved_write_frame failed with error 'Function not implemented'
[21:06:19] Last error repeated 1 times
[21:06:19] avformatMux: track 0, av_interleaved_write_frame failed with error 'Function not implemented'
[21:06:19] avformatMux: track 0, av_interleaved_write_frame failed with error 'Function not implemented'
[21:06:19] Last error repeated 1 times
[21:06:19] avformatMux: track 1, av_interleaved_write_frame failed with error 'Function not implemented'
[21:06:19] avformatMux: track 1, av_interleaved_write_frame failed with error 'Function not implemented'
[21:06:19] Last error repeated 8 times

Thanks for reporting, I will look at this.  It's probably due to the last update, where official Alpine packages where used instead of the ones bundled with Handbrake.  This was to fix crashes with some encoders.

Link to comment

The docker image using HandBrake 1.07 doesn't recognize the pcm_16le encoded audio track on one of my rips. The Fedora 27 version, which has a dated version (nightly build?) of 20180111143138-9bd2b8e-unknown (x86_64) does. I'm not sure if this is a HandBrake issue or a missing library in the docker image.

 

Link to comment
7 hours ago, rbroberts said:

The docker image using HandBrake 1.07 doesn't recognize the pcm_16le encoded audio track on one of my rips. The Fedora 27 version, which has a dated version (nightly build?) of 20180111143138-9bd2b8e-unknown (x86_64) does. I'm not sure if this is a HandBrake issue or a missing library in the docker image.

 

This is with the latest container image version?  Do you know if it was working with an older version?

Link to comment

The container claims to be up-to-date, so yes the latest. This is the first rip I've run into that had a failure like this. I only discovered it when trying to play back the result and I had no sound, so I went looking for was was different. I did know that the Fedora version was slightly newer, so I gave it a try. So, I really don't have much else to give you. I only have the GUI install on Fedora; I could give you a list of libraries from ldd, but I don't know how to compare that with what's in the container.

Link to comment
1 hour ago, rbroberts said:

The container claims to be up-to-date, so yes the latest. This is the first rip I've run into that had a failure like this. I only discovered it when trying to play back the result and I had no sound, so I went looking for was was different. I did know that the Fedora version was slightly newer, so I gave it a try. So, I really don't have much else to give you. I only have the GUI install on Fedora; I could give you a list of libraries from ldd, but I don't know how to compare that with what's in the container.

Can you try with the previous version of the container?  To do so, open container's settings and add ":v1.11.2" to the repository.  So the repository will be: "jlesage/handbrake:v1.11.2".

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.