Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. Handbrake local vs docker on Synology DS920+: same settings, very different results?

Handbrake local vs docker on Synology DS920+: same settings, very different results?

Scheduled Pinned Locked Moved Selfhosted
selfhosted
17 Posts 8 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S [email protected]

    I'm hoping someone could shed some light as to what's going on here.

    I was able to get Handbrake installed on my Synology DS920+ NAS with Intel Quick Sync support. Using the exact same settings that I do on my local installation of Handbrake, the file size and end results appear vastly different.

    I've tested different video files, but also the exact same one.

    For example:

    • Original file H.264 1.3 GiB 18.1MBits/s bitrate
    • Handbrake local H.265 459 MiB 6.42 Mbits/s bitrate
    • Handbrake docker H.265 973 MiB 13.6 Mbits/s bitrate

    My settings are:

    • Video encoder: H.265 (Intel QSV)
    • Framerate: Same as source
    • Variable framerate
    • Preset: Quality
    • Constant Quality: ICQ 32
    • Multi-pass encoding enabled.
    • Profile: Auto
    • Level: Auto
    • Filters: off
    • Dimensions: default (no resize, rescale, etc.)
    • Audio: AAC (avcodec) (mono)
    • Web optimized: Yes
    • Align A/V start: Yes
    • Passthrough Common Metadata: Yes

    Is there an oversight that I'm missing that could explain this? I'd rather use the Docker version, since it doesn't tie up my main laptop.

    C This user is from outside of this forum
    C This user is from outside of this forum
    [email protected]
    wrote last edited by
    #7

    Why are you encoding a file that’s already been encoded?

    S 1 Reply Last reply
    1
    • e0qdk@reddthat.comE [email protected]

      Are you running different versions of the software? (e.g. different versions of ffmpeg, maybe?)

      S This user is from outside of this forum
      S This user is from outside of this forum
      [email protected]
      wrote last edited by
      #8

      Same version of Handbrake (1.9.2), but I'm not even sure how to check for the ffmpeg version on my NAS, or what Handbrake is using. The system panel in the Handbrake info window doesn't list ffmpeg at all.

      1 Reply Last reply
      0
      • C [email protected]

        Why are you encoding a file that’s already been encoded?

        S This user is from outside of this forum
        S This user is from outside of this forum
        [email protected]
        wrote last edited by
        #9

        Basically saving space. The dashcam I use records in h264, and I've been saving space (50%) by converting them to h265 (through my Samsung phone). Handbrake is far more convenient for these batch conversions.

        1 Reply Last reply
        3
        • S [email protected]

          I'm hoping someone could shed some light as to what's going on here.

          I was able to get Handbrake installed on my Synology DS920+ NAS with Intel Quick Sync support. Using the exact same settings that I do on my local installation of Handbrake, the file size and end results appear vastly different.

          I've tested different video files, but also the exact same one.

          For example:

          • Original file H.264 1.3 GiB 18.1MBits/s bitrate
          • Handbrake local H.265 459 MiB 6.42 Mbits/s bitrate
          • Handbrake docker H.265 973 MiB 13.6 Mbits/s bitrate

          My settings are:

          • Video encoder: H.265 (Intel QSV)
          • Framerate: Same as source
          • Variable framerate
          • Preset: Quality
          • Constant Quality: ICQ 32
          • Multi-pass encoding enabled.
          • Profile: Auto
          • Level: Auto
          • Filters: off
          • Dimensions: default (no resize, rescale, etc.)
          • Audio: AAC (avcodec) (mono)
          • Web optimized: Yes
          • Align A/V start: Yes
          • Passthrough Common Metadata: Yes

          Is there an oversight that I'm missing that could explain this? I'd rather use the Docker version, since it doesn't tie up my main laptop.

          scrubbles@poptalk.scrubbles.techS This user is from outside of this forum
          scrubbles@poptalk.scrubbles.techS This user is from outside of this forum
          [email protected]
          wrote last edited by
          #10

          IIRC, presets are machine dependent, or at least they are optimized for the hardware. So if you have a weak machine, veryfast will use even worse encoding because you're simply saying "I just want it done fast", while on a more robust machine it may take more liberties. To match it completely I think you need to disregard the presets and set everything yourself, like CRF and everything.

          S 1 Reply Last reply
          1
          • S [email protected]

            I'm hoping someone could shed some light as to what's going on here.

            I was able to get Handbrake installed on my Synology DS920+ NAS with Intel Quick Sync support. Using the exact same settings that I do on my local installation of Handbrake, the file size and end results appear vastly different.

            I've tested different video files, but also the exact same one.

            For example:

            • Original file H.264 1.3 GiB 18.1MBits/s bitrate
            • Handbrake local H.265 459 MiB 6.42 Mbits/s bitrate
            • Handbrake docker H.265 973 MiB 13.6 Mbits/s bitrate

            My settings are:

            • Video encoder: H.265 (Intel QSV)
            • Framerate: Same as source
            • Variable framerate
            • Preset: Quality
            • Constant Quality: ICQ 32
            • Multi-pass encoding enabled.
            • Profile: Auto
            • Level: Auto
            • Filters: off
            • Dimensions: default (no resize, rescale, etc.)
            • Audio: AAC (avcodec) (mono)
            • Web optimized: Yes
            • Align A/V start: Yes
            • Passthrough Common Metadata: Yes

            Is there an oversight that I'm missing that could explain this? I'd rather use the Docker version, since it doesn't tie up my main laptop.

            X This user is from outside of this forum
            X This user is from outside of this forum
            [email protected]
            wrote last edited by [email protected]
            #11

            If all the settings and versions match, my first suspicion would be that there's some library available on one system that gets used but not the other. Have you taken very verbose logs to see if there's differences that stand out?

            S 1 Reply Last reply
            2
            • scrubbles@poptalk.scrubbles.techS [email protected]

              IIRC, presets are machine dependent, or at least they are optimized for the hardware. So if you have a weak machine, veryfast will use even worse encoding because you're simply saying "I just want it done fast", while on a more robust machine it may take more liberties. To match it completely I think you need to disregard the presets and set everything yourself, like CRF and everything.

              S This user is from outside of this forum
              S This user is from outside of this forum
              [email protected]
              wrote last edited by
              #12

              To match it completely I think you need to disregard the presets and set everything yourself, like CRF and everything.

              Is there a way to disable the preset completely? There's no "none" option, just "speed, balanced, and quality", but I set everything else up manually.

              scrubbles@poptalk.scrubbles.techS 1 Reply Last reply
              0
              • X [email protected]

                If all the settings and versions match, my first suspicion would be that there's some library available on one system that gets used but not the other. Have you taken very verbose logs to see if there's differences that stand out?

                S This user is from outside of this forum
                S This user is from outside of this forum
                [email protected]
                wrote last edited by
                #13

                Have you taken very verbose logs to see if there’s differences that stand out?

                Nope, but that could be a next step. I was hoping for an easy fix (like I did something wrong in the settings).

                Realistically, if this can't be solved by using the built-in setting options, then it's not worth the trouble to "fix" anything. It still works, so I'm glad to have the option.

                1 Reply Last reply
                0
                • S [email protected]

                  The NAS (Synology DS920+):

                  • CPU: Intel Celeron J4125 4-core 2.0 GHz, burst up to 2.7 GHz
                  • RAM: upgraded to 20GB
                  • NVME cache: 256GB
                  • HDD are all Seagate ironwolf 8GB x 3 and a 4TB.

                  Laptop (Framework 13 11th Gen intel):

                  • CPU: Intel Core i5-1135G7 (integrated Iris Xe Graphics 80EU)
                  • RAM: 64GB
                  • Storage: 2TB WD Black 770

                  I would expect a difference in speed between the two, but does the hardware affect the output quality/size if the settings are identical?

                  M This user is from outside of this forum
                  M This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #14

                  but does the hardware affect the output quality/size if the settings are identical?

                  Yes, your laptop has a much newer quicksync block with proper HEVC hardware-

                  NAS is Gemini Lake, which uses QS from Broxton/Apollo Lake/Gemini Lake

                  Laptop is Tiger Lake, which uses about 3 versions newer QS, for Tiger Lake, Alder Lake and Raptor Lake.

                  Broxton QuickSync doesn't actually have an asic encoder path for HEVC, it's all via shaders.

                  S 1 Reply Last reply
                  1
                  • M [email protected]

                    but does the hardware affect the output quality/size if the settings are identical?

                    Yes, your laptop has a much newer quicksync block with proper HEVC hardware-

                    NAS is Gemini Lake, which uses QS from Broxton/Apollo Lake/Gemini Lake

                    Laptop is Tiger Lake, which uses about 3 versions newer QS, for Tiger Lake, Alder Lake and Raptor Lake.

                    Broxton QuickSync doesn't actually have an asic encoder path for HEVC, it's all via shaders.

                    S This user is from outside of this forum
                    S This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #15

                    I found my answer then! I appreciate that 👍

                    M 1 Reply Last reply
                    0
                    • S [email protected]

                      To match it completely I think you need to disregard the presets and set everything yourself, like CRF and everything.

                      Is there a way to disable the preset completely? There's no "none" option, just "speed, balanced, and quality", but I set everything else up manually.

                      scrubbles@poptalk.scrubbles.techS This user is from outside of this forum
                      scrubbles@poptalk.scrubbles.techS This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #16

                      Sorry I usually work directly with ffmpeg and that's how I had the hunch, those presets are h264 presets that go in. But does it matter, you said you were only curious, I think that's why, so now you know

                      1 Reply Last reply
                      1
                      • S [email protected]

                        I found my answer then! I appreciate that 👍

                        M This user is from outside of this forum
                        M This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #17

                        No problem 🙂

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups