Output file size twice as large after upgrade from HB-1.3.3 to 1.5.1

Discuss encoding for devices and presets.
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
his.dudeness
Posts: 2
Joined: Sat Mar 26, 2022 7:16 am

Output file size twice as large after upgrade from HB-1.3.3 to 1.5.1

Post by his.dudeness »

Description of problem or question:

Hi I just did an upgrade from Handbrake HandBrake-1.3.3 to HandBrake-1.5.1 on my Win10 machine and I realized that the output file is about twice as large with the same presets.

Steps to reproduce the problem (If Applicable):

Input H264 = 1284 MB
Output H265 with HB 1.3.3 = 483 MB
Output H265 with HB 1.5.1 = 929 MB

I am using the same preset (AMD VCE, 25 QP, AAC 5.1)

HandBrake version (e.g., 1.0.0):

HandBrake-1.3.3
HandBrake-1.5.1


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Win10 x64


HandBrake Activity Log ***required*** (see How-to get an activity log)

Both logs attached. I sanitized file and user names

Code: Select all

HandBrake 1.5.1 (2022011000)
OS: Microsoft Windows NT 10.0.19043.0
CPU: AMD Ryzen 5 PRO 3400G with Radeon Vega Graphics
Ram: 30668 MB, 
GPU Information:
  Citrix Indirect Display Adapter - 12.40.44.247
  AMD Radeon(TM) Vega 11 Graphics - 30.0.13023.4001
Screen: 1920x1080
Temp Dir: 
Install Dir: 
Data Dir: 

-------------------------------------------

 # Starting Encode ...

[07:28:22] base preset: MyPreset_2 (Modified)
[07:28:23] Remote Process started with Process ID: 13884 using port: 8037. Max Allowed Instances: 1
[07:28:23] Worker: Starting HandBrake Engine ...
[07:28:23] Worker: Starting Web Server on port 8037 ...
[07:28:24] Worker: Disconnected worker monitoring enabled!
[07:28:24] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
[07:28:24] hb_init: starting libhb thread
[07:28:24] Starting work at: Sat Mar 26 07:28:24 2022
[07:28:24] 1 job(s) to process
[07:28:24] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 640,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "English",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [],
    "FallbackEncoder": "av_aac"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "00:00:00.000"
      },
      {
        "Name": "00:07:12.557"
      },
      {
        "Name": "00:14:26.824"
      },
      {
        "Name": "00:21:07.475"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "myfile.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 13,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 4
    },
    "Title": 1,
    "Path": ""
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "vce_h265",
    "Level": "4.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "quality",
    "Profile": "main",
    "Quality": 25,
    "QSV": {
      "Decode": false
    }
  }
}
[07:28:24] CPU:
[07:28:24]  - logical processor count: 8
[07:28:24] Intel Quick Sync Video support: no
[07:28:24] hb_scan: path=.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image .mkv
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2646: nav_get_title_list(.mkv\) failed
[07:28:25] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[07:28:26] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '.mkv':
  Metadata:
    encoder         : libebml v1.0.0 + libmatroska v1.0.0
    creation_time   : 2011-01-10T18:03:16.000000Z
  Duration: 00:21:40.91, start: 0.000000, bitrate: 8091 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 432.557000
      Metadata:
        title           : 00:00:00.000
    Chapter #0:1: start 432.557000, end 866.824000
      Metadata:
        title           : 00:07:12.557
    Chapter #0:2: start 866.824000, end 1267.475000
      Metadata:
        title           : 00:14:26.824
    Chapter #0:3: start 1267.475000, end 1300.907000
      Metadata:
        title           : 00:21:07.475
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : 
  Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
    Metadata:
      title           : English
  Stream #0:2(eng): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp
    Metadata:
      title           : English
  Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English
[07:28:26] scan: decoding previews for title 1
[07:28:26] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[07:28:26] scan: audio 0x2: aac, rate=48000Hz, bitrate=1 English (HE-AAC) (2.0 ch)
[07:28:33] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[07:28:33] libhb: scan thread found 1 valid title(s)
[07:28:33] Skipping subtitle scan.  No suitable subtitle tracks.
[07:28:33] Starting Task: Encoding Pass
[07:28:33] Skipping vfr filter
[07:28:33] Skipping crop/scale filter
[07:28:33] work: track 1, dithering not supported by codec
[07:28:33] job configuration:
[07:28:33]  * source
[07:28:33]    + .mkv
[07:28:33]    + title 1, chapter(s) 1 to 4
[07:28:33]    + container: matroska,webm
[07:28:33]    + data rate: 8091 kbps
[07:28:33]  * destination
[07:28:33]    + .mkv
[07:28:33]    + container: Matroska (libavformat)
[07:28:33]      + chapter markers
[07:28:33]  * video track
[07:28:33]    + decoder: h264 8-bit (yuv420p)
[07:28:33]    + Output geometry
[07:28:33]      + storage dimensions: 1920 x 1080
[07:28:33]      + pixel aspect ratio: 1 : 1
[07:28:33]      + display dimensions: 1920 x 1080
[07:28:33]    + encoder: H.265 (AMD VCE)
[07:28:33]      + preset:  quality
[07:28:33]      + profile: main
[07:28:33]      + level:   4.1
[07:28:33]      + quality: 25.00 (CQ)
[07:28:33]      + color profile: 1-1-1
[07:28:33]      + chroma location: left
[07:28:33]  * audio track 1
[07:28:33]    + name: English
[07:28:33]    + decoder: English (DTS) (5.1 ch) (1536 kbps) (track 1, id 0x1)
[07:28:33]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[07:28:33]    + mixdown: 5.1 Channels
[07:28:33]    + encoder: AAC (libavcodec)
[07:28:33]      + bitrate: 640 kbps, samplerate: 48000 Hz
[07:28:33] sync: expecting 31190 video frames
[07:28:33] encavcodecInit: H.265 (AMD VCE)
[07:28:33] encavcodec: encoding at constant quality 25
[07:28:33] encavcodec: QP (I)      8-36
[07:28:33] encavcodec: QP (P)      12-40
[07:28:33] encavcodec: GOP Size    47
[07:28:33] encavcodec: Max Rate    7012
[07:28:33] encavcodec: Buffer Size 6760
[07:28:33] encavcodec: Max AU Size 1690
[07:28:33] encavcodec: encoding with stored aspect 1/1
[07:28:33] sync: first pts video is 0
[07:28:33] sync: "00:00:00.000" (1) at frame 1 time 0
[07:28:33] sync: first pts audio 0x1 is 0
[07:35:38] sync: "00:07:12.557" (2) at frame 10372 time 38930141
[07:42:52] sync: "00:14:26.824" (3) at frame 20784 time 78014186
[07:49:10] sync: "00:21:07.475" (4) at frame 30390 time 114072708
[07:49:24] reader: done. 1 scr changes
[07:49:34] work: average encoding speed for job is 24.879265 fps
[07:49:34] dca-decoder done: 121946 frames, 0 decoder errors
[07:49:34] h264-decoder done: 31186 frames, 0 decoder errors
[07:49:34] sync: got 31186 frames, 31190 expected
[07:49:34] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[07:49:35] mux: track 0, 31186 frames, 848274435 bytes, 5216.94 kbps, fifo 1024
[07:49:35] mux: track 1, 60974 frames, 103032697 bytes, 633.66 kbps, fifo 2048
[07:49:35] Finished work at: Sat Mar 26 07:49:35 2022
[07:49:35] libhb: work result = 0

 # Job Completed!

------------------------------------------------------------------------------------

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19043.0
CPU: AMD Ryzen 5 PRO 3400G with Radeon Vega Graphics
Ram: 30668 MB, 
GPU Information:
  Citrix Indirect Display Adapter - 12.40.44.247
  AMD Radeon(TM) Vega 11 Graphics - 30.0.13023.4001
Screen: 1920x1080
Temp Dir: 
Install Dir: 
Data Dir: 

-------------------------------------------


# Starting Encode ...

[07:53:03] base preset: MyPreset_2 (Modified)
[07:53:03] hb_init: starting libhb thread
[07:53:03] Starting work at: Sat Mar 26 07:53:03 2022
[07:53:03] 1 job(s) to process
[07:53:03] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 640,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "English",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [],
    "FallbackEncoder": "av_aac"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "00:00:00.000"
      },
      {
        "Name": "00:07:12.557"
      },
      {
        "Name": "00:14:26.824"
      },
      {
        "Name": "00:21:07.475"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": ".mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 4
    },
    "Title": 1,
    "Path": ".mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "vce_h265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "quality",
    "Profile": "main",
    "Quality": 25.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[07:53:03] CPU:
[07:53:03]  - logical processor count: 8
[07:53:03] Intel Quick Sync Video support: no
[07:53:03] hb_scan: path=.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image .mkv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(.mkv\) failed
[07:53:04] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[07:53:04] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '.mkv':
  Metadata:
    encoder         : libebml v1.0.0 + libmatroska v1.0.0
    creation_time   : 2011-01-10T18:03:16.000000Z
  Duration: 00:21:40.91, start: 0.000000, bitrate: 8091 kb/s
    Chapter #0:0: start 0.000000, end 432.557000
    Metadata:
      title           : 00:00:00.000
    Chapter #0:1: start 432.557000, end 866.824000
    Metadata:
      title           : 00:07:12.557
    Chapter #0:2: start 866.824000, end 1267.475000
    Metadata:
      title           : 00:14:26.824
    Chapter #0:3: start 1267.475000, end 1300.907000
    Metadata:
      title           : 00:21:07.475
    Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : 
    Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
    Metadata:
      title           : English
    Stream #0:2(eng): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp
    Metadata:
      title           : English
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English
[07:53:04] scan: decoding previews for title 1
[07:53:04] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[07:53:04] scan: audio 0x2: aac, rate=48000Hz, bitrate=1 English (HE-AAC) (2.0 ch)
[07:53:10] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[07:53:10] scan: supported video decoders: avcodec qsv
[07:53:11] libhb: scan thread found 1 valid title(s)
[07:53:11] Skipping subtitle scan.  No suitable subtitle tracks.
[07:53:11] Starting Task: Encoding Pass
[07:53:11] Skipping vfr filter
[07:53:11] Skipping crop/scale filter
[07:53:11] job configuration:
[07:53:11]  * source
[07:53:11]    + .mkv
[07:53:11]    + title 1, chapter(s) 1 to 4
[07:53:11]    + container: matroska,webm
[07:53:11]    + data rate: 8091 kbps
[07:53:11]  * destination
[07:53:11]    + .mkv
[07:53:11]    + container: Matroska (libavformat)
[07:53:11]      + chapter markers
[07:53:11]  * video track
[07:53:11]    + decoder: h264
[07:53:11]    + Output geometry
[07:53:11]      + storage dimensions: 1920 x 1080
[07:53:11]      + pixel aspect ratio: 1 : 1
[07:53:11]      + display dimensions: 1920 x 1080
[07:53:11]    + encoder: H.265 (AMD VCE)
[07:53:11]      + preset:  quality
[07:53:11]      + profile: main
[07:53:11]      + level:   auto
[07:53:11]      + quality: 25.00 (QP)
[07:53:11]      + color profile: 1-1-1
[07:53:11]  * audio track 1
[07:53:11]    + name: English
[07:53:11]    + decoder: English (DTS) (5.1 ch) (1536 kbps) (track 1, id 0x1)
[07:53:11]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[07:53:11]    + mixdown: 5.1 Channels
[07:53:11]    + dither: none
[07:53:11]    + encoder: AAC (libavcodec)
[07:53:11]      + bitrate: 640 kbps, samplerate: 48000 Hz
[07:53:11] sync: expecting 31190 video frames
[07:53:11] encavcodecInit: H.265 (AMD VCE)
[07:53:11] encavcodec: encoding at QP 25.00
[07:53:11] encavcodec: encoding with stored aspect 1/1
[07:53:11] sync: first pts video is 0
[07:53:11] sync: "00:00:00.000" (1) at frame 1 time 0
[07:53:11] sync: first pts audio 0x1 is 0
[07:58:40] sync: "00:07:12.557" (2) at frame 10372 time 38930141
[08:03:59] sync: "00:14:26.824" (3) at frame 20784 time 78014186
[08:08:30] sync: "00:21:07.475" (4) at frame 30390 time 114072708
[08:08:43] reader: done. 1 scr changes
[08:08:53] work: average encoding speed for job is 33.370491 fps
[08:08:53] dca-decoder done: 121946 frames, 0 decoder errors
[08:08:53] h264-decoder done: 31186 frames, 0 decoder errors
[08:08:53] sync: got 31186 frames, 31190 expected
[08:08:53] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[08:08:53] mux: track 0, 31186 frames, 391095702 bytes, 2405.26 kbps, fifo 2048
[08:08:53] mux: track 1, 60974 frames, 103031320 bytes, 633.65 kbps, fifo 4096
[08:08:53] Finished work at: Sat Mar 26 08:08:53 2022
[08:08:53] libhb: work result = 0

# Encode Completed ...




rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Output file size twice as large after upgrade from HB-1.3.3 to 1.5.1

Post by rollin_eng »

I don’t use the hardware encoder but maybe the encoder preset changed between versions?
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Output file size twice as large after upgrade from HB-1.3.3 to 1.5.1

Post by s55 »

QP scale did indeed change between 1.3.3 and 1.5 for VCN. The numbers are not equivalent between versions.
his.dudeness
Posts: 2
Joined: Sat Mar 26, 2022 7:16 am

Re: Output file size twice as large after upgrade from HB-1.3.3 to 1.5.1

Post by his.dudeness »

Hm, ok, so is there some kind of translation between old QP scale and new QP scale ?

The mouse over help still shows the same recommendations for quality settings as before.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Output file size twice as large after upgrade from HB-1.3.3 to 1.5.1

Post by mduell »

Given you results, add 6 to get in the same ballpark.
Post Reply