Custom bitrate doesn't work

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
ChristianCaiumi
Posts: 10
Joined: Mon May 18, 2020 10:43 am

Custom bitrate doesn't work

Post by ChristianCaiumi »

Description of problem or question:
After i decided the dimensions of the destination file, i tried to use in the video page the Avg Bitrate function, but even changing the amount of rate, the final result has always the same bitrate. So Avg bitrate seems not working.



Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):
Handbrake v. 1.3.2



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



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

Code: Select all

HandBrake 1.3.2 (2020050300)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Ram: 32728 MB, 
GPU Information:
  NVIDIA Quadro 600 - 21.21.13.7684
Screen: 1920x1200
Temp Dir: C:\Users\Christian\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Christian\AppData\Roaming\HandBrake

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


# Starting Encode ...

[12:56:11] base preset: Fast 1080p30 (Modified)
[12:56:11] hb_init: starting libhb thread
[12:56:11] Starting work at: Mon May 18 12:56:11 2020
[12:56:11] 1 job(s) to process
[12:56:11] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 64,
        "DRC": 0.0,
        "Encoder": "mp3",
        "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": "P:\\Chef Express - Video Covid 19\\Export\\Chef Express - Covid 19 - Pillola 1 - Rev. 2.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "216",
          "width": "384"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1",
          "rate": "27000000/1080000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "P:\\Chef Express - Video Covid 19\\Export\\Chef Express - Covid 19 - Pillola 1 - 720p.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "5.2",
    "TwoPass": true,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "high",
    "Tune": "animation",
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[12:56:11] CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
[12:56:11]  - Intel microarchitecture Ivy Bridge
[12:56:11]  - logical processor count: 8
[12:56:11] Intel Quick Sync Video support: no
[12:56:11] hb_scan: path=P:\Chef Express - Video Covid 19\Export\Chef Express - Covid 19 - Pillola 1 - 720p.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image P:\Chef Express - Video Covid 19\Export\Chef Express - Covid 19 - Pillola 1 - 720p.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(P:\Chef Express - Video Covid 19\Export\Chef Express - Covid 19 - Pillola 1 - 720p.mp4\) failed
[12:56:11] 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
[12:56:11] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'P:\Chef Express - Video Covid 19\Export\Chef Express - Covid 19 - Pillola 1 - 720p.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2020-05-18T09:57:50.000000Z
  Duration: 00:02:36.83, start: 0.000000, bitrate: 1601 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 1278 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2020-05-18T09:57:50.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, stereo, fltp, 318 kb/s (default)
    Metadata:
      creation_time   : 2020-05-18T09:57:50.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
[12:56:11] scan: decoding previews for title 1
[12:56:11] scan: audio 0x1: aac, rate=32000Hz, bitrate=318250 English (AAC LC) (2.0 ch) (318 kbps)
[12:56:11] scan: 10 previews, 1280x720, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[12:56:11] scan: supported video decoders: avcodec qsv
[12:56:11] libhb: scan thread found 1 valid title(s)
[12:56:11] Skipping subtitle scan.  No suitable subtitle tracks.
[12:56:11] Starting Task: Analysis Pass
[12:56:11] work: compression level not specified, track 1 setting compression level 2.00
[12:56:11] work: only 1 chapter, disabling chapter markers
[12:56:11] job configuration:
[12:56:11]  * source
[12:56:11]    + P:\Chef Express - Video Covid 19\Export\Chef Express - Covid 19 - Pillola 1 - 720p.mp4
[12:56:11]    + title 1, chapter(s) 1 to 1
[12:56:11]    + container: mov,mp4,m4a,3gp,3g2,mj2
[12:56:11]    + data rate: 1601 kbps
[12:56:11]  * destination
[12:56:11]    + P:\Chef Express - Video Covid 19\Export\Chef Express - Covid 19 - Pillola 1 - Rev. 2.m4v
[12:56:11]    + container: MPEG-4 (libavformat)
[12:56:11]      + align initial A/V stream timestamps
[12:56:11]  * video track
[12:56:11]    + decoder: h264
[12:56:11]      + bitrate 1278 kbps
[12:56:11]    + filters
[12:56:11]      + Framerate Shaper (mode=1:rate=27000000/1080000)
[12:56:11]        + frame rate: 25.000 fps -> constant 25.000 fps
[12:56:11]      + Crop and Scale (width=384:height=216:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[12:56:11]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 384 * 216
[12:56:11]    + Output geometry
[12:56:11]      + storage dimensions: 384 x 216
[12:56:11]      + pixel aspect ratio: 1 : 1
[12:56:11]      + display dimensions: 384 x 216
[12:56:11]    + encoder: H.264 (libx264)
[12:56:11]      + preset:  fast
[12:56:11]      + tune:    animation
[12:56:11]      + profile: high
[12:56:11]      + level:   5.2
[12:56:11]      + bitrate: 1000 kbps, pass: 1
[12:56:11]      + color profile: 1-1-1
[12:56:11]  * audio track 1
[12:56:11]    + decoder: English (AAC LC) (2.0 ch) (318 kbps) (track 1, id 0x1)
[12:56:11]      + bitrate: 318 kbps, samplerate: 32000 Hz
[12:56:11]    + mixdown: Stereo
[12:56:11]    + dither: none
[12:56:11]    + encoder: MP3 (libmp3lame)
[12:56:11]      + bitrate: 64 kbps, samplerate: 32000 Hz
[12:56:11]      + compression level: 2.00
[12:56:11] sync: expecting 3920 video frames
[12:56:11] encx264: encoding at average bitrate 1000
[12:56:11] encx264: unparsed options: level=5.2:ref=4:bframes=5:deblock=1,1:weightp=1:subme=6:psy-rd=0.4,0:vbv-bufsize=300000:vbv-maxrate=300000:aq-strength=0.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 5.2, 4:2:0, 8-bit
[12:56:11] sync: first pts video is 0
[12:56:11] sync: "Chapter 1" (1) at frame 1 time 0
[12:56:11] sync: first pts audio 0x1 is 0
[12:56:21] reader: done. 1 scr changes
[12:56:21] work: average encoding speed for job is 378.157654 fps
[12:56:22] vfr: 3919 frames output, 0 dropped and 0 duped for CFR/PFR
[12:56:22] vfr: lost time: 0 (0 frames)
[12:56:22] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:56:22] aac-decoder done: 4899 frames, 0 decoder errors
[12:56:22] h264-decoder done: 3919 frames, 0 decoder errors
[12:56:22] sync: got 3919 frames, 3920 expected
[12:56:22] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:17    Avg QP: 0.65  size: 14023
x264 [info]: frame P:818   Avg QP: 0.09  size:  1258
x264 [info]: frame B:3084  Avg QP: 0.27  size:   199
x264 [info]: consecutive B-frames:  3.6%  3.0%  1.6%  3.5%  2.3% 86.0%
x264 [info]: mb I  I16..4: 75.9%  0.7% 23.4%
x264 [info]: mb P  I16..4:  2.6%  0.0%  0.8%  P16..4:  3.9%  0.4%  0.3%  0.0%  0.0%    skip:92.1%
x264 [info]: mb B  I16..4:  0.3%  0.0%  0.0%  B16..8:  0.5%  0.1%  0.0%  direct: 1.1%  skip:98.0%  L0:39.2% L1:55.2% BI: 5.6%
x264 [info]: final ratefactor: -25.18
x264 [info]: 8x8 transform intra:1.2% inter:19.9%
x264 [info]: coded y,uvDC,uvAC intra: 31.5% 29.3% 29.2% inter: 1.2% 1.2% 1.2%
x264 [info]: i16 v,h,dc,p: 58% 41%  1%  0%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 31% 27%  5%  4%  4%  3%  2%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 36% 19%  3%  4%  3%  4%  3%  5%
x264 [info]: i8c dc,h,v,p: 69% 23%  8%  1%
x264 [info]: Weighted P-Frames: Y:7.9% UV:7.6%
x264 [info]: ref P L0: 77.7% 19.9%  2.1%  0.3%
x264 [info]: ref B L0: 92.6%  7.0%  0.4%
x264 [info]: ref B L1: 97.4%  2.6%
x264 [info]: kb/s:96.00
[12:56:22] Starting Task: Encoding Pass
[12:56:22] work: compression level not specified, track 1 setting compression level 2.00
[12:56:22] work: only 1 chapter, disabling chapter markers
[12:56:22] job configuration:
[12:56:22]  * source
[12:56:22]    + P:\Chef Express - Video Covid 19\Export\Chef Express - Covid 19 - Pillola 1 - 720p.mp4
[12:56:22]    + title 1, chapter(s) 1 to 1
[12:56:22]    + container: mov,mp4,m4a,3gp,3g2,mj2
[12:56:22]    + data rate: 1601 kbps
[12:56:22]  * destination
[12:56:22]    + P:\Chef Express - Video Covid 19\Export\Chef Express - Covid 19 - Pillola 1 - Rev. 2.m4v
[12:56:22]    + container: MPEG-4 (libavformat)
[12:56:22]      + align initial A/V stream timestamps
[12:56:22]  * video track
[12:56:22]    + decoder: h264
[12:56:22]      + bitrate 1278 kbps
[12:56:22]    + filters
[12:56:22]      + Framerate Shaper (mode=1:rate=27000000/1080000)
[12:56:22]        + frame rate: 25.000 fps -> constant 25.000 fps
[12:56:22]      + Crop and Scale (width=384:height=216:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[12:56:22]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 384 * 216
[12:56:22]    + Output geometry
[12:56:22]      + storage dimensions: 384 x 216
[12:56:22]      + pixel aspect ratio: 1 : 1
[12:56:22]      + display dimensions: 384 x 216
[12:56:22]    + encoder: H.264 (libx264)
[12:56:22]      + preset:  fast
[12:56:22]      + tune:    animation
[12:56:22]      + profile: high
[12:56:22]      + level:   5.2
[12:56:22]      + bitrate: 1000 kbps, pass: 2
[12:56:22]      + color profile: 1-1-1
[12:56:22]  * audio track 1
[12:56:22]    + decoder: English (AAC LC) (2.0 ch) (318 kbps) (track 1, id 0x1)
[12:56:22]      + bitrate: 318 kbps, samplerate: 32000 Hz
[12:56:22]    + mixdown: Stereo
[12:56:22]    + dither: none
[12:56:22]    + encoder: MP3 (libmp3lame)
[12:56:22]      + bitrate: 64 kbps, samplerate: 32000 Hz
[12:56:22]      + compression level: 2.00
[12:56:22] sync: expecting 3919 video frames
[12:56:22] encx264: encoding at average bitrate 1000
[12:56:22] encx264: unparsed options: level=5.2:ref=4:bframes=5:deblock=1,1:weightp=1:subme=6:psy-rd=0.4,0:vbv-bufsize=300000:vbv-maxrate=300000:aq-strength=0.6:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [warning]: target: 1000.00 kbit/s, expected: 97.05 kbit/s, avg QP: 0.0000
x264 [warning]: try reducing target bitrate
x264 [info]: profile High, level 5.2, 4:2:0, 8-bit
[12:56:22] sync: first pts video is 0
[12:56:22] sync: "Chapter 1" (1) at frame 1 time 0
[12:56:22] sync: first pts audio 0x1 is 0
[12:56:32] reader: done. 1 scr changes
[12:56:32] work: average encoding speed for job is 381.784424 fps
[12:56:32] vfr: 3919 frames output, 0 dropped and 0 duped for CFR/PFR
[12:56:32] vfr: lost time: 0 (0 frames)
[12:56:32] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:56:32] aac-decoder done: 4899 frames, 0 decoder errors
[12:56:32] h264-decoder done: 3919 frames, 0 decoder errors
[12:56:32] sync: got 3919 frames, 3919 expected
[12:56:32] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:17    Avg QP: 0.00  size: 14091
x264 [info]: frame P:818   Avg QP: 0.07  size:  1256
x264 [info]: frame B:3084  Avg QP: 0.22  size:   202
x264 [info]: consecutive B-frames:  3.6%  3.0%  1.6%  3.5%  2.3% 86.0%
x264 [info]: mb I  I16..4: 75.7%  0.6% 23.7%
x264 [info]: mb P  I16..4:  2.6%  0.0%  0.8%  P16..4:  3.9%  0.4%  0.3%  0.0%  0.0%    skip:92.1%
x264 [info]: mb B  I16..4:  0.3%  0.0%  0.0%  B16..8:  0.5%  0.1%  0.0%  direct: 1.1%  skip:97.9%  L0:39.1% L1:55.3% BI: 5.6%
x264 [info]: 8x8 transform intra:1.1% inter:19.8%
x264 [info]: coded y,uvDC,uvAC intra: 31.8% 29.3% 29.2% inter: 1.2% 1.2% 1.2%
x264 [info]: i16 v,h,dc,p: 58% 41%  1%  0%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 32% 26%  5%  4%  4%  2%  2%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 36% 19%  3%  4%  3%  4%  3%  5%
x264 [info]: i8c dc,h,v,p: 69% 23%  8%  1%
x264 [info]: Weighted P-Frames: Y:7.9% UV:7.6%
x264 [info]: ref P L0: 77.8% 20.6%  1.4%  0.1%
x264 [info]: ref B L0: 92.6%  7.2%  0.2%
x264 [info]: ref B L1: 97.5%  2.5%
x264 [info]: kb/s:96.49
[12:56:32] mux: track 0, 3919 frames, 1889968 bytes, 96.43 kbps, fifo 4096
[12:56:32] mux: track 1, 4355 frames, 1254240 bytes, 63.99 kbps, fifo 8192
[12:56:32] Finished work at: Mon May 18 12:56:32 2020
[12:56:32] libhb: work result = 0

# Encode Completed ...


[code]
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Custom bitrate doesn't work

Post by Ritsuka »

Because the bitrate you chose is too high for the 384 x 216 resolution. There isn't enough data to use a 1000 Kbit/s
ChristianCaiumi
Posts: 10
Joined: Mon May 18, 2020 10:43 am

Re: Custom bitrate doesn't work

Post by ChristianCaiumi »

Thank you for your answer,
there is no enough data? Are you joking? The source file is a 1280 x 720 video file, encoded at 10000 Kbit/s! The data are present, absolutely! Maybe you wanted to say that 1000 Kbit/s are not necessary for that dimension, but i think that if you use the custom system you should have the chance to decide the bitrate by yourself, without being bypassed by the system!
Actually i also tried with 200 Kbit/s, with no success, then i've seen that the used destination bitrate is always 93 Kbit/s, which unfortunately doesn't allow to reach enough final quality. And that means that a higher bitrate should be necessary! It's absurd that the system doesn't allow a higher bitrate.
Deleted User 11865

Re: Custom bitrate doesn't work

Post by Deleted User 11865 »

ChristianCaiumi wrote: Mon May 18, 2020 11:01 am

Code: Select all

[…]

x264 [warning]: target: 1000.00 kbit/s, expected: 97.05 kbit/s, avg QP: 0.0000
x264 [warning]: try reducing target bitrate

[…]

x264 [info]: frame I:17    Avg QP: 0.00  size: 14091
x264 [info]: frame P:818   Avg QP: 0.07  size:  1256
x264 [info]: frame B:3084  Avg QP: 0.22  size:   202

[…]
The encode is practically lossless. The encoder cannot use a QP lower than zero, it simply cannot do a higher bitrate. Is your source some kind of slide show or something?
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Custom bitrate doesn't work

Post by Ritsuka »

Moreover, you set the output size to 384 x 216 pixels. 384 x 216 will either look like a postage stamp or horrible if you zoom it to full screen.
ChristianCaiumi
Posts: 10
Joined: Mon May 18, 2020 10:43 am

Re: Custom bitrate doesn't work

Post by ChristianCaiumi »

Rodeo wrote: Mon May 18, 2020 11:45 am
ChristianCaiumi wrote: Mon May 18, 2020 11:01 am

Code: Select all

[…]

x264 [warning]: target: 1000.00 kbit/s, expected: 97.05 kbit/s, avg QP: 0.0000
x264 [warning]: try reducing target bitrate

[…]

x264 [info]: frame I:17    Avg QP: 0.00  size: 14091
x264 [info]: frame P:818   Avg QP: 0.07  size:  1256
x264 [info]: frame B:3084  Avg QP: 0.22  size:   202

[…]
The encode is practically lossless. The encoder cannot use a QP lower than zero, it simply cannot do a higher bitrate. Is your source some kind of slide show or something?
Why couldn't i encode a lossless video? i simply want to encode the source video (it's a 1280 x 720 video file with 10.000 Kbit/s rate) in the best possible quality at 384 x 216 px!
And the solution found by the system is NOT GOOD ENOUGH! Is readable, but with not good quality, even watching the final video in its real size. This means that the encoding would need MORE data.
ChristianCaiumi
Posts: 10
Joined: Mon May 18, 2020 10:43 am

Re: Custom bitrate doesn't work

Post by ChristianCaiumi »

Ritsuka wrote: Mon May 18, 2020 11:52 am Moreover, you set the output size to 384 x 216 pixels. 384 x 216 will either look like a postage stamp or horrible if you zoom it to full screen.
I don't need to watch it at full screen, but i CLAIM to see it good in its real size! And that's not, with the system setting.
Every professional encoding system allows you to set the bitrate you desire: if it's too much, you will "pay" it with a bigger destination file, but you obtain the desired quality. And this is not the case...
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Custom bitrate doesn't work

Post by Ritsuka »

The encoder is already saying it can't do better quality than that. At such low resolution you have another issue: chroma subsampling. Video is in 4:2:0, it means there is only a color info each 4 pixels. So for example 1px red lines will look bad. See https://en.wikipedia.org/wiki/Chroma_subsampling for more info.
It would help if you could post some screenshot of what you think is not "good" quality.
ChristianCaiumi
Posts: 10
Joined: Mon May 18, 2020 10:43 am

Re: Custom bitrate doesn't work

Post by ChristianCaiumi »

Ritsuka wrote: Mon May 18, 2020 12:33 pm The encoder is already saying it can't do better quality than that. At such low resolution you have another issue: chroma subsampling. Video is in 4:2:0, it means there is only a color info each 4 pixels. So for example 1px red lines will look bad. See https://en.wikipedia.org/wiki/Chroma_subsampling for more info.
It would help if you could post some screenshot of what you think is not "good" quality.
Thank you, i know the problem of subsampling, but this is not so important, the most important thing is the sharpness, because it's a graphic video with texts, some images and a voiceover, so i would need to empower the sharpness to facilitate reading by the public.
And nevertheless, i really don't understand the way of working of this software... In videoproduction there has always to be a correspondence between resolution and rate, to obtain a balanced result, and watching the final video it's absolutely clear to me that the bitrate purposed by the software is INSUFFICIENT to obtain a reasonable quality. So it would need to increase the rate! But the software doesn't allow that. It's crazy, in my opinion.
Deleted User 11865

Re: Custom bitrate doesn't work

Post by Deleted User 11865 »

Set the H.264 profile ddrop-down to Auto and use the constant quality slider (instead of average bitrate) with RF set to 0 (zero): the output will be lossless (relative to the downscaled 384x216 image fed to the encoder).

And, text will never look sharp at 384x216. Why on earth do you need to encode at that resolution?
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Custom bitrate doesn't work

Post by Ritsuka »

Once more, please post some screenshot of that video.
Navvie
Novice
Posts: 67
Joined: Sun Mar 27, 2011 10:19 pm

Re: Custom bitrate doesn't work

Post by Navvie »

Your source is not 10,000kb/s.

From your encode log.
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 1278 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, stereo, fltp, 318 kb/s (default)
ChristianCaiumi
Posts: 10
Joined: Mon May 18, 2020 10:43 am

Re: Custom bitrate doesn't work

Post by ChristianCaiumi »

Rodeo wrote: Mon May 18, 2020 1:08 pm Set the H.264 profile ddrop-down to Auto and use the constant quality slider (instead of average bitrate) with RF set to 0 (zero): the output will be lossless (relative to the downscaled 384x216 image fed to the encoder).

And, text will never look sharp at 384x216. Why on earth do you need to encode at that resolution?
Done. The result is the same, but i tried to watch the same video exported at 720p, in a window for 216p, and the watching experience is sincerely not so much better than the 216p fileat its original size...
I think there is not so much to do.
Deleted User 11865

Re: Custom bitrate doesn't work

Post by Deleted User 11865 »

Wait, are you suggesting the quality loss is due to the downscale to 384x216 instead of the bitrate? You don't say!

:roll:
ChristianCaiumi
Posts: 10
Joined: Mon May 18, 2020 10:43 am

Re: Custom bitrate doesn't work

Post by ChristianCaiumi »

Navvie wrote: Mon May 18, 2020 1:22 pm Your source is not 10,000kb/s.

From your encode log.
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 1278 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, stereo, fltp, 318 kb/s (default)
Yes, you're right, the original request was for 10.000, then the system during the encoding needed only 1278.
ChristianCaiumi
Posts: 10
Joined: Mon May 18, 2020 10:43 am

Re: Custom bitrate doesn't work

Post by ChristianCaiumi »

Rodeo wrote: Mon May 18, 2020 2:11 pm Wait, are you suggesting the quality loss is due to the downscale to 384x216 instead of the bitrate? You don't say!

:roll:
No... I was saying that normally an encoding system allows you to increase as much as you want the planned bitrate, and at the end of the process you will see what REAL amount of data the encoder actually used for the enconding.
For example for the 720p version i set 10.000 Kbit/s, but at the end the video was 1278 Kbit/s, because the exceeding part wasn't useful.
Deleted User 11865

Re: Custom bitrate doesn't work

Post by Deleted User 11865 »

Well, HandBrake lets you enter as high a bitrate as you'd like, but the video encoder, x264, is mathematically unable to encode the specific video you provided at more than ~100 Kbps. Nothing can be done about it (I suppose you could add artificial noise in some video editor or other, but it wouldn't do anything for text sharpness).
ChristianCaiumi
Posts: 10
Joined: Mon May 18, 2020 10:43 am

Re: Custom bitrate doesn't work

Post by ChristianCaiumi »

Ritsuka wrote: Mon May 18, 2020 1:16 pm Once more, please post some screenshot of that video.
How can i do it? I don't understand the image insert command
ChristianCaiumi
Posts: 10
Joined: Mon May 18, 2020 10:43 am

Re: Custom bitrate doesn't work

Post by ChristianCaiumi »

Rodeo wrote: Mon May 18, 2020 2:26 pm Well, HandBrake lets you enter as high a bitrate as you'd like, but the video encoder, x264, is mathematically unable to encode the specific video you provided at more than ~100 Kbps. Nothing can be done about it (I suppose you could add artificial noise in some video editor or other, but it wouldn't do anything for text sharpness).
Yes, now i understood it. Unfortunately this customer asks me for absurd specific parameters
The only thing i can do is to enlarge the font of the texts...
Post Reply