20GB MP4 Help in downsizing

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
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

20GB MP4 Help in downsizing

Post by VincentVBR »

Description of problem or question:
I have lots of 20GB MP4 files that need to be downgraded to a smaller size with no quality loss, I am looking for a setting in Handbrake that could convert these files to a smaller size.



Steps to reproduce the problem (If Applicable):
I have tried all the recommendations on YouTube and Google search and I have been unsuccessful in achieving a smaller file size.
My MP4 Settings are: Length: 02:45:05 Frame Size 1920x1080 Data Rate: 15998 Kbbps Total rate: 16159 Kbps Frame Rate: 30.00 FPS Audio Bit rate: 160 Kbps, Channels (2) Stereo, Audio Sample: 48.000 Khz




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



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

Windows 10 Pro: Intel(R) Core(TM) i5-3330S CPU @ 2.70GHz 2.70 GHz
x64 Bit 8.00 GB RAM



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

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19042.0
CPU: Intel(R) Core(TM) i5-3330S CPU @ 2.70GHz
Ram: 8130 MB,
GPU Information:
NVIDIA GeForce GT 640M - 25.21.14.2531
Screen: 1920x1080
Temp Dir: C:\Users\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\AppData\Roaming\HandBrake

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

[16:16:38] Compile-time hardening features are enabled
[16:16:39] Nvenc version 9.0
[16:16:45] hb_init: starting libhb thread

# Starting Scan ...

[16:16:45] CPU: Intel(R) Core(TM) i5-3330S CPU @ 2.70GHz
[16:16:45] - Intel microarchitecture Ivy Bridge
[16:16:45] - logical processor count: 4
[16:16:45] Intel Quick Sync Video support: no
[16:16:45] hb_scan: path=C:\Users\Video.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\Video.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\Video.mp4\) failed
[16:16:45] 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
[16:16:45] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.29.100
Duration: 02:39:15.03, start: 0.000000, bitrate: 16152 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 15982 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
Metadata:
handler_name : SoundHandler
title : Track1
[16:16:45] scan: decoding previews for title 1
[16:16:45] scan: audio 0x1: aac, rate=48000Hz, bitrate=160542 Unknown (AAC LC) (2.0 ch) (160 kbps)
[16:16:46] scan: 10 previews, 1920x1080, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[16:16:46] scan: supported video decoders: avcodec qsv
[16:16:46] libhb: scan thread found 1 valid title(s)

# Processing Scan Information ...


# Scan Finished ...
rollin_eng
Veteran User
Posts: 3927
Joined: Wed May 04, 2011 11:06 pm

Re: 20GB MP4 Help in downsizing

Post by rollin_eng »

Try one of the HQ or Super HQ 1080 presets.
Deleted User 13735

Re: 20GB MP4 Help in downsizing

Post by Deleted User 13735 »

Your original file, having been made with a hardware encoder, concerns me that you may experience troublesome quality degradation with too much compression.
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

Re: 20GB MP4 Help in downsizing

Post by VincentVBR »

Hi, I tried that setting too and still the same file size, i tried all those video tutorials on YouTube how on earth they managed to get the file size down, i don't know some have said it works on some MP4's
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

Re: 20GB MP4 Help in downsizing

Post by VincentVBR »

I used OBS Studio using a YADIF Top Field filter could this be the issue also i recorder the footage using 16000 Kbps which gave me the best results however I am now down to 4 video files under 20GB each and I have 500 videos to capture.
rollin_eng
Veteran User
Posts: 3927
Joined: Wed May 04, 2011 11:06 pm

Re: 20GB MP4 Help in downsizing

Post by rollin_eng »

Could you please post your HB logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

Re: 20GB MP4 Help in downsizing

Post by VincentVBR »

Sure here is the Log:

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19042.0
CPU: Intel(R) Core(TM) i5-3330S CPU @ 2.70GHz
Ram: 8130 MB,
GPU Information:
NVIDIA GeForce GT 640M - 25.21.14.2531
Screen: 1920x1080
Temp Dir: C:\Users\Vincent\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Vincent\AppData\Roaming\HandBrake

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


# Starting Encode ...

[08:00:10] base preset: Fast 1080p30 (Modified)
[08:00:10] hb_init: starting libhb thread
[08:00:10] Starting work at: Wed Apr 21 08:00:10 2021
[08:00:10] 1 job(s) to process
[08:00:10] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"DRC": 0.0,
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Name": "Track1",
"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\\Vincent\\Downloads\\VHS\\QTRNS Test.mp4",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"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": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "2",
"rate": "27000000/900000"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "C:\\Users\\Vincent\\Downloads\\VHS\\QTRNS.mp4"
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": true,
"Forced": true
},
"SubtitleList": []
},
"Video": {
"Encoder": "x264",
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "fast",
"Profile": "auto",
"Quality": 20.0,
"QSV": {
"Decode": false,
"AsyncDepth": 0
}
}
}
[08:00:10] CPU: Intel(R) Core(TM) i5-3330S CPU @ 2.70GHz
[08:00:10] - Intel microarchitecture Ivy Bridge
[08:00:10] - logical processor count: 4
[08:00:10] Intel Quick Sync Video support: no
[08:00:10] hb_scan: path=C:\Users\Vincent\Downloads\VHS\QTRNS.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\Vincemt\Downloads\VHS\QTRNS.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\Vincent\Downloads\VHS\QTRNS.mp4\) failed
[08:00:10] 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
[08:00:10] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Vincent\Downloads\VHS\QTRNS.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.29.100
Duration: 02:39:15.03, start: 0.000000, bitrate: 16152 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 15982 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
Metadata:
handler_name : SoundHandler
title : Track1
[08:00:10] scan: decoding previews for title 1
[08:00:10] scan: audio 0x1: aac, rate=48000Hz, bitrate=160542 Unknown (AAC LC) (2.0 ch) (160 kbps)
[08:00:11] scan: 10 previews, 1920x1080, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[08:00:11] scan: supported video decoders: avcodec qsv
[08:00:11] libhb: scan thread found 1 valid title(s)
[08:00:11] Skipping subtitle scan. No suitable subtitle tracks.
[08:00:11] Starting Task: Encoding Pass
[08:00:11] Skipping crop/scale filter
[08:00:11] work: only 1 chapter, disabling chapter markers
[08:00:11] job configuration:
[08:00:11] * source
[08:00:11] + C:\Users\Vincent\Downloads\VHS\QTRNS.mp4
[08:00:11] + title 1, chapter(s) 1 to 1
[08:00:11] + container: mov,mp4,m4a,3gp,3g2,mj2
[08:00:11] + data rate: 16152 kbps
[08:00:11] * destination
[08:00:11] + C:\Users\Vincent\Downloads\VHS\QTRNS Test.mp4
[08:00:11] + container: MPEG-4 (libavformat)
[08:00:11] + align initial A/V stream timestamps
[08:00:11] * video track
[08:00:11] + decoder: h264
[08:00:11] + bitrate 15982 kbps
[08:00:11] + filters
[08:00:11] + 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)
[08:00:11] + Decomb (mode=39)
[08:00:11] + Framerate Shaper (mode=2:rate=27000000/900000)
[08:00:11] + frame rate: 30.000 fps -> peak rate limited to 30.000 fps
[08:00:11] + Output geometry
[08:00:11] + storage dimensions: 1920 x 1080
[08:00:11] + pixel aspect ratio: 1 : 1
[08:00:11] + display dimensions: 1920 x 1080
[08:00:11] + encoder: H.264 (libx264)
[08:00:11] + preset: fast
[08:00:11] + profile: auto
[08:00:11] + level: auto
[08:00:11] + quality: 20.00 (RF)
[08:00:11] + color profile: 1-1-1
[08:00:11] * audio track 1
[08:00:11] + name: Track1
[08:00:11] + decoder: Unknown (AAC LC) (2.0 ch) (160 kbps) (track 1, id 0x1)
[08:00:11] + bitrate: 160 kbps, samplerate: 48000 Hz
[08:00:11] + mixdown: Stereo
[08:00:11] + dither: none
[08:00:11] + encoder: AAC (libavcodec)
[08:00:11] + bitrate: 160 kbps, samplerate: 48000 Hz
[08:00:11] sync: expecting 286651 video frames
[08:00:11] encx264: min-keyint: 30, keyint: 300
[08:00:11] encx264: encoding at constant RF 20.000000
[08:00:11] encx264: unparsed options: ref=2:weightp=1:subme=6:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.0, 4:2:0, 8-bit
[08:00:12] sync: first pts video is 0
[08:00:12] sync: "Chapter 1" (1) at frame 1 time 0
[08:00:12] sync: first pts audio 0x1 is 0

# Encode Stopped

[08:04:15] work: average encoding speed for job is 15.105840 fps
[08:04:15] comb detect: heavy 3 | light 30 | uncombed 3629 | total 3662
[08:04:15] decomb: deinterlaced 3 | blended 30 | unfiltered 3620 | total 3653
[08:04:15] vfr: 3645 frames output, 0 dropped and 0 duped for CFR/PFR
[08:04:15] vfr: lost time: 0 (0 frames)
[08:04:15] vfr: gained time: 0 (0 frames) (0 not accounted for)
[08:04:15] aac-decoder done: 5854 frames, 0 decoder errors
[08:04:15] h264-decoder done: 3728 frames, 0 decoder errors
[08:04:15] sync: got 3691 frames, 286651 expected
[08:04:15] sync: framerate min 30.000 fps, max 30.000 fps, avg 30.000 fps
x264 [info]: frame I:39 Avg QP:14.85 size: 86788
x264 [info]: frame P:966 Avg QP:20.69 size: 79114
x264 [info]: frame B:2596 Avg QP:22.43 size: 49219
x264 [info]: consecutive B-frames: 3.2% 1.6% 1.5% 93.8%
x264 [info]: mb I I16..4: 36.2% 55.3% 8.6%
x264 [info]: mb P I16..4: 9.7% 31.6% 2.5% P16..4: 16.7% 13.1% 4.7% 0.0% 0.0% skip:21.7%
x264 [info]: mb B I16..4: 5.4% 17.4% 1.0% B16..8: 23.4% 14.6% 1.5% direct:10.8% skip:25.9% L0:45.8% L1:42.4% BI:11.8%
x264 [info]: 8x8 transform intra:72.0% inter:46.5%
x264 [info]: coded y,uvDC,uvAC intra: 52.7% 90.0% 60.9% inter: 23.0% 52.5% 25.1%
x264 [info]: i16 v,h,dc,p: 31% 33% 25% 11%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 33% 24% 3% 3% 3% 4% 3% 5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 23% 13% 6% 7% 7% 7% 6% 5%
x264 [info]: i8c dc,h,v,p: 34% 39% 16% 10%
x264 [info]: Weighted P-Frames: Y:11.4% UV:7.6%
x264 [info]: ref P L0: 61.5% 38.5%
x264 [info]: ref B L0: 81.0% 19.0%
x264 [info]: ref B L1: 91.6% 8.4%
x264 [info]: kb/s:13834.83
[08:04:15] mux: track 0, 3600 frames, 207430994 bytes, 13491.45 kbps, fifo 1024
[08:04:15] mux: track 1, 5765 frames, 2471566 bytes, 160.75 kbps, fifo 2048
[08:04:16] Finished work at: Wed Apr 21 08:04:16 2021
[08:04:16] libhb: work result = 1

# Encode Completed ...
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

Re: 20GB MP4 Help in downsizing

Post by VincentVBR »

My capture settings using OBS Studio are:

OBS (Run as Administrator)
Recording Type: Standard
Recording Format: MP4
Audio Track: 1
Encoder: NVIDIA NVENC H.264
Rate Control: CBR
Bitrate: 16000 Kbps (note i tried 6000, 3500 and these were very poor results - 16000 gives the best sharp image and quality)
Preset: Quality
Profile: High
[yes] Look Ahead
[yes] Pyscho Visual Tuning
GPU: 0
Max B Frames : 2

Video Tab set to : lanczos 16 frame rate set as 30
1920x1080 Base and Output
rollin_eng
Veteran User
Posts: 3927
Joined: Wed May 04, 2011 11:06 pm

Re: 20GB MP4 Help in downsizing

Post by rollin_eng »

Try dropping the encoder preset to as slow as you can tolerate, then increase your RF until you are unhappy with the quality.
Deleted User 13735

Re: 20GB MP4 Help in downsizing

Post by Deleted User 13735 »

Try the x264 software encoder in OBS. It will give you smaller, better quality files to begin with than hardware encoding. Start with
Recording->Advanced->Standard->set RF to 20 and leave the rest alone for the most efficient capture.
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

Re: 20GB MP4 Help in downsizing

Post by VincentVBR »

Hey guys thank you i will give a try now i am re-recording the video without Yadif Deinterlace then i will run it through OBS with the settings of RF20 i will let you know the outcome
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

Re: 20GB MP4 Help in downsizing

Post by VincentVBR »

Hi Guys still no luck I am stuck with a 17GB file I simply can not work out why Handbrake won't resize or compress a 1080x120 Mp4 to 1GB
rollin_eng
Veteran User
Posts: 3927
Joined: Wed May 04, 2011 11:06 pm

Re: 20GB MP4 Help in downsizing

Post by rollin_eng »

rollin_eng wrote: Wed Apr 21, 2021 6:23 pm Try dropping the encoder preset to as slow as you can tolerate, then increase your RF until you are unhappy with the quality.
Deleted User 13735

Re: 20GB MP4 Help in downsizing

Post by Deleted User 13735 »

What he said twice is set your RF slider at 25, not 20 !
You may have to bite the bullet on quality this time.
Next time use a Software Encoder in OBS, and good luck!
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

Re: 20GB MP4 Help in downsizing

Post by VincentVBR »

Cheers guys I'll give it another go this time at 25
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

Re: 20GB MP4 Help in downsizing

Post by VincentVBR »

Hi Guys, still no luck, I contacted a company i buy CGI software from they said the reason the file size is 20GB is that I am capturing 1080p at 30FPS for 3 Hours and that there is no way unless I want bad quality via compression, so I'm guessing I should continue capturing the 20GB files and wait for a software to come out or a new Handbrake platform to be released in the near future to handle this job. Thanks guys for the advice and helpful hints.
rollin_eng
Veteran User
Posts: 3927
Joined: Wed May 04, 2011 11:06 pm

Re: 20GB MP4 Help in downsizing

Post by rollin_eng »

rollin_eng wrote: Thu Apr 22, 2021 10:35 am
rollin_eng wrote: Wed Apr 21, 2021 6:23 pm Try dropping the encoder preset to as slow as you can tolerate, then increase your RF until you are unhappy with the quality.
Why not try this???
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

Re: 20GB MP4 Help in downsizing

Post by VincentVBR »

I tried that setting mate, the video quality was very jerky I tried RF 18-20-24 I even tried the encode profile as : film, what I did notice on a youtube tutorial was that someone has a 44GB MKV file which he claims that had shrunk to 2.5GB, So i tried a new capture of video using MKV format, tried to compress this in Handbrake as a MP4 RF18 Slow encode and still the same i'm afraid, I tried this on my mac i7 16Gb Mem and still no joy.
rollin_eng
Veteran User
Posts: 3927
Joined: Wed May 04, 2011 11:06 pm

Re: 20GB MP4 Help in downsizing

Post by rollin_eng »

Can you please post your logs?
VincentVBR
Posts: 11
Joined: Wed Apr 21, 2021 3:09 pm

Re: 20GB MP4 Help in downsizing

Post by VincentVBR »

However is it possible to make a private channel on youtube, upload the file, then download, do you reckon that may resize the 20Gb file
rollin_eng
Veteran User
Posts: 3927
Joined: Wed May 04, 2011 11:06 pm

Re: 20GB MP4 Help in downsizing

Post by rollin_eng »

VincentVBR wrote: Fri Apr 23, 2021 5:05 pm However is it possible to make a private channel on youtube, upload the file, then download, do you reckon that may resize the 20Gb file
YouTube will reencode your video when you upload it, this will probably mean quality loss.
Deleted User 13735

Re: 20GB MP4 Help in downsizing

Post by Deleted User 13735 »

...they said the reason the file size is 20GB is that I am capturing 1080p at 30FPS for 3 Hours and that there is no way unless I want bad quality via compression,
Yeah, we said that too...
I tried that setting mate, the video quality was very jerky I tried RF 18-20-24 I even tried the encode profile as : film, what I did notice on a youtube tutorial was that someone has a 44GB MKV file which he claims that had shrunk to 2.5GB, So i tried a new capture of video using MKV format, tried to compress this in Handbrake as a MP4 RF18 Slow encode and still the same i'm afraid, I tried this on my mac i7 16Gb Mem and still no joy.
Apples are not oranges. Oranges are not kumquats.
Your files are what they are, and "someone's" files are what they are...
Post Reply