Washed out colours after encode

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
sharifahonesimos
Posts: 4
Joined: Sun Jan 12, 2020 10:16 am

Washed out colours after encode

Post by sharifahonesimos »

Description of problem or question:
HandBrake seems to be washing out the colours of my VHS capture, I recorded the VHS capture in a lossless format. Before encode, after encode

Steps to reproduce the problem (If Applicable):
Encode the video with the default fast 480p preset

HandBrake version (e.g., 1.0.0):
HandBrake 1.3.1

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

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

Code: Select all

HandBrake 1.3.1 (2020010400)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
Ram: 8067 MB, 
GPU Information:
  Intel(R) HD Graphics 4600 - 20.19.15.5070
  NVIDIA GeForce GTX 970 - 26.21.14.4166
Screen: 1920x1080
Temp Dir: C:\Users\sharifahonesimos\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\sharifahonesimos\AppData\Roaming\HandBrake

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


# Starting Encode ...

[10:20:55] base preset: Fast 480p30 (Modified)
[10:20:55] hb_init: starting libhb thread
[10:20:55] Starting work at: Sun Jan 12 10:20:55 2020
[10:20:55] 1 job(s) to process
[10:20:55] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "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": "E:\\Videos\\handbrake\\video(1).mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "10",
          "crop-right": "8",
          "crop-top": "2",
          "height": "478",
          "width": "702"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "E:\\Videos\\avidemux\\video.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "3.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slow",
    "Profile": "main",
    "Quality": 20.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[10:20:55] CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
[10:20:55]  - Intel microarchitecture Haswell
[10:20:55]  - logical processor count: 4
[10:20:55] Intel Quick Sync Video support: yes
[10:20:55]  - Intel Media SDK hardware: API 1.20 (minimum: 1.3)
[10:20:55]  - H.264 encoder: yes
[10:20:55]     - preferred implementation: hardware (any) via D3D11
[10:20:55]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[10:20:55]  - H.265 encoder: no
[10:20:55] hb_scan: path=E:\Videos\avidemux\video.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image E:\Videos\avidemux\video.mkv
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(E:\Videos\avidemux\video.mkv\) failed
[10:20:55] 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
[10:20:55] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\Videos\avidemux\video.mkv':
  Metadata:
    ENCODER         : Lavf58.20.100
  Duration: 00:00:50.34, start: 0.000000, bitrate: 11478 kb/s
    Stream #0:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 720x480, SAR 1:1 DAR 3:2, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      DURATION        : 00:00:50.319000000
    Stream #0:1: Audio: pcm_s16le, 96000 Hz, 2 channels, s16, 3072 kb/s (default)
    Metadata:
      DURATION        : 00:00:50.335000000
[10:20:55] scan: decoding previews for title 1
[10:20:55] scan: audio 0x1: pcm_s16le, rate=96000Hz, bitrate=3072000 Unknown (pcm_s16le) (2.0 ch) (3072 kbps)
[10:20:55] scan: 10 previews, 720x480, 25.000 fps, autocrop = 2/0/10/8, aspect 1.50:1, PAR 1:1
[10:20:55] libhb: scan thread found 1 valid title(s)
[10:20:55] Skipping subtitle scan.  No suitable subtitle tracks.
[10:20:55] Starting Task: Encoding Pass
[10:20:55] Skipping vfr filter
[10:20:55] work: sanitizing track 1 unsupported samplerate 96000 Hz to 48 kHz
[10:20:55] work: only 1 chapter, disabling chapter markers
[10:20:55] job configuration:
[10:20:55]  * source
[10:20:55]    + E:\Videos\avidemux\video.mkv
[10:20:55]    + title 1, chapter(s) 1 to 1
[10:20:55]    + container: matroska,webm
[10:20:55]    + data rate: 11478 kbps
[10:20:55]  * destination
[10:20:55]    + E:\Videos\handbrake\video(1).mp4
[10:20:55]    + container: MPEG-4 (libavformat)
[10:20:55]      + align initial A/V stream timestamps
[10:20:55]  * video track
[10:20:55]    + decoder: mjpeg
[10:20:55]    + filters
[10:20:55]      + Crop and Scale (width=702:height=478:crop-top=2:crop-bottom=0:crop-left=10:crop-right=8)
[10:20:55]        + source: 720 * 480, crop (2/0/10/8): 702 * 478, scale: 702 * 478
[10:20:55]    + Output geometry
[10:20:55]      + storage dimensions: 702 x 478
[10:20:55]      + pixel aspect ratio: 1 : 1
[10:20:55]      + display dimensions: 702 x 478
[10:20:55]    + encoder: H.264 (libx264)
[10:20:55]      + preset:  slow
[10:20:55]      + profile: main
[10:20:55]      + level:   3.1
[10:20:55]      + quality: 20.00 (RF)
[10:20:55]      + color profile: 5-1-5
[10:20:55]  * audio track 1
[10:20:55]    + decoder: Unknown (pcm_s16le) (2.0 ch) (3072 kbps) (track 1, id 0x1)
[10:20:55]      + bitrate: 3072 kbps, samplerate: 96000 Hz
[10:20:55]    + mixdown: Stereo
[10:20:55]    + dither: none
[10:20:55]    + encoder: AAC (libavcodec)
[10:20:55]      + bitrate: 160 kbps, samplerate: 48000 Hz
[10:20:55] sync: expecting 1258 video frames
[10:20:55] encx264: encoding at constant RF 20.000000
[10:20:55] encx264: unparsed options: level=3.1:ref=5:direct=auto:8x8dct=0:subme=8:trellis=2:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=50
x264 [info]: using SAR=1/1
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
[10:20:55] sync: first pts video is 0
[10:20:55] sync: "Chapter 1" (1) at frame 1 time 0
[10:20:55] sync: first pts audio 0x1 is 0
[10:21:18] reader: done. 1 scr changes
[10:21:21] work: average encoding speed for job is 51.765011 fps
[10:21:21] pcm_s16le-decoder done: 2417 frames, 0 decoder errors
[10:21:21] mjpeg-decoder done: 1258 frames, 0 decoder errors
[10:21:21] sync: got 1258 frames, 1258 expected
[10:21:21] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:11    Avg QP:19.84  size: 27156
x264 [info]: frame P:377   Avg QP:22.91  size: 19246
x264 [info]: frame B:870   Avg QP:26.01  size:  7168
x264 [info]: consecutive B-frames:  5.6%  4.9%  4.5% 84.9%
x264 [info]: mb I  I16..4: 31.5%  0.0% 68.5%
x264 [info]: mb P  I16..4:  8.6%  0.0% 11.9%  P16..4: 40.6% 28.4%  9.7%  0.0%  0.0%    skip: 0.7%
x264 [info]: mb B  I16..4:  1.2%  0.0%  0.6%  B16..8: 45.3% 13.7%  2.6%  direct:19.4%  skip:17.1%  L0:41.9% L1:38.4% BI:19.7%
x264 [info]: direct mvs  spatial:99.5% temporal:0.5%
x264 [info]: coded y,uvDC,uvAC intra: 67.2% 77.3% 34.7% inter: 41.1% 64.5% 3.8%
x264 [info]: i16 v,h,dc,p: 42% 34%  6% 18%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 21%  6%  5%  9%  8% 11%  7% 10%
x264 [info]: i8c dc,h,v,p: 28% 36% 20% 16%
x264 [info]: Weighted P-Frames: Y:21.8% UV:11.9%
x264 [info]: ref P L0: 45.7% 16.2% 20.7%  8.5%  7.3%  1.6%  0.0%
x264 [info]: ref B L0: 74.0% 18.9%  5.1%  1.9%
x264 [info]: ref B L1: 95.4%  4.6%
x264 [info]: kb/s:2192.48
[10:21:21] mux: track 0, 1258 frames, 13790351 bytes, 2190.68 kbps, fifo 1024
[10:21:21] mux: track 1, 2360 frames, 1009816 bytes, 160.42 kbps, fifo 2048
[10:21:21] Finished work at: Sun Jan 12 10:21:21 2020
[10:21:21] libhb: work result = 0

# Encode Completed ...


User avatar
Ritsuka
HandBrake Team
Posts: 1152
Joined: Fri Jan 12, 2007 11:29 am

Re: Washed out colours after encode

Post by Ritsuka »

sharifahonesimos
Posts: 4
Joined: Sun Jan 12, 2020 10:16 am

Re: Washed out colours after encode

Post by sharifahonesimos »

Ritsuka wrote: Sun Jan 12, 2020 11:18 am Same issue as https://github.com/HandBrake/HandBrake/issues/2561
Hey, thanks for the info! Is this something I can use a workaround for or will I just have to wait for the issue to be resolved by the developers?
sharifahonesimos
Posts: 4
Joined: Sun Jan 12, 2020 10:16 am

Re: Washed out colours after encode

Post by sharifahonesimos »

sharifahonesimos wrote: Sun Jan 12, 2020 11:41 am
Ritsuka wrote: Sun Jan 12, 2020 11:18 am Same issue as https://github.com/HandBrake/HandBrake/issues/2561
Hey, thanks for the info! Is this something I can use a workaround for or will I just have to wait for the issue to be resolved by the developers?
I've fixed the issue, it only gets washed out when the video is cropped, so I just disabled the cropping feature and it looks even better than the original now!
User avatar
s55
HandBrake Team
Posts: 9786
Joined: Sun Dec 24, 2006 1:05 pm

Re: Washed out colours after encode

Post by s55 »

so I just disabled the cropping feature and it looks even better than the original now!
Welcome to the Placebo Effect!

Encoding is a lossy process. If there is an imperceptible difference then that's probably a decent encode. Might still be some room for some filesize / encode optimisation but if your happy, great.
sharifahonesimos
Posts: 4
Joined: Sun Jan 12, 2020 10:16 am

Re: Washed out colours after encode

Post by sharifahonesimos »

s55 wrote: Sun Jan 12, 2020 12:19 pm
so I just disabled the cropping feature and it looks even better than the original now!
Welcome to the Placebo Effect!

Encoding is a lossy process. If there is an imperceptible difference then that's probably a decent encode. Might still be some room for some filesize / encode optimisation but if your happy, great.
Don't get me wrong quality was lost however the colour reproduction is more vibrant and the encoding process also removed a lot of the blocking and grain which makes it slightly more pleasant to watch. Before encoding, after encoding. Sorry for the pixelation, I'm just a bit too cautious
Post Reply