HB "dulls" videos

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
eniwetok
Posts: 33
Joined: Wed Oct 28, 2009 5:28 am

HB "dulls" videos

Post by eniwetok »

Description of problem or question:
I use HB to compress videos shot on my Canon camera. But when comparing screenshots the original always seems more vivid than the compressed version. Note I'm using custom settings... usually 3000k h264 for 720p videos at the "very slow" encoding setting.



Steps to reproduce the problem (If Applicable):
Always happens.



HandBrake version (e.g., 1.0.0):
1.0.7 64bit



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



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

Code: Select all

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.17134.0 - 64bit
CPU: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz
Ram: 8108 MB, 
GPU Information:
  Intel(R) HD Graphics 4600 - 20.19.15.4531
Screen: 1920x1080
Temp Dir: C:\Users\\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0

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


# Starting Encode ...

[13:43:14] hb_init: starting libhb thread
[13:43:15] 1 job(s) to process
[13:43:15] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 128,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "File": "C:\\Users\\\\Desktop\\_ENCODE\\_2018-05-18 CANADA 3\\2018-05-18b TO LANSDOWNE PARK 3k.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "720",
          "width": "1280"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\\\Desktop\\_ENCODE\\_2018-05-18 CANADA 3\\2018-05-18b TO LANSDOWNE PARK.MOV"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "Bitrate": 3000,
    "TwoPass": true,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryslow",
    "Profile": "high",
    "Tune": "grain",
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[13:43:15] CPU: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz
[13:43:15]  - Intel microarchitecture Haswell
[13:43:15]  - logical processor count: 4
[13:43:15] Intel Quick Sync Video support: yes
[13:43:15]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[13:43:15]  - H.264 encoder: yes
[13:43:15]     - preferred implementation: hardware (any)
[13:43:15]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[13:43:15]  - H.265 encoder: no
[13:43:15] hb_scan: path=C:\Users\\Desktop\_ENCODE\_2018-05-18 CANADA 3\2018-05-18b TO LANSDOWNE PARK.MOV, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image C:\Users\\Desktop\_ENCODE\_2018-05-18 CANADA 3\2018-05-18b TO LANSDOWNE PARK.MOV
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[13:43:15] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[13:43:15] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\\Desktop\_ENCODE\_2018-05-18 CANADA 3\2018-05-18b TO LANSDOWNE PARK.MOV':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf53.24.2
  Duration: 00:04:48.54, start: 0.000000, bitrate: 24689 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) [avc1 / 0x31637661]
      yuvj420p, pc, smpte170m/bt709/bt709
      1280x720, 23151 kb/s
      29.97 fps, 30k tbn (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : DataHandler
    Stream #0:1(eng): Audio: pcm_s16le [sowt / 0x74776F73]
      48000 Hz, 2 channels, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : DataHandler
[13:43:15] scan: decoding previews for title 1
[13:43:15] scan: audio 0x1: pcm_s16le, rate=48000Hz, bitrate=1536000 English (pcm_s16le) (2.0 ch)
[13:43:16] scan: 10 previews, 1280x720, 30.029 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[13:43:16] scan: supported video decoders: avcodec qsv
[13:43:16] libhb: scan thread found 1 valid title(s)
[13:43:16] Skipping subtitle scan.  No suitable subtitle tracks.
[13:43:16] starting job
[13:43:16] work: track 1, dithering not supported by codec
[13:43:16] work: only 1 chapter, disabling chapter markers
[13:43:16] job configuration:
[13:43:16]  * source
[13:43:16]    + C:\Users\\Desktop\_ENCODE\_2018-05-18 CANADA 3\2018-05-18b TO LANSDOWNE PARK.MOV
[13:43:16]    + title 1, chapter(s) 1 to 1
[13:43:16]    + container: mov,mp4,m4a,3gp,3g2,mj2
[13:43:16]    + data rate: 24689 kbps
[13:43:16]  * destination
[13:43:16]    + C:\Users\\Desktop\_ENCODE\_2018-05-18 CANADA 3\2018-05-18b TO LANSDOWNE PARK 3k.mp4
[13:43:16]    + container: MPEG-4 (libavformat)
[13:43:16]  * video track
[13:43:16]    + decoder: h264
[13:43:16]      + bitrate 23151 kbps
[13:43:16]    + filters
[13:43:16]      + Framerate Shaper (mode=1)
[13:43:16]        + frame rate: 30.029 fps -> constant 30.029 fps
[13:43:16]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[13:43:16]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[13:43:16]    + Output geometry
[13:43:16]      + storage dimensions: 1280 x 720
[13:43:16]      + pixel aspect ratio: 1 : 1
[13:43:16]      + display dimensions: 1280 x 720
[13:43:16]    + encoder: H.264 (libx264)
[13:43:16]      + preset:  veryslow
[13:43:16]      + tune:    grain
[13:43:16]      + profile: high
[13:43:16]      + level:   4.0
[13:43:16]      + bitrate: 3000 kbps, pass: 1
[13:43:16]  * audio track 1
[13:43:16]    + decoder: English (pcm_s16le) (2.0 ch) (track 1, id 0x1)
[13:43:16]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[13:43:16]    + mixdown: Stereo
[13:43:16]    + encoder: AAC (libavcodec)
[13:43:16]      + bitrate: 128 kbps, samplerate: 48000 Hz
[13:43:16] sync: expecting 8664 video frames
[13:43:16] encx264: min-keyint: 30, keyint: 300
[13:43:16] encx264: encoding at average bitrate 3000
[13:43:16] encx264: unparsed options: level=4.0:me=umh:deadzone-inter=6:analyse=all:subme=10:ref=9:bframes=8:vbv-maxrate=25000:b-adapt=2:rc-lookahead=60:direct=auto:vbv-bufsize=31250:aq-strength=0.5:deblock=-2,-2:merange=24:trellis=2:dct-decimate=0:deadzone-intra=6:psy-rd=1,0.25:ipratio=1.1:qcomp=0.8
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 4.0
[13:43:16] sync: first pts video is 0
[13:43:16] sync: "Chapter 1" (1) at frame 1 time 0
[13:43:16] sync: first pts audio 0x1 is 0
[13:55:07] reader: done. 1 scr changes
[13:55:20] work: average encoding speed for job is 12.093587 fps
[13:55:20] vfr: 8662 frames output, 0 dropped and 16 duped for CFR/PFR
[13:55:20] vfr: lost time: 51 (0 frames)
[13:55:20] vfr: gained time: 51 (68 frames) (0 not accounted for)
[13:55:20] pcm_s16le-decoder done: 13839 frames, 0 decoder errors
[13:55:20] h264-decoder done: 8663 frames, 0 decoder errors
[13:55:20] sync: got 8663 frames, 8664 expected
[13:55:20] sync: framerate min 29.970 fps, max 30000.000 fps, avg 30.030 fps
x264 [info]: frame I:39    Avg QP:30.72  size: 49987
x264 [info]: frame P:2190  Avg QP:31.93  size: 23977
x264 [info]: frame B:6433  Avg QP:33.53  size:  7725
x264 [info]: consecutive B-frames:  2.3%  2.4% 11.0% 46.5% 21.0% 14.7%  1.5%  0.4%  0.2%
x264 [info]: mb I  I16..4: 23.4% 60.5% 16.2%
x264 [info]: mb P  I16..4:  7.9% 11.8%  1.2%  P16..4: 42.9% 13.1%  8.9%  0.4%  0.1%    skip:13.7%
x264 [info]: mb B  I16..4:  0.5%  0.9%  0.1%  B16..8: 42.1%  5.9%  1.3%  direct: 3.7%  skip:45.5%  L0:41.3% L1:44.2% BI:14.5%
x264 [info]: final ratefactor: 29.83
x264 [info]: 8x8 transform intra:57.0% inter:56.5%
x264 [info]: direct mvs  spatial:99.9% temporal:0.1%
x264 [info]: coded y,uvDC,uvAC intra: 33.2% 31.7% 6.3% inter: 16.0% 8.9% 0.8%
x264 [info]: i16 v,h,dc,p: 29% 34% 21% 16%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 12% 39%  5%  6%  6%  8%  6%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 18% 11%  6%  9%  9% 11%  8% 15%
x264 [info]: i8c dc,h,v,p: 62% 24% 11%  4%
x264 [info]: Weighted P-Frames: Y:16.8% UV:6.9%
x264 [info]: ref P L0: 60.8% 16.4% 12.6%  3.0%  2.4%  1.5%  1.5%  0.8%  0.9%  0.1%  0.0%
x264 [info]: ref B L0: 91.4%  4.6%  1.8%  0.8%  0.5%  0.4%  0.3%  0.2%
x264 [info]: ref B L1: 98.4%  1.6%
x264 [info]: kb/s:2888.69
[13:55:20] starting job
[13:55:20] work: track 1, dithering not supported by codec
[13:55:20] work: only 1 chapter, disabling chapter markers
[13:55:20] job configuration:
[13:55:20]  * source
[13:55:20]    + C:\Users\\Desktop\_ENCODE\_2018-05-18 CANADA 3\2018-05-18b TO LANSDOWNE PARK.MOV
[13:55:20]    + title 1, chapter(s) 1 to 1
[13:55:20]    + container: mov,mp4,m4a,3gp,3g2,mj2
[13:55:20]    + data rate: 24689 kbps
[13:55:20]  * destination
[13:55:20]    + C:\Users\\Desktop\_ENCODE\_2018-05-18 CANADA 3\2018-05-18b TO LANSDOWNE PARK 3k.mp4
[13:55:20]    + container: MPEG-4 (libavformat)
[13:55:20]  * video track
[13:55:20]    + decoder: h264
[13:55:20]      + bitrate 23151 kbps
[13:55:20]    + filters
[13:55:20]      + Framerate Shaper (mode=1)
[13:55:20]        + frame rate: 30.029 fps -> constant 30.029 fps
[13:55:20]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[13:55:20]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[13:55:20]    + Output geometry
[13:55:20]      + storage dimensions: 1280 x 720
[13:55:20]      + pixel aspect ratio: 1 : 1
[13:55:20]      + display dimensions: 1280 x 720
[13:55:20]    + encoder: H.264 (libx264)
[13:55:20]      + preset:  veryslow
[13:55:20]      + tune:    grain
[13:55:20]      + profile: high
[13:55:20]      + level:   4.0
[13:55:20]      + bitrate: 3000 kbps, pass: 2
[13:55:20]  * audio track 1
[13:55:20]    + decoder: English (pcm_s16le) (2.0 ch) (track 1, id 0x1)
[13:55:20]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[13:55:20]    + mixdown: Stereo
[13:55:20]    + encoder: AAC (libavcodec)
[13:55:20]      + bitrate: 128 kbps, samplerate: 48000 Hz
[13:55:20] sync: expecting 8663 video frames
[13:55:20] encx264: min-keyint: 30, keyint: 300
[13:55:20] encx264: encoding at average bitrate 3000
[13:55:20] encx264: unparsed options: level=4.0:me=umh:deadzone-inter=6:analyse=all:subme=10:ref=9:bframes=8:vbv-maxrate=25000:b-adapt=2:rc-lookahead=60:direct=auto:vbv-bufsize=31250:aq-strength=0.5:deblock=-2,-2:merange=24:trellis=2:dct-decimate=0:deadzone-intra=6:psy-rd=1,0.25:ipratio=1.1:qcomp=0.8
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 4.0
[13:55:21] sync: first pts video is 0
[13:55:21] sync: "Chapter 1" (1) at frame 1 time 0
[13:55:21] sync: first pts audio 0x1 is 0
[14:06:44] reader: done. 1 scr changes
[14:06:53] work: average encoding speed for job is 12.580270 fps
[14:06:53] vfr: 8662 frames output, 0 dropped and 16 duped for CFR/PFR
[14:06:53] vfr: lost time: 51 (0 frames)
[14:06:53] vfr: gained time: 51 (68 frames) (0 not accounted for)
[14:06:53] pcm_s16le-decoder done: 13839 frames, 0 decoder errors
[14:06:53] h264-decoder done: 8663 frames, 0 decoder errors
[14:06:53] sync: got 8663 frames, 8663 expected
[14:06:53] sync: framerate min 29.970 fps, max 30000.000 fps, avg 30.030 fps
x264 [info]: frame I:39    Avg QP:30.65  size: 48816
x264 [info]: frame P:2190  Avg QP:32.04  size: 23965
x264 [info]: frame B:6433  Avg QP:33.86  size:  8211
x264 [info]: consecutive B-frames:  2.3%  2.4% 11.0% 46.5% 21.0% 14.7%  1.5%  0.4%  0.2%
x264 [info]: mb I  I16..4: 24.1% 60.1% 15.8%
x264 [info]: mb P  I16..4:  7.5% 11.9%  1.5%  P16..4: 41.7% 12.9%  8.9%  0.4%  0.0%    skip:15.4%
x264 [info]: mb B  I16..4:  0.4%  0.8%  0.3%  B16..8: 41.8%  5.8%  1.4%  direct: 3.1%  skip:46.4%  L0:41.1% L1:44.4% BI:14.5%
x264 [info]: 8x8 transform intra:57.1% inter:56.3%
x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 39.1% 34.1% 8.7% inter: 15.3% 7.7% 0.7%
x264 [info]: i16 v,h,dc,p: 29% 33% 22% 16%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9% 11% 39%  5%  7%  6%  8%  6% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 15% 11%  7% 10%  9% 12%  9% 17%
x264 [info]: i8c dc,h,v,p: 61% 24% 10%  5%
x264 [info]: Weighted P-Frames: Y:17.0% UV:6.9%
x264 [info]: ref P L0: 64.3% 13.6% 12.4%  3.3%  2.3%  1.6%  1.3%  0.7%  0.6%  0.1%  0.0%
x264 [info]: ref B L0: 92.2%  4.3%  1.7%  0.7%  0.5%  0.4%  0.2%  0.1%
x264 [info]: ref B L1: 98.5%  1.5%
x264 [info]: kb/s:2973.35
[14:06:53] mux: track 0, 8662 frames, 107208343 bytes, 2972.28 kbps, fifo 2048
[14:06:53] mux: track 1, 13526 frames, 4666906 bytes, 129.39 kbps, fifo 4096
[14:06:53] libhb: work result = 0

# Encode Completed ...

.
Deleted User 13735

Re: HB "dulls" videos

Post by Deleted User 13735 »

Thanks for your description and logs. Will you post screenshots or original examples please?
"Seems more vivid" doesn't give much of a clue...
eniwetok
Posts: 33
Joined: Wed Oct 28, 2009 5:28 am

Re: HB "dulls" videos

Post by eniwetok »

I wanted to post some screen shots but didn't see that option.
Deleted User 13735

Re: HB "dulls" videos

Post by Deleted User 13735 »

Well, the option is there for me. Good luck.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: HB "dulls" videos

Post by rollin_eng »

You could always post them somewhere else then link to them here.
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: HB "dulls" videos

Post by Woodstock »

Actually, no you generally can't link to external images as images here, for security reasons. "The powers that be" have posted messages about that several times in the last month or two. You can put a clickable link in for them.
eniwetok
Posts: 33
Joined: Wed Oct 28, 2009 5:28 am

Re: HB "dulls" videos

Post by eniwetok »

Here are some screen shots

Original https://ibb.co/jfnqrG2

encoded https://ibb.co/yhWTTww

Note the original is a bit brighter... it's as if HB dulls the colors a bit. It's not that noticeable unless one compares the two.

Any explanation... or suggestions, would be appreciated.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: HB "dulls" videos

Post by rollin_eng »

Make sure to try the latest version orb a nightly build.
Deleted User 11865

Re: HB "dulls" videos

Post by Deleted User 11865 »

eniwetok wrote: Thu Jul 25, 2019 6:25 pm

Code: Select all

[…]

[13:43:16]    + encoder: H.264 (libx264)
[13:43:16]      + preset:  veryslow
[13:43:16]      + tune:    grain
[13:43:16]      + profile: high
[13:43:16]      + level:   4.0
[13:43:16]      + bitrate: 3000 kbps, pass: 1

[…]

x264 [info]: final ratefactor: 29.83

[…]
3,000 Kbps is (way) insufficient for this video. A CRF equivalent of almost 30 is nowhere near transparent to the source.
Deleted User 13735

Re: HB "dulls" videos

Post by Deleted User 13735 »

3,000 Kbps is (way) insufficient for this video.
In addition to such a low rendered bitrate and your source being top-shelf AVCHD 25, It is also flagged as VUI full-range (yuvj420p), causing Handbrake to produce flatter output levels. If your video was shot a little conservatively, it would cause the result to look "duller" and not as bright as your source, that also being my observation.

Next time out, set your camera exposure 1/3 stop brighter, or until it just starts to show zebras in the viewfinder highlights. See how that looks and make your own decisions accordingly.

I've got some nifty analysis tools and I'll be glad to look at your camera source levels for "best fit" if you'll upload 60 seconds to Dropbox or Drive.

I think many people will agree that RF 20-22 should look a lot better for your 720p footage than 3,000 Kbps CBR.
Deleted User 11865

Re: HB "dulls" videos

Post by Deleted User 11865 »

musicvid wrote: Sat Jul 27, 2019 12:15 amI think many people will agree that RF 20-22 should look a lot better for your 720p footage than 3,000 Kbps CBR.
s/CBR/ABR -- not quite as restrictive.
eniwetok
Posts: 33
Joined: Wed Oct 28, 2009 5:28 am

Re: HB "dulls" videos

Post by eniwetok »

musicvid wrote: Sat Jul 27, 2019 12:15 am
I think many people will agree that RF 20-22 should look a lot better for your 720p footage than 3,000 Kbps CBR.
RF20 produces a file the same size as the original.

All these years I thought 2 pass CBR produced the best quality for any given average bitrate. That's not true?
Deleted User 11865

Re: HB "dulls" videos

Post by Deleted User 11865 »

eniwetok wrote: Sat Jul 27, 2019 2:01 amAll these years I thought 2 pass CBR produced the best quality for any given average bitrate. That's not true?
Yes, but for this particular video you won't get good results at 3,000 Kbps (basically the same results as CRF 30), unless maybe you're willing to denoise it a bit (and/or drop the grain tune).
Deleted User 13735

Re: HB "dulls" videos

Post by Deleted User 13735 »

Canon AVCHD really "loads" the lower bitrates so as to prevent artifacting and shadow noise.
With CRF you can safely unload the low-demand areas, in addition to maintaining motion complexity.
If CRF 20 give the same size, try 22 and see if the quality pleases you. For 720p and x264, I get really nice delivery at around 9-12 Mbps, usually.
Post Reply