Handbrake is making my video files much larger not smaller

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
rkstudio
New User
Posts: 1
Joined: Sat Oct 31, 2020 5:48 am

Handbrake is making my video files much larger not smaller

Post by rkstudio »

Description of problem or question:
I am trying to reduce the file size with videos shot from my phone. I am using the resolution of 1280 x 720, .mp4. After following advise from some videos I saw on Youtube, the videos I worked on got WAY larger when I tried to reduce them in Handbrake. I followed instructions to a tee but it has an opposite effect from what I'm trying to do.



Steps to reproduce the problem (If Applicable):

I don't know of any steps to reduce the problem.


HandBrake version (e.g., 1.0.0):
1.3.3



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

Windows 10


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

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.18362.0
CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Ram: 16299 MB, 
GPU Information:
  Radeon(TM) 540 Graphics - 23.20.15036.0
  Intel(R) UHD Graphics 620 - 26.20.100.7324
Screen: 1920x1080
Temp Dir: C:\Users\Bob Kimball\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Bob Kimball\AppData\Roaming\HandBrake

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


# Starting Encode ...

[10:33:46] base preset: Fast 1080p30 (Modified)
[22:33:46] hb_init: starting libhb thread
[22:33:46] Starting work at: Fri Oct 30 22:33:46 2020
[22:33:46] 1 job(s) to process
[22:33:46] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\Users\\Bob Kimball\\Videos\\Test Video 10-30-20-1.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "Mux": "av_mp4"
  },
  "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": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "720"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1",
          "rate": "27000000/1125000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 27,
    "Den": 32
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\Bob Kimball\\Desktop\\Test Videos\\Test Video 10-30-20.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 20.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[22:33:46] CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
[22:33:46]  - Intel microarchitecture Kaby Lake
[22:33:46]  - logical processor count: 8
[22:33:46] Intel Quick Sync Video support: yes
[22:33:46]  - Intel Media SDK hardware: API 1.30 (minimum: 1.3)
[22:33:46]  - H.264 encoder: yes
[22:33:46]     - preferred implementation: hardware (any) via D3D11
[22:33:46]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[22:33:46]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[22:33:46]     - preferred implementation: hardware (any) via D3D11
[22:33:46]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[22:33:46] hb_scan: path=C:\Users\Bob Kimball\Desktop\Test Videos\Test Video 10-30-20.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\Bob Kimball\Desktop\Test Videos\Test Video 10-30-20.mp4
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(C:\Users\Bob Kimball\Desktop\Test Videos\Test Video 10-30-20.mp4\) failed
[22:33:46] 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
[22:33:46] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Bob Kimball\Desktop\Test Videos\Test Video 10-30-20.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: mp41mp42
    creation_time   : 2020-10-31T05:16:20.000000Z
  Duration: 00:01:00.50, start: 0.000000, bitrate: 3007 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 720x1280 [SAR 1:1 DAR 9:16], 2749 kb/s, 30.09 fps, 30.09 tbr, 30k tbn, 60.15 tbc (default)
    Metadata:
      creation_time   : 2020-10-31T05:16:20.000000Z
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
    Metadata:
      creation_time   : 2020-10-31T05:16:20.000000Z
[22:33:46] scan: decoding previews for title 1
[22:33:46] scan: audio 0x1: aac, rate=48000Hz, bitrate=256024 English (AAC LC) (2.0 ch) (256 kbps)
[22:33:46] scan: 10 previews, 720x1280, 30.090 fps, autocrop = 0/0/0/0, aspect 1:1.78, PAR 1:1
[22:33:46] scan: supported video decoders: avcodec qsv
[22:33:46] libhb: scan thread found 1 valid title(s)
[22:33:46] Skipping subtitle scan.  No suitable subtitle tracks.
[22:33:46] Starting Task: Encoding Pass
[22:33:46] work: only 1 chapter, disabling chapter markers
[22:33:46] job configuration:
[22:33:46]  * source
[22:33:46]    + C:\Users\Bob Kimball\Desktop\Test Videos\Test Video 10-30-20.mp4
[22:33:46]    + title 1, chapter(s) 1 to 1
[22:33:46]    + container: mov,mp4,m4a,3gp,3g2,mj2
[22:33:46]    + data rate: 3007 kbps
[22:33:46]  * destination
[22:33:46]    + C:\Users\Bob Kimball\Videos\Test Video 10-30-20-1.m4v
[22:33:46]    + container: MPEG-4 (libavformat)
[22:33:46]      + optimized for HTTP streaming (fast start)
[22:33:46]      + align initial A/V stream timestamps
[22:33:46]  * video track
[22:33:46]    + decoder: h264
[22:33:46]      + bitrate 2749 kbps
[22:33:46]    + filters
[22:33:46]      + 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)
[22:33:46]      + Decomb (mode=39)
[22:33:46]      + Framerate Shaper (mode=1:rate=27000000/1125000)
[22:33:46]        + frame rate: 30.090 fps -> constant 24.000 fps
[22:33:46]      + Crop and Scale (width=720:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[22:33:46]        + source: 720 * 1280, crop (0/0/0/0): 720 * 1280, scale: 720 * 1080
[22:33:46]    + Output geometry
[22:33:46]      + storage dimensions: 720 x 1080
[22:33:46]      + pixel aspect ratio: 27 : 32
[22:33:46]      + display dimensions: 607 x 1080
[22:33:46]    + encoder: H.264 (libx264)
[22:33:46]      + preset:  fast
[22:33:46]      + profile: main
[22:33:46]      + level:   4.0
[22:33:46]      + quality: 20.00 (RF)
[22:33:46]      + color profile: 1-1-1
[22:33:46]  * audio track 1
[22:33:46]    + decoder: English (AAC LC) (2.0 ch) (256 kbps) (track 1, id 0x1)
[22:33:46]      + bitrate: 256 kbps, samplerate: 48000 Hz
[22:33:46]    + mixdown: Stereo
[22:33:46]    + dither: none
[22:33:46]    + encoder: AAC (libavcodec)
[22:33:46]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:33:46] sync: expecting 1820 video frames
[22:33:46] encx264: min-keyint: 24, keyint: 240
[22:33:46] encx264: encoding at constant RF 20.000000
[22:33:46] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=27/32
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[22:33:46] sync: first pts video is 0
[22:33:46] sync: "Chapter 1" (1) at frame 1 time 0
[22:33:46] sync: first pts audio 0x1 is 0
[22:34:14] reader: done. 1 scr changes
[22:34:16] work: average encoding speed for job is 63.587612 fps
[22:34:16] comb detect: heavy 0 | light 12 | uncombed 1806 | total 1818
[22:34:16] decomb: deinterlaced 0 | blended 12 | unfiltered 1806 | total 1818
[22:34:16] vfr: 1451 frames output, 367 dropped and 0 duped for CFR/PFR
[22:34:16] vfr: lost time: 0 (0 frames)
[22:34:16] vfr: gained time: 0 (0 frames) (0 not accounted for)
[22:34:16] aac-decoder done: 2836 frames, 0 decoder errors
[22:34:16] h264-decoder done: 1818 frames, 0 decoder errors
[22:34:16] sync: got 1818 frames, 1820 expected
[22:34:16] sync: framerate min 30.090 fps, max 30.090 fps, avg 30.090 fps
x264 [info]: frame I:7     Avg QP:17.22  size:108724
x264 [info]: frame P:406   Avg QP:20.13  size: 37158
x264 [info]: frame B:1038  Avg QP:23.62  size:  6561
x264 [info]: consecutive B-frames:  0.9%  7.4% 11.2% 80.5%
x264 [info]: mb I  I16..4: 11.2%  0.0% 88.8%
x264 [info]: mb P  I16..4:  4.7%  0.0%  9.4%  P16..4: 39.2% 28.4% 13.7%  0.0%  0.0%    skip: 4.5%
x264 [info]: mb B  I16..4:  2.0%  0.0%  0.4%  B16..8: 38.3% 15.9%  0.5%  direct:12.1%  skip:30.8%  L0:36.7% L1:52.1% BI:11.2%
x264 [info]: coded y,uvDC,uvAC intra: 49.8% 62.7% 21.5% inter: 20.5% 26.7% 0.5%
x264 [info]: i16 v,h,dc,p: 37% 22% 19% 22%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 16% 18% 13%  6%  5%  5%  5%  8%
x264 [info]: i8c dc,h,v,p: 52% 17% 25%  6%
x264 [info]: Weighted P-Frames: Y:12.6% UV:2.2%
x264 [info]: ref P L0: 73.3% 26.7%
x264 [info]: ref B L0: 90.2%  9.8%
x264 [info]: ref B L1: 96.0%  4.0%
x264 [info]: kb/s:2998.07
[22:34:16] mux: track 0, 1451 frames, 22656965 bytes, 2993.90 kbps, fifo 1024
[22:34:16] mux: track 1, 2837 frames, 1216029 bytes, 160.69 kbps, fifo 2048
[22:34:16] Finished work at: Fri Oct 30 22:34:16 2020
[22:34:16] libhb: work result = 0

# Encode Completed ...


Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Handbrake is making my video files much larger not smaller

Post by Woodstock »

First suggestion - forget what you saw on YouTube. If you aren't trying to convert game footage to post at highest resolution on YT, the people who post such videos aren't working on your issue.

Video "growing" is often because you're trying to record more detail than the source had. Your source is already pretty heavily compressed, so a CRF setting of 20 is ambitious. It will likely "faithfully reproduce" the existing compression artifacts, which means a larger file.

Did you try any of the supplied presets before wandering off to YouTube?
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake is making my video files much larger not smaller

Post by rollin_eng »

Also try a slower encoder preset, that might help reduce size too.
Post Reply