We need a Preset for Discord servers please...

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.
Cor'e =)
Posts: 11
Joined: Sun Oct 06, 2019 8:07 pm

We need a Preset for Discord servers please...

Post by Cor'e =) »

Description of problem or question:

I'm not the first to ask, but I'm desperately asking for a preset for Discord.

Discord has only two possible video upload sizes: free <8MBs & Nitro <100MBs (not sure *which* MBs they are referring to ?).

It would be very very nice if someone awesomely genius made a preset for the free one, maybe also the Nitro one, all that's necessary is from any input file an output file size is less than 8MBs (or Nitro less than 100MBs) every time.

Please help me, and all who want this Preset, thanks in advance!

Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):

Latest 122


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


Win7

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

Code: Select all

Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: We need a Preset for Discord servers please...

Post by mduell »

Use the gmail presets and mentally adjust the time limits as appropriate proportionally.
Cor'e =)
Posts: 11
Joined: Sun Oct 06, 2019 8:07 pm

Re: We need a Preset for Discord servers please...

Post by Cor'e =) »

I used the GMail presets, it always gave me a file ~8.5MBs, no matter how far i increased the RF slider, it's like it ignored the RF slider, i even tried reducing FPS and Resolution, still ~8.5MBs, so no not an easy or simple approach is what you are suggesting, it would be better that who built the 8.5MB GMail Preset also give us a Preset that spits out a 8MB file, something .5MBs less than what they did for GMail, that would be awesome!!
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: We need a Preset for Discord servers please...

Post by rollin_eng »

Cor'e =) wrote: Wed Oct 09, 2019 12:07 am I used the GMail presets, it always gave me a file ~8.5MBs, no matter how far i increased the RF slider, it's like it ignored the RF slider, i even tried reducing FPS and Resolution, still ~8.5MBs, so no not an easy or simple approach is what you are suggesting, it would be better that who built the 8.5MB GMail Preset also give us a Preset that spits out a 8MB file, something .5MBs less than what they did for GMail, that would be awesome!!
Could you please post your logs?
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: We need a Preset for Discord servers please...

Post by BradleyS »

I'm working on some Discord presets.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: We need a Preset for Discord servers please...

Post by mduell »

Cor'e =) wrote: Wed Oct 09, 2019 12:07 am I used the GMail presets, it always gave me a file ~8.5MBs, no matter how far i increased the RF slider, it's like it ignored the RF slider, i even tried reducing FPS and Resolution, still ~8.5MBs, so no not an easy or simple approach is what you are suggesting, it would be better that who built the 8.5MB GMail Preset also give us a Preset that spits out a 8MB file, something .5MBs less than what they did for GMail, that would be awesome!!
The gmail presets don't use quality based encoding because they're targeting a specific size.

Follow the directions in bold underlined text on a pink background for support.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: We need a Preset for Discord servers please...

Post by BradleyS »

mduell wrote: Wed Oct 09, 2019 4:25 pm The gmail presets don't use quality based encoding because they're targeting a specific size.
This is partially true. They do use quality based encoding, but are limited by vbv-maxrate to ensure the size limit is not exceeded given a source of the required duration or less. Essentially they are quality-based variable bit rate encodes; however, scenes with excessive motion and complexity can induce a pseudo-constant bit rate. Some other advanced options help squeeze every bit of quality out of these relatively low bit rate encodes.

I don't believe we require activity logs for feature requests like this.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: We need a Preset for Discord servers please...

Post by mduell »

BradleyS wrote: Wed Oct 09, 2019 4:30 pmI don't believe we require activity logs for feature requests like this.
To answer why it's 8.5MB and not changing as he claims to change settings we certainly do!
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: We need a Preset for Discord servers please...

Post by BradleyS »

mduell wrote: Wed Oct 09, 2019 6:09 pm To answer why it's 8.5MB and not changing as he claims to change settings we certainly do!
Sure, though in this case it won't tell us much. It's the nature of how these presets are designed. He should be able to decrease the file size by increasing the RF substantially, but lowering the RF (raising quality) will basically induce a constant quality mode given the vbv settings.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: We need a Preset for Discord servers please...

Post by BradleyS »

I added three presets for Discord Nitro and one for Discord free in https://github.com/bradleysepos/HandBra ... fa7b9cfa5b.

Build from source or wait for the next nightly/snapshot build.
Deleted User 11865

Re: We need a Preset for Discord servers please...

Post by Deleted User 11865 »

BradleyS wrote: Wed Oct 09, 2019 6:22 pm
mduell wrote: Wed Oct 09, 2019 6:09 pm To answer why it's 8.5MB and not changing as he claims to change settings we certainly do!
Sure, though in this case it won't tell us much. It's the nature of how these presets are designed. He should be able to decrease the file size by increasing the RF substantially, but lowering the RF (raising quality) will basically induce a constant quality mode given the vbv settings.
s/quality/bitrate ;) :P
Cor'e =)
Posts: 11
Joined: Sun Oct 06, 2019 8:07 pm

Re: We need a Preset for Discord servers please...

Post by Cor'e =) »

[quote=BradleyS post_id=186279 time=1570645429 user_id=2825]
I added three presets for Discord Nitro and one for Discord free in https://github.com/bradleysepos/HandBra ... fa7b9cfa5b.

Build from source or wait for the next nightly/snapshot build.
[/quote]

Thank you @BradleyS!

I can't wait to test and tell everyone i know!! =) Is someone compiling the nightlies for Windows x64 or do i just wait for the new version?
Cor'e =)
Posts: 11
Joined: Sun Oct 06, 2019 8:07 pm

Re: We need a Preset for Discord servers please...

Post by Cor'e =) »

BradleyS wrote: Wed Oct 09, 2019 6:23 pm I added three presets for Discord Nitro and one for Discord free in https://github.com/bradleysepos/HandBra ... fa7b9cfa5b.

Build from source or wait for the next nightly/snapshot build.
Thank you @BradleyS!

I can't wait to test and tell everyone i know!! =) Is someone compiling the nightlies for Windows x64 or do i just wait for the new version?
Cor'e =)
Posts: 11
Joined: Sun Oct 06, 2019 8:07 pm

Re: We need a Preset for Discord servers please...

Post by Cor'e =) »

Why can't i Edit or Delete my Posts??
Cor'e =)
Posts: 11
Joined: Sun Oct 06, 2019 8:07 pm

Re: We need a Preset for Discord servers please...

Post by Cor'e =) »

Ok, i found this info, but which of these is the one to install over my current release?

Code: Select all

Downloads
Platform / File	Download	SHA256 Hash  Windows (7, 8.1 and 10)
HandBrake-20191010-f834eeb8d_x86_64-SafeMode-Win_GUI.exe
HandBrake-20191010-f834eeb8d_x86_64-SafeMode-Win_GUI.zip
HandBrake-20191010-f834eeb8d_x86_64-Win_GUI.exe
HandBrake-20191010-f834eeb8d_x86_64-Win_GUI.zip
HandBrakeCLI-20191009174851-f834eeb-master-win-x86_64.zip
LibHB-20191009174851-f834eeb-master-win-x86_64.zip
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: We need a Preset for Discord servers please...

Post by BradleyS »

HandBrake-20191010-f834eeb8d_x86_64-Win_GUI.exe

You can't edit posts because we've had a few cases where people have replaced their old approved posts with spam. Sorry.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: We need a Preset for Discord servers please...

Post by BradleyS »

Also, the nightly builds for Windows install alongside, not over the release builds.
Cor'e =)
Posts: 11
Joined: Sun Oct 06, 2019 8:07 pm

Re: We need a Preset for Discord servers please...

Post by Cor'e =) »

I chose to install the HandBrake-20191010-f834eeb8d_x86_64-Win_GUI.exe version, and the results were not better, the ~4 minute .MP4 actually now resizes to ~14.5MBs, the Google Preset was ~8.5MBs, so something's off.

What i noticed was a 2 minute note in the Discord preset description, not sure why it says that, here are the log files from 2 of multiple attempts the get the video down to 8MBs, including: bumping RF up ~32, limiting FPS, and reducing resolution (i don't see a way to attach files, so using code boxes!):

GoogleMail Preset small 10min ~8.5MBs

Code: Select all

HandBrake Nightly 20191009174851-f834eeb-master (2019101001)
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz
Ram: 8015 MB, 
GPU Information:
  NVIDIA GeForce GTX 860M - 23.21.13.8871
  Intel(R) HD Graphics 4600 - 10.18.14.5067
Screen: 1920x1080
Temp Dir: C:\Users\Play\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\Play\AppData\Roaming\HandBrake\Nightly

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


# Starting Encode ...

[11:41:26] base preset: Gmail Small 10 Minutes 288p30
[11:41:26] hb_init: starting libhb thread
[11:41:26] Starting work at: Fri Oct 11 11:41:26 2019
[11:41:26] 1 job(s) to process
[11:41:26] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 48,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\Users\\Play\\Desktop\\Vid2019100600002-1.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "Mux": "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": "288",
          "width": "384"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 4,
    "Den": 3
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\Home\\Videos\\VID-20191006-00002.MP4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "3.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "vbv-bufsize=2500:vbv-maxrate=250:aq-mode=2:aq-strength=0.8:direct=auto:analyse=all:deblock=3,2",
    "Preset": "medium",
    "Profile": "main",
    "Quality": 23.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[11:41:26] CPU: Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz
[11:41:26]  - Intel microarchitecture Haswell
[11:41:26]  - logical processor count: 8
[11:41:26] Intel Quick Sync Video support: yes
[11:41:26]  - Intel Media SDK hardware: API 1.17 (minimum: 1.3)
[11:41:26]  - H.264 encoder: yes
[11:41:26]     - preferred implementation: hardware (any) via D3D11
[11:41:26]     - capabilities (hardware):  breftype vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[11:41:26]  - H.265 encoder: no
[11:41:26] hb_scan: path=C:\Users\Home\Videos\VID-20191006-00002.MP4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\Home\Videos\VID-20191006-00002.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
[11:41:26] 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
[11:41:26] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Home\Videos\VID-20191006-00002.MP4':
  Metadata:
    major_brand     : 3gp5
    minor_version   : 256
    compatible_brands: 3gp53gp4mp42isom
    creation_time   : 2019-10-06T17:46:07.000000Z
  Duration: 00:03:51.30, start: 0.000000, bitrate: 14093 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 14026 kb/s, 30.08 fps, 30 tbr, 1k tbn, 2k tbc (default)
    Metadata:
      creation_time   : 2019-10-06T17:46:07.000000Z
      handler_name    : VideoHandler
      encoder         : imm
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 63 kb/s (default)
    Metadata:
      creation_time   : 2019-10-06T17:46:07.000000Z
      handler_name    : SoundHandler
[11:41:26] scan: decoding previews for title 1
[11:41:26] scan: audio 0x1: aac, rate=48000Hz, bitrate=63995 Unknown (AAC LC) (1.0 ch) (63 kbps)
[11:41:26] scan: 10 previews, 1280x720, 30.081 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[11:41:26] scan: supported video decoders: avcodec qsv
[11:41:26] libhb: scan thread found 1 valid title(s)
[11:41:26] D3D11: QSV adapter with id 0 has been found
[11:41:26] Skipping subtitle scan.  No suitable subtitle tracks.
[11:41:26] Starting Task: Encoding Pass
[11:41:26] work: only 1 chapter, disabling chapter markers
[11:41:26] job configuration:
[11:41:26]  * source
[11:41:26]    + C:\Users\Home\Videos\VID-20191006-00002.MP4
[11:41:26]    + title 1, chapter(s) 1 to 1
[11:41:26]    + container: mov,mp4,m4a,3gp,3g2,mj2
[11:41:26]    + data rate: 14093 kbps
[11:41:26]  * destination
[11:41:26]    + C:\Users\Play\Desktop\Vid2019100600002-1.m4v
[11:41:26]    + container: MPEG-4 (libavformat)
[11:41:26]      + optimized for HTTP streaming (fast start)
[11:41:26]      + align initial A/V stream timestamps
[11:41:26]  * video track
[11:41:26]    + decoder: h264
[11:41:26]      + bitrate 14026 kbps
[11:41:26]    + filters
[11:41:26]      + 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)
[11:41:26]      + Decomb (mode=39)
[11:41:26]      + Framerate Shaper (mode=2:rate=27000000/900000)
[11:41:26]        + frame rate: 30.081 fps -> peak rate limited to 30.000 fps
[11:41:26]      + Crop and Scale (width=384:height=288:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[11:41:26]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 384 * 288
[11:41:26]    + Output geometry
[11:41:26]      + storage dimensions: 384 x 288
[11:41:26]      + pixel aspect ratio: 4 : 3
[11:41:26]      + display dimensions: 512 x 288
[11:41:26]    + encoder: H.264 (libx264)
[11:41:26]      + preset:  medium
[11:41:26]      + options: vbv-bufsize=2500:vbv-maxrate=250:aq-mode=2:aq-strength=0.8:direct=auto:analyse=all:deblock=3,2
[11:41:26]      + profile: main
[11:41:26]      + level:   3.1
[11:41:26]      + quality: 23.00 (RF)
[11:41:26]      + color profile: 1-1-1
[11:41:26]  * audio track 1
[11:41:26]    + decoder: Unknown (AAC LC) (1.0 ch) (63 kbps) (track 1, id 0x1)
[11:41:26]      + bitrate: 63 kbps, samplerate: 48000 Hz
[11:41:26]    + mixdown: Mono
[11:41:26]    + dither: none
[11:41:26]    + encoder: AAC (libavcodec)
[11:41:26]      + bitrate: 48 kbps, samplerate: 48000 Hz
[11:41:26] sync: expecting 6957 video frames
[11:41:26] encx264: min-keyint: 30, keyint: 300
[11:41:26] encx264: encoding at constant RF 23.000000
[11:41:26] encx264: unparsed options: vbv-bufsize=2500:vbv-maxrate=250:aq-mode=2:aq-strength=0.8:direct=auto:analyse=all:deblock=3,2:level=3.1:8x8dct=0
x264 [info]: using SAR=4/3
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[11:41:26] sync: first pts video is 0
[11:41:26] sync: first pts audio 0x1 is 0
[11:41:26] sync: video time went backwards 33 ms, dropped 1 frames. PTS 0
[11:42:15] reader: done. 1 scr changes
[11:42:15] work: average encoding speed for job is 141.196732 fps
[11:42:16] comb detect: heavy 127 | light 765 | uncombed 6063 | total 6955
[11:42:16] decomb: deinterlaced 127 | blended 765 | unfiltered 6063 | total 6955
[11:42:16] vfr: 6937 frames output, 18 dropped and 0 duped for CFR/PFR
[11:42:16] vfr: lost time: 0 (0 frames)
[11:42:16] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:42:16] aac-decoder done: 10842 frames, 0 decoder errors
[11:42:16] h264-decoder done: 6956 frames, 0 decoder errors
[11:42:16] sync: got 6955 frames, 6957 expected
[11:42:16] sync: framerate min 22.299 fps, max 33.333 fps, avg 30.078 fps
x264 [info]: frame I:82    Avg QP:43.07  size:  3799
x264 [info]: frame P:3651  Avg QP:43.20  size:  1498
x264 [info]: frame B:3204  Avg QP:45.62  size:   489
x264 [info]: consecutive B-frames: 31.9% 16.1% 10.7% 41.3%
x264 [info]: mb I  I16..4: 37.0%  0.0% 63.0%
x264 [info]: mb P  I16..4:  4.7%  0.0%  6.8%  P16..4: 51.1%  5.3%  6.5%  0.1%  0.0%    skip:25.6%
x264 [info]: mb B  I16..4:  0.4%  0.0%  0.1%  B16..8: 48.3%  2.2%  0.2%  direct: 1.8%  skip:47.0%  L0:45.6% L1:53.7% BI: 0.6%
x264 [info]: direct mvs  spatial:99.8% temporal:0.2%
x264 [info]: coded y,uvDC,uvAC intra: 52.7% 59.4% 17.1% inter: 9.3% 15.8% 0.3%
x264 [info]: i16 v,h,dc,p: 40% 18% 22% 19%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 10% 37%  6%  6%  6%  5%  4%  3%
x264 [info]: i8c dc,h,v,p: 86%  6%  7%  1%
x264 [info]: Weighted P-Frames: Y:35.7% UV:21.8%
x264 [info]: ref P L0: 76.3% 11.0%  8.0%  3.7%  1.0%
x264 [info]: ref B L0: 92.6%  6.0%  1.4%
x264 [info]: ref B L1: 97.4%  2.6%
x264 [info]: kb/s:254.16
[11:42:16] mux: track 0, 6937 frames, 7344173 bytes, 253.98 kbps, fifo 8192
[11:42:16] mux: track 1, 10843 frames, 1405351 bytes, 48.60 kbps, fifo 16384
[11:42:16] Finished work at: Fri Oct 11 11:42:16 2019
[11:42:16] libhb: work result = 0

# Encode Completed ...
Discord Preset Free 2min ~14.5MBs

Code: Select all

HandBrake Nightly 20191009174851-f834eeb-master (2019101001)
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz
Ram: 8015 MB, 
GPU Information:
  NVIDIA GeForce GTX 860M - 23.21.13.8871
  Intel(R) HD Graphics 4600 - 10.18.14.5067
Screen: 1920x1080
Temp Dir: C:\Users\Play\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\Play\AppData\Roaming\HandBrake\Nightly

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


# Starting Encode ...

[11:44:46] base preset: Discord 2 Minutes 360p30
[11:44:46] hb_init: starting libhb thread
[11:44:46] Starting work at: Fri Oct 11 11:44:46 2019
[11:44:46] 1 job(s) to process
[11:44:46] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 64,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\Users\\Play\\Desktop\\Vid2019100600002-1.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "Mux": "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": "360",
          "width": "480"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 4,
    "Den": 3
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\Home\\Videos\\VID-20191006-00002.MP4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "3.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "vbv-bufsize=4500:vbv-maxrate=450:aq-mode=2:aq-strength=0.8:direct=auto:analyse=all:deblock=3,2",
    "Preset": "medium",
    "Profile": "main",
    "Quality": 21.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[11:44:46] CPU: Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz
[11:44:46]  - Intel microarchitecture Haswell
[11:44:46]  - logical processor count: 8
[11:44:46] Intel Quick Sync Video support: yes
[11:44:46]  - Intel Media SDK hardware: API 1.17 (minimum: 1.3)
[11:44:46]  - H.264 encoder: yes
[11:44:46]     - preferred implementation: hardware (any) via D3D11
[11:44:46]     - capabilities (hardware):  breftype vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[11:44:46]  - H.265 encoder: no
[11:44:46] hb_scan: path=C:\Users\Home\Videos\VID-20191006-00002.MP4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\Home\Videos\VID-20191006-00002.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
[11:44:46] 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
[11:44:46] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Home\Videos\VID-20191006-00002.MP4':
  Metadata:
    major_brand     : 3gp5
    minor_version   : 256
    compatible_brands: 3gp53gp4mp42isom
    creation_time   : 2019-10-06T17:46:07.000000Z
  Duration: 00:03:51.30, start: 0.000000, bitrate: 14093 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 14026 kb/s, 30.08 fps, 30 tbr, 1k tbn, 2k tbc (default)
    Metadata:
      creation_time   : 2019-10-06T17:46:07.000000Z
      handler_name    : VideoHandler
      encoder         : imm
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 63 kb/s (default)
    Metadata:
      creation_time   : 2019-10-06T17:46:07.000000Z
      handler_name    : SoundHandler
[11:44:46] scan: decoding previews for title 1
[11:44:46] scan: audio 0x1: aac, rate=48000Hz, bitrate=63995 Unknown (AAC LC) (1.0 ch) (63 kbps)
[11:44:46] scan: 10 previews, 1280x720, 30.081 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[11:44:46] scan: supported video decoders: avcodec qsv
[11:44:46] libhb: scan thread found 1 valid title(s)
[11:44:46] Skipping subtitle scan.  No suitable subtitle tracks.
[11:44:46] Starting Task: Encoding Pass
[11:44:46] work: only 1 chapter, disabling chapter markers
[11:44:46] job configuration:
[11:44:46]  * source
[11:44:46]    + C:\Users\Home\Videos\VID-20191006-00002.MP4
[11:44:46]    + title 1, chapter(s) 1 to 1
[11:44:46]    + container: mov,mp4,m4a,3gp,3g2,mj2
[11:44:46]    + data rate: 14093 kbps
[11:44:46]  * destination
[11:44:46]    + C:\Users\Play\Desktop\Vid2019100600002-1.m4v
[11:44:46]    + container: MPEG-4 (libavformat)
[11:44:46]      + optimized for HTTP streaming (fast start)
[11:44:46]      + align initial A/V stream timestamps
[11:44:46]  * video track
[11:44:46]    + decoder: h264
[11:44:46]      + bitrate 14026 kbps
[11:44:46]    + filters
[11:44: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)
[11:44:46]      + Decomb (mode=39)
[11:44:46]      + Framerate Shaper (mode=2:rate=27000000/900000)
[11:44:46]        + frame rate: 30.081 fps -> peak rate limited to 30.000 fps
[11:44:46]      + Crop and Scale (width=480:height=360:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[11:44:46]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 480 * 360
[11:44:46]    + Output geometry
[11:44:46]      + storage dimensions: 480 x 360
[11:44:46]      + pixel aspect ratio: 4 : 3
[11:44:46]      + display dimensions: 640 x 360
[11:44:46]    + encoder: H.264 (libx264)
[11:44:46]      + preset:  medium
[11:44:46]      + options: vbv-bufsize=4500:vbv-maxrate=450:aq-mode=2:aq-strength=0.8:direct=auto:analyse=all:deblock=3,2
[11:44:46]      + profile: main
[11:44:46]      + level:   3.1
[11:44:46]      + quality: 21.00 (RF)
[11:44:46]      + color profile: 1-1-1
[11:44:46]  * audio track 1
[11:44:46]    + decoder: Unknown (AAC LC) (1.0 ch) (63 kbps) (track 1, id 0x1)
[11:44:46]      + bitrate: 63 kbps, samplerate: 48000 Hz
[11:44:46]    + mixdown: Mono
[11:44:46]    + dither: none
[11:44:46]    + encoder: AAC (libavcodec)
[11:44:46]      + bitrate: 64 kbps, samplerate: 48000 Hz
[11:44:46] sync: expecting 6957 video frames
[11:44:46] encx264: min-keyint: 30, keyint: 300
[11:44:46] encx264: encoding at constant RF 21.000000
[11:44:46] encx264: unparsed options: vbv-bufsize=4500:vbv-maxrate=450:aq-mode=2:aq-strength=0.8:direct=auto:analyse=all:deblock=3,2:level=3.1:8x8dct=0
x264 [info]: using SAR=4/3
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[11:44:46] sync: first pts video is 0
[11:44:46] sync: first pts audio 0x1 is 0
[11:44:46] sync: video time went backwards 33 ms, dropped 1 frames. PTS 0
[11:45:42] reader: done. 1 scr changes
[11:45:43] work: average encoding speed for job is 122.198135 fps
[11:45:43] comb detect: heavy 127 | light 765 | uncombed 6063 | total 6955
[11:45:43] decomb: deinterlaced 127 | blended 765 | unfiltered 6063 | total 6955
[11:45:43] vfr: 6937 frames output, 18 dropped and 0 duped for CFR/PFR
[11:45:43] vfr: lost time: 0 (0 frames)
[11:45:43] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:45:43] aac-decoder done: 10842 frames, 0 decoder errors
[11:45:43] h264-decoder done: 6956 frames, 0 decoder errors
[11:45:43] sync: got 6955 frames, 6957 expected
[11:45:43] sync: framerate min 21.708 fps, max 33.333 fps, avg 30.078 fps
x264 [info]: frame I:91    Avg QP:40.90  size:  5860
x264 [info]: frame P:3705  Avg QP:42.60  size:  2641
x264 [info]: frame B:3141  Avg QP:44.99  size:   924
x264 [info]: consecutive B-frames: 33.3% 15.5% 10.6% 40.7%
x264 [info]: mb I  I16..4: 37.2%  0.0% 62.8%
x264 [info]: mb P  I16..4:  6.0%  0.0%  8.6%  P16..4: 49.2%  6.2%  6.8%  0.1%  0.0%    skip:23.2%
x264 [info]: mb B  I16..4:  0.6%  0.0%  0.3%  B16..8: 47.7%  3.2%  0.3%  direct: 2.7%  skip:45.2%  L0:45.5% L1:53.4% BI: 1.1%
x264 [info]: direct mvs  spatial:99.8% temporal:0.2%
x264 [info]: coded y,uvDC,uvAC intra: 50.5% 60.0% 16.6% inter: 10.9% 17.7% 0.3%
x264 [info]: i16 v,h,dc,p: 41% 18% 22% 19%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 10% 34%  6%  6%  6%  5%  4%  3%
x264 [info]: i8c dc,h,v,p: 84%  6%  9%  1%
x264 [info]: Weighted P-Frames: Y:33.2% UV:21.0%
x264 [info]: ref P L0: 75.6% 11.2%  8.2%  3.9%  1.0%
x264 [info]: ref B L0: 92.6%  5.9%  1.5%
x264 [info]: ref B L1: 97.6%  2.4%
x264 [info]: kb/s:457.40
[11:45:43] mux: track 0, 6937 frames, 13218744 bytes, 457.13 kbps, fifo 8192
[11:45:43] mux: track 1, 10843 frames, 1864849 bytes, 64.49 kbps, fifo 8192
[11:45:43] Finished work at: Fri Oct 11 11:45:43 2019
[11:45:43] libhb: work result = 0

# Encode Completed ...
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: We need a Preset for Discord servers please...

Post by rollin_eng »

Try dropping the RF to 24.

You could also drop your audio bitrate, if not just pass it through.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: We need a Preset for Discord servers please...

Post by BradleyS »

@rollin_eng Read up for an explanation on why changing the RF alone won't work.

The "minutes" donation in the preset names is the longest duration video you can encode to be under the target file size. You're trying to compress a nearly 4 minute video into 8 MB or less... that's beyond what you can usually expect with H.264 video. That said, if you want to try, simply change vbv-maxrate from 450 to 200. The quality will be really low.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: We need a Preset for Discord servers please...

Post by BradleyS »

I've renamed the Discord (free) preset to Discord Small and added a Discord Tiny preset that will allow encoding up to 5 minutes duration in 8 MB or less. Look for it in the next nightly build.
Cor'e =)
Posts: 11
Joined: Sun Oct 06, 2019 8:07 pm

Re: We need a Preset for Discord servers please...

Post by Cor'e =) »

Thank you, will do. I know i don't know so much as you'all, but the GMail 8.5MBs was a nice enough quality, just .5MBs too large, i hope the same ~4 minute video reducing that extra .5MBs doesn't turn it into visual mush, lol. I will look for the place to tweak vbv-maxrate from 450 to 200. =)
Cor'e =)
Posts: 11
Joined: Sun Oct 06, 2019 8:07 pm

Re: We need a Preset for Discord servers please...

Post by Cor'e =) »

Ok, found the setting and it does work, the output video file was 7.75MBs. And as you mentioned the artifacts are present as the scene moves, the more movement the worse, lol.

Am i missing that HandBrake may split video up into 8MB files maybe?

Because the only reason i'm trying to get one 8MB file is because i didn't think HB could split video files and output them. Discord doesn't really have a limit on how 'many' vids, only that they're 8MBs or less.
Deleted User 11865

Re: We need a Preset for Discord servers please...

Post by Deleted User 11865 »

HandBrake doesn't have any automated splitting, but there are other tools you can use to split the video before or after HandBrake.
Cor'e =)
Posts: 11
Joined: Sun Oct 06, 2019 8:07 pm

Re: We need a Preset for Discord servers please...

Post by Cor'e =) »

What would you recommend?
Post Reply