File larger after compression

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
compressbeemovie
Posts: 1
Joined: Sat Sep 01, 2018 1:39 am

File larger after compression

Post by compressbeemovie »

Description of problem or question:

I am attempting to compress Bee Movie to a ridiculously small size for a long running joke with some friends. I'm starting with the 45MB size that was created for discord, but when I select every possible setting to make the size smaller it still ends up with a bigger file somehow, even with worse audio and visual quality and with an extremely lower framerate. What am I doing wrong?

HandBrake version (e.g., 1.0.0):

1.1.1

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

Ubuntu 16.04 LTS


HandBrake Activity Log ***required***

Code: Select all

[18:42:05] gtkgui: HandBrake 1.1.0 (2018041000) - Linux x86_64 - https://handbrake.fr
[18:42:05] hb_init: starting libhb thread
[18:42:05] hb_init: starting libhb thread
[18:42:05] hb_init: starting libhb thread
[18:42:12] CPU: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
[18:42:12]  - Intel microarchitecture Haswell
[18:42:12]  - logical processor count: 4
[18:42:12] hb_scan: path=/home/fakeName/Videos/beemovie.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/fakeName/Videos/beemovie.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[18:42:12] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[18:42:12] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/fakeName/Videos/beemovie.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2018-04-21 09:06:55
    encoder         : HandBrake 1.0.7 2017040900
  Duration: 01:30:41.10, start: 0.021333, bitrate: 71 kb/s
    Stream #0:0(und): Video: h264 (High) [avc1 / 0x31637661]
      yuv420p, tv, bt709/bt709/bt709
      232x130 [PAR 260:261 DAR 16:9], 32 kb/s, PAR 260:261 DAR 16:9
      23.98 fps, 90k tbn (default)
    Metadata:
      creation_time   : 2018-04-21 09:06:55
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) [mp4a / 0x6134706D]
      48000 Hz, mono, fltp, 32 kb/s (default)
    Metadata:
      creation_time   : 2018-04-21 09:06:55
      handler_name    : Mono
[18:42:12] scan: decoding previews for title 1
[18:42:12] scan: audio 0x1: aac, rate=48000Hz, bitrate=32198 Unknown (AAC) (1.0 ch)
[18:42:12] scan: 10 previews, 232x130, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 260:261
[18:42:12] libhb: scan thread found 1 valid title(s)
[18:42:36] gtkgui: Modified Preset: /General/Fast 1080p30
[18:42:36] 1 job(s) to process
[18:42:36] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "mono",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/home/fakeName/Videos/beemovie.m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "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": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 130,
                    "width": 232
                }
            }
        ]
    },
    "Metadata": {
        "Name": "beemovie"
    },
    "PAR": {
        "Den": 261,
        "Num": 260
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/fakeName/Videos/beemovie.mp4",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "4.0",
        "Options": "",
        "Preset": "fast",
        "Profile": "main",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 51.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[18:42:36] CPU: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
[18:42:36]  - Intel microarchitecture Haswell
[18:42:36]  - logical processor count: 4
[18:42:36] hb_scan: path=/home/fakeName/Videos/beemovie.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/fakeName/Videos/beemovie.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[18:42:36] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[18:42:36] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/fakeName/Videos/beemovie.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2018-04-21 09:06:55
    encoder         : HandBrake 1.0.7 2017040900
  Duration: 01:30:41.10, start: 0.021333, bitrate: 71 kb/s
    Stream #0:0(und): Video: h264 (High) [avc1 / 0x31637661]
      yuv420p, tv, bt709/bt709/bt709
      232x130 [PAR 260:261 DAR 16:9], 32 kb/s, PAR 260:261 DAR 16:9
      23.98 fps, 90k tbn (default)
    Metadata:
      creation_time   : 2018-04-21 09:06:55
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) [mp4a / 0x6134706D]
      48000 Hz, mono, fltp, 32 kb/s (default)
    Metadata:
      creation_time   : 2018-04-21 09:06:55
      handler_name    : Mono
[18:42:36] scan: decoding previews for title 1
[18:42:37] scan: audio 0x1: aac, rate=48000Hz, bitrate=32198 Unknown (AAC) (1.0 ch)
[18:42:37] scan: 10 previews, 232x130, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 260:261
[18:42:37] libhb: scan thread found 1 valid title(s)
[18:42:37] starting job
[18:42:37] decomb filter thread started for segment 0
[18:42:37] decomb filter thread started for segment 3
[18:42:37] decomb check thread started for segment 0
[18:42:37] decomb check thread started for segment 1
[18:42:37] decomb filter thread started for segment 2
[18:42:37] mask filter thread started for segment 0
[18:42:37] mask filter thread started for segment 2
[18:42:37] mask erode thread started for segment 0
[18:42:37] mask erode thread started for segment 2
[18:42:37] mask dilate thread started for segment 1
[18:42:37] mask dilate thread started for segment 3
[18:42:37] mask filter thread started for segment 3
[18:42:37] decomb check thread started for segment 3
[18:42:37] mask erode thread started for segment 1
[18:42:37] decomb filter thread started for segment 1
[18:42:37] mask erode thread started for segment 3
[18:42:37] mask filter thread started for segment 1
[18:42:37] mask dilate thread started for segment 0
[18:42:37] decomb check thread started for segment 2
[18:42:37] mask dilate thread started for segment 2
[18:42:37] yadif thread started for segment 0
[18:42:37] yadif thread started for segment 1
[18:42:37] job configuration:
[18:42:37] yadif thread started for segment 2
[18:42:37] yadif thread started for segment 3
[18:42:37]  * source
[18:42:37]    + /home/fakeName/Videos/beemovie.mp4
[18:42:37]    + title 1, chapter(s) 1 to 1
[18:42:37]    + container: mov,mp4,m4a,3gp,3g2,mj2
[18:42:37]    + data rate: 71 kbps
[18:42:37]  * destination
[18:42:37]    + /home/fakeName/Videos/beemovie.m4v
[18:42:37]    + container: MPEG-4 (libavformat)
[18:42:37]      + align initial A/V stream timestamps
[18:42:37]  * video track
[18:42:37]    + decoder: h264
[18:42:37]      + bitrate 32 kbps
[18:42:37]    + filters
[18:42:37]      + 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)
[18:42:37]      + Decomb (mode=39)
[18:42:37]      + Framerate Shaper (mode=2:rate=27000000/900000)
[18:42:37]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[18:42:37]      + Crop and Scale (width=232:height=130:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[18:42:37]        + source: 232 * 130, crop (0/0/0/0): 232 * 130, scale: 232 * 130
[18:42:37]    + Output geometry
[18:42:37]      + storage dimensions: 232 x 130
[18:42:37]      + pixel aspect ratio: 260 : 261
[18:42:37]      + display dimensions: 231 x 130
[18:42:37]    + encoder: H.264 (libx264)
[18:42:37]      + preset:  fast
[18:42:37]      + profile: main
[18:42:37]      + level:   4.0
[18:42:37]      + quality: 51.00 (RF)
[18:42:37]  * audio track 1
[18:42:37]    + decoder: Unknown (AAC) (1.0 ch) (track 1, id 0x1)
[18:42:37]      + bitrate: 32 kbps, samplerate: 48000 Hz
[18:42:37]    + mixdown: Mono
[18:42:37]    + encoder: AAC (libavcodec)
[18:42:37]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:42:37] sync: expecting 130456 video frames
[18:42:37] encx264: min-keyint: 24, keyint: 240
[18:42:37] encx264: encoding at constant RF 51.000000
[18:42:37] encx264: unparsed options: level=4.0:vbv-maxrate=20000:8x8dct=0:ref=2:weightp=1:subme=6:rc-lookahead=30:vbv-bufsize=25000
x264 [info]: using SAR=260/261
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.0
[18:42:37] sync: first pts video is 0
[18:42:37] sync: Chapter 1 at frame 1 time 0
[18:42:37] sync: first pts audio 0x1 is 0
[18:44:54] reader: done. 1 scr changes
[18:44:54] work: average encoding speed for job is 948.273193 fps
[18:44:54] comb detect: heavy 160 | light 594 | uncombed 129699 | total 130453
[18:44:54] decomb: deinterlaced 160 | blended 594 | unfiltered 129699 | total 130453
[18:44:54] vfr: 130453 frames output, 0 dropped and 0 duped for CFR/PFR
[18:44:54] vfr: lost time: 0 (0 frames)
[18:44:54] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:44:55] aac-decoder done: 255052 frames, 0 decoder errors
[18:44:55] h264-decoder done: 130453 frames, 0 decoder errors
[18:44:55] sync: got 130453 frames, 130456 expected
[18:44:55] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x264 [info]: frame I:1602  Avg QP:47.67  size:   378
x264 [info]: frame P:59089 Avg QP:50.45  size:    58
x264 [info]: frame B:69762 Avg QP:50.87  size:    17
x264 [info]: consecutive B-frames: 11.9% 45.8% 13.5% 28.8%
x264 [info]: mb I  I16..4: 93.7%  0.0%  6.3%
x264 [info]: mb P  I16..4:  4.0%  0.0%  0.0%  P16..4: 14.8%  0.8%  0.4%  0.0%  0.0%    skip:79.9%
x264 [info]: mb B  I16..4:  0.1%  0.0%  0.0%  B16..8:  2.0%  0.0%  0.0%  direct: 0.4%  skip:97.4%  L0:34.2% L1:65.4% BI: 0.4%
x264 [info]: coded y,uvDC,uvAC intra: 3.9% 41.1% 3.4% inter: 0.1% 1.7% 0.0%
x264 [info]: i16 v,h,dc,p: 45% 30% 19%  6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 12% 59%  3%  3%  3%  3%  2%  1%
x264 [info]: i8c dc,h,v,p: 91%  5%  4%  0%
x264 [info]: Weighted P-Frames: Y:2.2% UV:0.9%
x264 [info]: ref P L0: 69.7% 30.3%
x264 [info]: ref B L0: 71.1% 28.9%
x264 [info]: ref B L1: 96.1%  3.9%
x264 [info]: kb/s:7.71
[18:44:55] mux: track 0, 130453 frames, 5174744 bytes, 7.61 kbps, fifo 32768
[18:44:55] mux: track 1, 255052 frames, 79321893 bytes, 116.63 kbps, fifo 65536
[18:44:55] libhb: work result = 0

User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: File larger after compression

Post by s55 »

You encoded your audio at 160kbit and the source is 32.

Your already at an extreme level of compression so your not going to get much more out of this.
Kalle256
Posts: 2
Joined: Mon Feb 01, 2021 7:43 pm

Re: File larger after compression

Post by Kalle256 »

I once compressed shrek 1 to under 8MB. Doing this with mp4 is pretty much impossible, especially because the AAC audio only goes down to 32kbps(there is a way to get even lower than this, but not through using handbrake). If you use webm, you can set the audio to 6kbps opus. I just put the video codec at VP9, avg bitrate to 1, framerate to 5 and the resolution to 142*80. The result was a 7.91MB video where you can barely tell what you're looking at most of the time, but it's possible.
Post Reply