Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

HandBrake for Windows support
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
nicolaidenmark
Posts: 7
Joined: Sat Mar 16, 2019 11:11 am

Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by nicolaidenmark » Sat Mar 16, 2019 11:29 am

Description of problem or question:

Hi all, I copied a blu-ray losslessly with MakeMKV. The file is VC-1 and I need to convert it to H64 in order for it to work with Plex.
I want to preserve the lossless quality so I sat enconder time and quality to lossless as well as video (constant quality: 0 (placebo).

But, the suource file MKV is 19.X GB and the converted Handbrake vers. is 64.xx GB!

How do I keep the h264 lossless without the increase in file size?

HandBrake version (e.g., 1.0.0):

1.2.2


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

Windows 10 Pro, OEM with latest updates as per this date.


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

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.17763.0
CPU: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
Ram: 16303 MB, 
GPU Information:
  NVIDIA GeForce RTX 2070 - 25.21.14.1935
Screen: 2560x1440
Temp Dir: C:\Users\Nicolai\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Nicolai\AppData\Roaming\HandBrake

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


# Starting Encode ...

[21:57:40] hb_init: starting libhb thread
[21:57:40] 1 job(s) to process
[21:57:40] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 1,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "W:\\Films\\Japanske\\Ponyo (2008).mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "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": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 12
    },
    "Title": 1,
    "Path": "W:\\Films\\Japanske\\Ponyo.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": "x264",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "placebo",
    "Profile": "auto",
    "Quality": 0.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[21:57:40] CPU: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
[21:57:40]  - Intel microarchitecture Kaby Lake
[21:57:40]  - logical processor count: 8
[21:57:40] Intel Quick Sync Video support: no
[21:57:40] hb_scan: path=W:\Films\Japanske\Ponyo.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image W:\Films\Japanske\Ponyo.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
[21:57:40] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[21:57:40] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'W:\Films\Japanske\Ponyo.mkv':
  Metadata:
    title           : Ponyo
    encoder         : libmakemkv v1.14.2 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2019-03-15T17:34:22.000000Z
  Duration: 01:40:49.04, start: 0.000000, bitrate: 26194 kb/s
    Chapter #0:0: start 0.000000, end 485.193042
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 485.193042, end 878.794583
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 878.794583, end 1568.441875
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1568.441875, end 2118.574792
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 2118.574792, end 2596.635708
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 2596.635708, end 3322.694375
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 3322.694375, end 3720.508458
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 3720.508458, end 4129.083292
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 4129.083292, end 4408.195458
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 4408.195458, end 5158.236417
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 5158.236417, end 5950.152542
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 5950.152542, end 6049.043000
    Metadata:
      title           : Chapter 12
    Stream #0:0(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc
    Metadata:
      BPS-eng         : 20000767
      DURATION-eng    : 01:40:49.043000000
      NUMBER_OF_FRAMES-eng: 145032
      NUMBER_OF_BYTES-eng: 15123188168
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-15 17:34:22
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(jpn): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 4190804
      DURATION-eng    : 01:40:49.045333333
      NUMBER_OF_FRAMES-eng: 567098
      NUMBER_OF_BYTES-eng: 3168795308
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-15 17:34:22
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(dan): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1980979
      DURATION-eng    : 01:40:49.002666666
      NUMBER_OF_FRAMES-eng: 567094
      NUMBER_OF_BYTES-eng: 1497868756
      SOURCE_ID-eng   : 001103
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-15 17:34:22
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(dan): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17211
      DURATION-eng    : 01:37:33.076395833
      NUMBER_OF_FRAMES-eng: 1280
      NUMBER_OF_BYTES-eng: 12592179
      SOURCE_ID-eng   : 001202
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-15 17:34:22
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 640x360 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
[21:57:40] scan: decoding previews for title 1
[21:57:40] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 ??? (DTS-HD MA) (5.1 ch)
[21:57:40] scan: audio 0x2: dca, rate=48000Hz, bitrate=1 dansk (DTS-HD MA) (5.1 ch)
[21:57:41] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 22/22/0/0, aspect 16:9, PAR 1:1
[21:57:41] libhb: scan thread found 1 valid title(s)
[21:57:41] starting job
[21:57:41] decomb filter thread started for segment 0
[21:57:41] decomb filter thread started for segment 7
[21:57:41] decomb filter thread started for segment 6
[21:57:41] decomb check thread started for segment 3
[21:57:41] decomb filter thread started for segment 5
[21:57:41] decomb filter thread started for segment 4
[21:57:41] mask filter thread started for segment 1
[21:57:41] mask filter thread started for segment 4
[21:57:41] decomb check thread started for segment 1
[21:57:41] decomb check thread started for segment 2
[21:57:41] mask erode thread started for segment 3
[21:57:41] decomb filter thread started for segment 3
[21:57:41] decomb check thread started for segment 4
[21:57:41] decomb check thread started for segment 7
[21:57:41] mask dilate thread started for segment 7
[21:57:41] yadif thread started for segment 1
[21:57:41] yadif thread started for segment 4
[21:57:41] yadif thread started for segment 2
[21:57:41] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[21:57:41] yadif thread started for segment 7
[21:57:41] Auto Passthru: fallback is AC3
[21:57:41] Auto Passthru: using DTS-HD Passthru for track 1
[21:57:41] Auto Passthru: using DTS-HD Passthru for track 2
[21:57:41] mask filter thread started for segment 3
[21:57:41] decomb check thread started for segment 0
[21:57:41] job configuration:
[21:57:41]  * source
[21:57:41]    + W:\Films\Japanske\Ponyo.mkv
[21:57:41]    + title 1, chapter(s) 1 to 12
[21:57:41]    + container: matroska,webm
[21:57:41]    + data rate: 26194 kbps
[21:57:41]  * destination
[21:57:41]    + W:\Films\Japanske\Ponyo (2008).mkv
[21:57:41]    + container: Matroska (libavformat)
[21:57:41]      + chapter markers
[21:57:41]  * video track
[21:57:41] mask filter thread started for segment 5
[21:57:41]    + decoder: vc1
[21:57:41]    + filters
[21:57:41]      + 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:57:41]      + Decomb (mode=39)
[21:57:41]      + Framerate Shaper (mode=1)
[21:57:41] mask filter thread started for segment 7
[21:57:41]        + frame rate: 23.976 fps -> constant 23.976 fps
[21:57:41]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[21:57:41]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[21:57:41]    + Output geometry
[21:57:41]      + storage dimensions: 1920 x 1080
[21:57:41]      + pixel aspect ratio: 1 : 1
[21:57:41]      + display dimensions: 1920 x 1080
[21:57:41]    + encoder: H.264 (libx264)
[21:57:41]      + preset:  placebo
[21:57:41]      + profile: auto
[21:57:41]      + level:   auto
[21:57:41]      + quality: 0.00 (RF)
[21:57:41]      + color profile: 1-1-1
[21:57:41] mask filter thread started for segment 6
[21:57:41]  * subtitle track 1, dansk [PGS] (track 0, id 0x3, Picture) -> Passthrough
[21:57:41]  * audio track 1
[21:57:41]    + decoder: dansk (DTS-HD MA) (5.1 ch) (track 2, id 0x2)
[21:57:41]      + samplerate: 48000 Hz
[21:57:41]    + DTS-HD Passthru
[21:57:41]  * audio track 2
[21:57:41]    + decoder: ??? (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[21:57:41]      + samplerate: 48000 Hz
[21:57:41]    + DTS-HD Passthru
[21:57:41] mask erode thread started for segment 2
[21:57:41] mask erode thread started for segment 0
[21:57:41] mask erode thread started for segment 1
[21:57:41] mask erode thread started for segment 4
[21:57:41] decomb filter thread started for segment 2
[21:57:41] mask erode thread started for segment 6
[21:57:41] mask erode thread started for segment 5
[21:57:41] mask erode thread started for segment 7
[21:57:41] mask dilate thread started for segment 0
[21:57:41] mask dilate thread started for segment 2
[21:57:41] mask dilate thread started for segment 1
[21:57:41] mask dilate thread started for segment 3
[21:57:41] mask dilate thread started for segment 4
[21:57:41] mask dilate thread started for segment 5
[21:57:41] mask dilate thread started for segment 6
[21:57:41] decomb check thread started for segment 5
[21:57:41] decomb check thread started for segment 6
[21:57:41] yadif thread started for segment 0
[21:57:41] mask filter thread started for segment 0
[21:57:41] yadif thread started for segment 3
[21:57:41] mask filter thread started for segment 2
[21:57:41] yadif thread started for segment 5
[21:57:41] yadif thread started for segment 6
[21:57:41] decomb filter thread started for segment 1
[21:57:41] sync: expecting 145032 video frames
[21:57:41] encx264: min-keyint: 24, keyint: 240
[21:57:41] encx264: encoding at constant RF 0.000000
[21:57:41] encx264: unparsed options: ref=16:bframes=16:b-adapt=2:direct=auto:analyse=all:me=tesa:merange=24:subme=11:trellis=2:fast-pskip=0:rc-lookahead=60
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High 4:4:4 Predictive, level 5.1, 4:2:0, 8-bit
[21:57:41] sync: first pts video is 0
[21:57:41] sync: "Chapter 1" (1) at frame 1 time 0
[21:57:41] sync: first pts audio 0x2 is 0
[21:57:41] sync: first pts audio 0x1 is 0
[22:17:23] sync: first pts subtitle 0x3 is 17357310
[22:49:01] sync: "Chapter 2" (2) at frame 11635 time 43671127
[23:31:09] sync: "Chapter 3" (3) at frame 21071 time 79091512
[00:32:13] sync: "Chapter 4" (4) at frame 37606 time 141159768
[01:17:29] sync: "Chapter 5" (5) at frame 50796 time 190671731
[02:09:30] sync: "Chapter 6" (6) at frame 62258 time 233697213
[03:28:05] sync: "Chapter 7" (7) at frame 79667 time 299046247
[03:58:56] sync: "Chapter 8" (8) at frame 89205 time 334849515
[04:31:04] sync: "Chapter 9" (9) at frame 99001 time 371621250
[04:57:20] sync: "Chapter 10" (10) at frame 105693 time 396741345
[06:10:10] sync: "Chapter 11" (11) at frame 123676 time 464245031
[07:20:45] sync: "Chapter 12" (12) at frame 142662 time 535513728
[07:30:22] reader: done. 1 scr changes
[07:30:36] work: average encoding speed for job is 4.218649 fps
[07:30:36] comb detect: heavy 678 | light 5869 | uncombed 138484 | total 145031
[07:30:36] decomb: deinterlaced 678 | blended 5869 | unfiltered 138484 | total 145031
[07:30:36] vfr: 145031 frames output, 0 dropped and 0 duped for CFR/PFR
[07:30:36] vfr: lost time: 0 (0 frames)
[07:30:36] vfr: gained time: 0 (0 frames) (0 not accounted for)
[07:30:36] dca-decoder done: 567094 frames, 0 decoder errors
[07:30:36] dca-decoder done: 567098 frames, 0 decoder errors
[07:30:36] vc1-decoder done: 145032 frames, 0 decoder errors
[07:30:36] sync: got 145031 frames, 145032 expected
[07:30:36] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x264 [info]: frame I:1708  Avg QP: 0.00  size:725630
x264 [info]: frame P:143323 Avg QP: 0.00  size:444535
x264 [info]: mb I  I16..4..PCM: 54.8%  0.0% 45.2%  0.0%
x264 [info]: mb P  I16..4..PCM: 14.8%  0.0%  7.0%  0.0%  P16..4: 40.5%  6.8% 13.9%  0.8%  0.4%    skip:15.7%
x264 [info]: 8x8 transform intra:0.0% inter:62.8%
x264 [info]: coded y,uvDC,uvAC intra: 94.9% 61.1% 60.6% inter: 62.0% 49.4% 49.2%
x264 [info]: i16 v,h,dc,p: 47% 51%  2%  0%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 43%  4%  2%  3%  2%  2%  1%  1%
x264 [info]: i8c dc,h,v,p: 26% 43% 31%  0%
x264 [info]: Weighted P-Frames: Y:0.6% UV:0.4%
x264 [info]: ref P L0: 63.9%  4.7% 17.5%  4.9%  2.0%  1.3%  1.1%  0.6%  0.6%  0.6%  0.5%  0.5%  0.5%  0.5%  0.4%  0.5%
x264 [info]: kb/s:85900.42
[07:30:36] mux: track 0, 145031 frames, 64951404866 bytes, 85899.15 kbps, fifo 256
[07:30:36] mux: track 1, 567094 frames, 1497868756 bytes, 1980.95 kbps, fifo 2048
[07:30:36] mux: track 2, 567098 frames, 3168795308 bytes, 4190.78 kbps, fifo 2048
[07:30:36] mux: track 3, 1280 frames, 12592179 bytes, 16.65 kbps, fifo 8
[07:30:36] libhb: work result = 0

# Encode Completed ...


Thanks,

mduell
Veteran User
Posts: 6526
Joined: Sat Apr 21, 2007 8:54 pm

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by mduell » Sat Mar 16, 2019 1:36 pm

Pick a reasonable RF, like 20; 0 is not reasonable.

There's a big difference between "you can't see the difference" and "mathematically lossless".

User avatar
JohnAStebbins
HandBrake Team
Posts: 5387
Joined: Sat Feb 09, 2008 7:21 pm

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by JohnAStebbins » Sat Mar 16, 2019 1:42 pm

The codec used to encode BDs is *lossy*. When you transcode, it decodes that lossy encoding to raw images that are the full size (in bytes) of the original lossless video. *That* is what is passed to the encoder in HandBrake. If you then tell the encoder to encode lossless, it will be attempting to preserve perfectly the raw images it's getting, even though they originated from a lossy source (the BD). Preserving something perfectly takes a lot more bits than allowing some amount of lossiness. That is why your lossless encode is larger than the original BDs lossy encode.

nicolaidenmark
Posts: 7
Joined: Sat Mar 16, 2019 11:11 am

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by nicolaidenmark » Sat Mar 16, 2019 1:44 pm

Another example;

The Clone Wars;

Looks good to me and about same size as original lossless MKV. Where's the difference?

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.17763.0
CPU: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
Ram: 16303 MB, 
GPU Information:
  NVIDIA GeForce RTX 2070 - 25.21.14.1634
Screen: 2560x1440
Temp Dir: C:\Users\Nicolai\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Nicolai\AppData\Roaming\HandBrake

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


# Starting Encode ...

[17:23:39] hb_init: starting libhb thread
[17:23:39] 1 job(s) to process
[17:23:39] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 1,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\Users\\Nicolai\\Desktop\\SW CW s01e03.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 4
    },
    "Title": 1,
    "Path": "Z:\\TV Shows\\Star Wars - The Clone Wars\\Season 1\\VC1\\Star Wars The Clone Wars - s01e03 - Shadow of Malevolence.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": true,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      }
    ]
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slow",
    "Profile": "high",
    "Quality": 0.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[17:23:39] CPU: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
[17:23:39]  - Intel microarchitecture Kaby Lake
[17:23:39]  - logical processor count: 8
[17:23:39] Intel Quick Sync Video support: no
[17:23:39] hb_scan: path=Z:\TV Shows\Star Wars - The Clone Wars\Season 1\VC1\Star Wars The Clone Wars - s01e03 - Shadow of Malevolence.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image Z:\TV Shows\Star Wars - The Clone Wars\Season 1\VC1\Star Wars The Clone Wars - s01e03 - Shadow of Malevolence.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
[17:23:39] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[17:23:39] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Z:\TV Shows\Star Wars - The Clone Wars\Season 1\VC1\Star Wars The Clone Wars - s01e03 - Shadow of Malevolence.mkv':
  Metadata:
    title           : Star Wars: The Clone Wars - s01e03 - Shadow of Malevolence
    encoder         : libmakemkv v1.12.0 (1.3.5/1.4.7) darwin(x64-release)
    creation_time   : 2018-02-17T21:39:02.000000Z
  Duration: 00:23:21.92, start: 0.000000, bitrate: 11719 kb/s
    Chapter #0:0: start 0.000000, end 448.281167
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 448.281167, end 890.723167
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 890.723167, end 1345.469125
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1345.469125, end 1401.920000
    Metadata:
      title           : Chapter 04
    Stream #0:0(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p(bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 10354057
      DURATION-eng    : 00:23:20.899500000
      NUMBER_OF_FRAMES-eng: 33588
      NUMBER_OF_BYTES-eng: 1813123583
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.0 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-02-17 21:39:02
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 00:23:21.952000000
      NUMBER_OF_FRAMES-eng: 43811
      NUMBER_OF_BYTES-eng: 112156160
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.0 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-02-17 21:39:02
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(dan): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 00:23:21.952000000
      NUMBER_OF_FRAMES-eng: 43811
      NUMBER_OF_BYTES-eng: 112156160
      SOURCE_ID-eng   : 001103
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.0 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-02-17 21:39:02
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 46404
      DURATION-eng    : 00:23:00.024479166
      NUMBER_OF_FRAMES-eng: 616
      NUMBER_OF_BYTES-eng: 8004997
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.0 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-02-17 21:39:02
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(dan): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 44021
      DURATION-eng    : 00:23:05.947062500
      NUMBER_OF_FRAMES-eng: 574
      NUMBER_OF_BYTES-eng: 7626468
      SOURCE_ID-eng   : 001203
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.0 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-02-17 21:39:02
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 640x360 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
[17:23:39] scan: decoding previews for title 1
[17:23:39] scan: audio 0x1: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[17:23:39] scan: audio 0x2: ac3, rate=48000Hz, bitrate=640000 dansk (AC3) (5.1 ch)
[17:23:40] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 132/132/0/0, aspect 16:9, PAR 1:1
[17:23:40] libhb: scan thread found 1 valid title(s)
[17:23:40] Skipping subtitle scan.  No suitable subtitle tracks.
[17:23:40] starting job
[17:23:40] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[17:23:40] Auto Passthru: fallback is AC3
[17:23:40] Auto Passthru: using AC3 Passthru for track 1
[17:23:40] Auto Passthru: using AC3 Passthru for track 2
[17:23:40] job configuration:
[17:23:40]  * source
[17:23:40]    + Z:\TV Shows\Star Wars - The Clone Wars\Season 1\VC1\Star Wars The Clone Wars - s01e03 - Shadow of Malevolence.mkv
[17:23:40]    + title 1, chapter(s) 1 to 4
[17:23:40]    + container: matroska,webm
[17:23:40]    + data rate: 11719 kbps
[17:23:40]  * destination
[17:23:40]    + C:\Users\Nicolai\Desktop\SW CW s01e03.mkv
[17:23:40]    + container: Matroska (libavformat)
[17:23:40]      + chapter markers
[17:23:40]  * video track
[17:23:40]    + decoder: vc1
[17:23:40]    + filters
[17:23:40]      + Framerate Shaper (mode=1)
[17:23:40]        + frame rate: 23.976 fps -> constant 23.976 fps
[17:23:40]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[17:23:40]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[17:23:40]    + Output geometry
[17:23:40]      + storage dimensions: 1920 x 1080
[17:23:40]      + pixel aspect ratio: 1 : 1
[17:23:40]      + display dimensions: 1920 x 1080
[17:23:40]    + encoder: H.264 (libx264)
[17:23:40]      + preset:  slow
[17:23:40]      + profile: high
[17:23:40]      + level:   4.0
[17:23:40]      + quality: 0.00 (RF)
[17:23:40]      + color profile: 1-1-1
[17:23:40]  * subtitle track 1, English [PGS] (track 0, id 0x3, Picture) -> Passthrough
[17:23:40]  * subtitle track 2, dansk [PGS] (track 1, id 0x4, Picture) -> Passthrough
[17:23:40]  * audio track 1
[17:23:40]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[17:23:40]      + bitrate: 640 kbps, samplerate: 48000 Hz
[17:23:40]    + AC3 Passthru
[17:23:40]  * audio track 2
[17:23:40]    + decoder: dansk (AC3) (5.1 ch) (track 2, id 0x2)
[17:23:40]      + bitrate: 640 kbps, samplerate: 48000 Hz
[17:23:40]    + AC3 Passthru
[17:23:40] sync: expecting 33612 video frames
[17:23:40] encx264: min-keyint: 24, keyint: 240
[17:23:40] encx264: encoding at constant RF 0.000000
[17:23:40] apply_h264_profile [warning]: lossless requires high444 profile, disabling
[17:23:40] encx264: unparsed options: level=4.0:ref=4:direct=auto:subme=8:trellis=2:vbv-bufsize=31250:vbv-maxrate=25000:rc-lookahead=50
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 4.0, 4:2:0, 8-bit
[17:23:40] sync: first pts video is 0
[17:23:40] sync: "Chapter 1" (1) at frame 1 time 0
[17:23:40] sync: first pts audio 0x1 is 0
[17:23:40] sync: first pts audio 0x2 is 0
[17:23:48] sync: first pts subtitle 0x4 is 1159920
[17:23:51] sync: first pts subtitle 0x3 is 1674180
[17:30:19] sync: "Chapter 2" (2) at frame 10749 time 40345305
[17:37:13] sync: "Chapter 3" (3) at frame 21358 time 80168838
[17:44:39] sync: "Chapter 4" (4) at frame 32261 time 121095975
[17:44:55] reader: done. 1 scr changes
[17:45:00] work: average encoding speed for job is 26.300640 fps
[17:45:00] vfr: 33587 frames output, 0 dropped and 0 duped for CFR/PFR
[17:45:00] vfr: lost time: 0 (0 frames)
[17:45:00] vfr: gained time: 0 (0 frames) (0 not accounted for)
[17:45:00] ac3-decoder done: 43811 frames, 0 decoder errors
[17:45:00] ac3-decoder done: 43811 frames, 0 decoder errors
[17:45:00] vc1-decoder done: 33588 frames, 0 decoder errors
[17:45:00] sync: got 33587 frames, 33612 expected
[17:45:00] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x264 [info]: frame I:492   Avg QP: 2.90  size:450491
x264 [info]: frame P:10213 Avg QP: 5.42  size:231576
x264 [info]: frame B:22882 Avg QP: 7.74  size: 71703
x264 [info]: consecutive B-frames:  6.4%  4.7% 10.7% 78.2%
x264 [info]: mb I  I16..4: 29.8% 35.0% 35.2%
x264 [info]: mb P  I16..4:  5.1% 20.6%  5.6%  P16..4: 23.0% 13.6% 12.7%  0.0%  0.0%    skip:19.4%
x264 [info]: mb B  I16..4:  0.8%  4.5%  0.8%  B16..8: 37.7% 13.2%  5.2%  direct: 7.4%  skip:30.5%  L0:45.1% L1:38.7% BI:16.2%
x264 [info]: 8x8 transform intra:65.0% inter:24.8%
x264 [info]: direct mvs  spatial:99.9% temporal:0.1%
x264 [info]: coded y,uvDC,uvAC intra: 84.6% 70.4% 66.2% inter: 33.7% 28.5% 23.8%
x264 [info]: i16 v,h,dc,p: 37% 18% 23% 22%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 25% 36%  3%  3%  3%  4%  4%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 23% 15%  7%  8%  8%  8%  7%  8%
x264 [info]: i8c dc,h,v,p: 60% 20% 12%  7%
x264 [info]: Weighted P-Frames: Y:2.3% UV:1.9%
x264 [info]: ref P L0: 72.9%  5.9% 14.4%  6.2%  0.6%  0.0%
x264 [info]: ref B L0: 84.2% 14.0%  1.8%
x264 [info]: ref B L1: 94.2%  5.8%
x264 [info]: kb/s:24142.02
[17:45:00] mux: track 0, 33587 frames, 4227422254 bytes, 24122.51 kbps, fifo 512
[17:45:00] mux: track 1, 43811 frames, 112156160 bytes, 639.99 kbps, fifo 1024
[17:45:00] mux: track 2, 43811 frames, 112156160 bytes, 639.99 kbps, fifo 1024
[17:45:00] mux: track 3, 616 frames, 8004997 bytes, 45.68 kbps, fifo 16
[17:45:00] mux: track 4, 574 frames, 7626468 bytes, 43.52 kbps, fifo 16
[17:45:00] libhb: work result = 0

# Encode Completed ...
Last edited by Rodeo on Thu Apr 25, 2019 6:36 am, edited 1 time in total.
Reason: Logs in between [code][/code] blocks please

User avatar
JohnAStebbins
HandBrake Team
Posts: 5387
Joined: Sat Feb 09, 2008 7:21 pm

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by JohnAStebbins » Sat Mar 16, 2019 1:51 pm

You should be using an RF of at least 16 or higher.

nicolaidenmark
Posts: 7
Joined: Sat Mar 16, 2019 11:11 am

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by nicolaidenmark » Sat Mar 16, 2019 2:07 pm

What would "Inperceptazble quality loss be"? 25?

And setting the encoding options (Not the RF value) to max is right?

I should mention the rips will be upsdcaled from 1080P to 4K on my 4K TV.

nicolaidenmark
Posts: 7
Joined: Sat Mar 16, 2019 11:11 am

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by nicolaidenmark » Sat Mar 16, 2019 2:17 pm

JohnAStebbins wrote:
Sat Mar 16, 2019 1:51 pm
You should be using an RF of at least 16 or higher.
You mean lower? Lower numbers = better quality for the H264 codec....

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

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by rollin_eng » Sat Mar 16, 2019 2:38 pm

The lower you go the better the quality BUT the bigger the file will be.

nicolaidenmark
Posts: 7
Joined: Sat Mar 16, 2019 11:11 am

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by nicolaidenmark » Sat Mar 16, 2019 2:44 pm

So your recommended highest quality is 16 and no lower numbers/ higher quality?

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

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by rollin_eng » Sat Mar 16, 2019 2:51 pm

Pretty much, also don’t use placebo just use very slow.

nicolaidenmark
Posts: 7
Joined: Sat Mar 16, 2019 11:11 am

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by nicolaidenmark » Sat Mar 16, 2019 3:01 pm

OK Thanks,

I thought this new computer was fast but 16 hours for placebo encoding and video quality for an animation movive of 1:40h. Damn!
Encoding is... slow...

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

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by rollin_eng » Sat Mar 16, 2019 3:08 pm

That’s one of the reasons for not using placebo.


mduell
Veteran User
Posts: 6526
Joined: Sat Apr 21, 2007 8:54 pm

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by mduell » Sun Mar 17, 2019 10:44 am

Placebo isn't really worthwhile, thus the name.

For HD content, RF 16 to 26 are reasonable bounds.

Upscaling to 4K is pointless.

nicolaidenmark
Posts: 7
Joined: Sat Mar 16, 2019 11:11 am

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by nicolaidenmark » Sun Mar 17, 2019 11:43 am

I'm not talking about letting Handbrake upscale to 4K. I just wanted to point out that, as I have a 4K TV, every source is automatically upscaled to 4K by the TV itself.

I see my convert of slow encode and 16 turned out a 7 GB file. Trying as better setting now. Trying to match the size of the converted file with the size of the original MKV (19.xx GB).

mduell
Veteran User
Posts: 6526
Joined: Sat Apr 21, 2007 8:54 pm

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by mduell » Sun Mar 17, 2019 11:46 am

Matching the size of the original is literally pointless if you're using different encoding settings and have different constraints.

Media_Allen
Posts: 5
Joined: Fri Oct 05, 2018 3:11 pm

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by Media_Allen » Wed Apr 24, 2019 8:29 pm

I have the hardware acceleration working nicely with my Nvidia 1060 adapter, in H.265.

The first few attempts produced output that was ridiculously large. But then I tried checking "Avg Bitrate", and I don't enter one. Nice file size reduction!

Another good trick I figured out is that you see what the source framerate is (below the blue-shaded bar) and set the Framerate dropdown to as close as you can find to it. I also check "Constant Framerate". I think changing the framerate causes flicker in the resulting output. Of course, if prior conversion(s) already introduced that flicker, there's not much you can do about it.

mduell
Veteran User
Posts: 6526
Joined: Sat Apr 21, 2007 8:54 pm

Re: Converted H264 file 3 times bigger than MakeMKV Lossless MKV source?

Post by mduell » Wed Apr 24, 2019 9:46 pm

Unfortunately most everything you wrote is wrong or misleading. :(

Post Reply