Color saturation changes during playback

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
DaveF
Posts: 19
Joined: Wed Jul 11, 2007 1:59 am

Color saturation changes during playback

Post by DaveF »

I'm using Handbrake for the first time in several years. I transcoded an MKV ripped from one my Blu-ray Discs. During playback, scenes begin somewhat desaturated, missing some red. After a second or two, the color shifts and they're properly saturated. Sometimes, it looks like a like green band is across the screen before the colors pops in fully. This change happens every time the scene changes substantially, which is every minute or two in an action show. I tested playback steaming to an AppleTV (4th Gen) and then directly on the media pc. It was happened on both devices.

The original MKV does not have this behavior: colors are stable.
The basics of the encode are:

Apple 1080p60 (preset) + Intel QSV manually enabled (no other changes)
Handbrake 1.0.2 64bit
Windows 10, Core i5 6500

Any idea what causes this behavior and how to fix it or prevent it in encodes?
DaveF
Posts: 19
Joined: Wed Jul 11, 2007 1:59 am

Re: Color saturation changes during playback

Post by DaveF »

Here is the log file

Code: Select all

HandBrake 1.0.2 (2017012200) - 64bit
OS: Microsoft Windows NT 10.0.14393.0 - 64bit
CPU: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Ram: 7861 MB, 
GPU Information:
  Intel(R) HD Graphics 530 - 21.20.16.4542
Screen: 1920x1080
Temp Dir: C:\Users\David\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\David\AppData\Roaming\HandBrake Team\HandBrake\1.0.2.0

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


# Starting Encode ...

[17:56:54] hb_init: starting libhb thread
[17:56:54] 1 job(s) to process
[17:56:54] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 6,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": 1073743872,
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      }
    ],
    "ChapterMarkers": true,
    "File": "C:\\Users\\David\\Videos\\Scratch\\Firefly - S01e11 - Serenity - 1080p60.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "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": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 21
    },
    "Title": 1,
    "Path": "Z:\\TV\\Disc\\Firefly\\Season 1\\Firefly - s01e11 - Serenity.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 256,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "auto",
    "Quality": 22.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[17:56:54] CPU: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
[17:56:54]  - Intel microarchitecture Skylake
[17:56:54]  - logical processor count: 4
[17:56:54] Intel Quick Sync Video support: yes
[17:56:54]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[17:56:54]  - H.264 encoder: yes
[17:56:54]     - preferred implementation: hardware (any)
[17:56:54]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[17:56:54]  - H.265 encoder: yes
[17:56:54]     - preferred implementation: hardware (any)
[17:56:54]     - capabilities (hardware):  bpyramid vsinfo opt1
[17:56:54] hb_scan: path=Z:\TV\Disc\Firefly\Season 1\Firefly - s01e11 - Serenity.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image Z:\TV\Disc\Firefly\Season 1\Firefly - s01e11 - Serenity.mkv
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
[17:56:54] 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
[17:56:54] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Z:\TV\Disc\Firefly\Season 1\Firefly - s01e11 - Serenity.mkv':
  Metadata:
    title           : FIREFLY: DISC 1
  Duration: 01:26:42.19, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 306.514542
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 306.514542, end 658.783125
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 658.783125, end 710.710000
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 710.710000, end 1006.797458
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1006.797458, end 1326.825500
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1326.825500, end 1657.989667
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1657.989667, end 2060.099708
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2060.099708, end 2164.495667
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2164.495667, end 2532.488292
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2532.488292, end 2863.902708
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 2863.902708, end 3026.523500
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3026.523500, end 3180.302125
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 3180.302125, end 3410.990917
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 3410.990917, end 3535.657125
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 3535.657125, end 3699.987958
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 3699.987958, end 3866.863000
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 3866.863000, end 4402.940208
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 4402.940208, end 4839.668167
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 4839.668167, end 5148.476667
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 5148.476667, end 5201.196000
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 5201.196000, end 5202.197000
    Metadata:
      title           : Chapter 21
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn
    Metadata:
      BPS-eng         : 21450553
      DURATION-eng    : 01:26:42.197000000
      NUMBER_OF_FRAMES-eng: 124728
      NUMBER_OF_BYTES-eng: 13948750950
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-02-12 03:46:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS)
      48000 Hz, 5.1, fltp, 1536 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:26:42.197333333
      NUMBER_OF_FRAMES-eng: 487706
      NUMBER_OF_BYTES-eng: 981264472
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-02-12 03:46:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 65147
      DURATION-eng    : 01:26:35.544520833
      NUMBER_OF_FRAMES-eng: 2329
      NUMBER_OF_BYTES-eng: 42309522
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-02-12 03:46:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[17:56:54] scan: decoding previews for title 1
[17:56:54] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[17:57:02] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[17:57:02] scan: supported video decoders: avcodec qsv
[17:57:02] libhb: scan thread found 1 valid title(s)
[17:57:02] starting job
[17:57:02] decomb filter thread started for segment 0
[17:57:02] decomb filter thread started for segment 1
[17:57:02] mask filter thread started for segment 3
[17:57:02] mask erode thread started for segment 2
[17:57:02] decomb check thread started for segment 0
[17:57:02] yadif thread started for segment 0
[17:57:02] decomb check thread started for segment 1
[17:57:02] job configuration:
[17:57:02]  * source
[17:57:02]    + Z:\TV\Disc\Firefly\Season 1\Firefly - s01e11 - Serenity.mkv
[17:57:02]    + title 1, chapter(s) 1 to 21
[17:57:02]    + container: matroska,webm
[17:57:02]  * destination
[17:57:02]    + C:\Users\David\Videos\Scratch\Firefly - S01e11 - Serenity - 1080p60.m4v
[17:57:02]    + container: MPEG-4 (libavformat)
[17:57:02]      + chapter markers
[17:57:02]  * video track
[17:57:02]    + decoder: h264_qsv
[17:57:02]    + filters
[17:57:02] decomb check thread started for segment 3
[17:57:02]      + 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)
[17:57:02]      + Decomb (mode=39)
[17:57:02]      + Framerate Shaper (mode=1)
[17:57:02] mask filter thread started for segment 0
[17:57:02]        + frame rate: 23.976 fps -> constant 23.976 fps
[17:57:02]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[17:57:02]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[17:57:02]    + Output geometry
[17:57:02]      + storage dimensions: 1920 x 1080
[17:57:02]      + pixel aspect ratio: 1 : 1
[17:57:02]      + display dimensions: 1920 x 1080
[17:57:02]  * Foreign Audio Search: Render/Burn-in, Forced Only
[17:57:02]    + subtitle, English (track 2, id 0x2) Picture [PGS]
[17:57:02] mask filter thread started for segment 1
[17:57:02] mask filter thread started for segment 2
[17:57:02] decomb filter thread started for segment 3
[17:57:02] mask erode thread started for segment 0
[17:57:02] mask erode thread started for segment 1
[17:57:02] decomb filter thread started for segment 2
[17:57:02] mask erode thread started for segment 3
[17:57:02] mask dilate thread started for segment 0
[17:57:02] mask dilate thread started for segment 1
[17:57:02] mask dilate thread started for segment 2
[17:57:02] mask dilate thread started for segment 3
[17:57:02] decomb check thread started for segment 2
[17:57:02] yadif thread started for segment 1
[17:57:02] yadif thread started for segment 2
[17:57:02] yadif thread started for segment 3
[17:57:02] sync: expecting 124728 video frames
[17:59:19] reader: done. 1 scr changes
[17:59:19] work: average encoding speed for job is 0.000000 fps
[17:59:19] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[17:59:19] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[17:59:19] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[17:59:19] vfr: lost time: 0 (0 frames)
[17:59:19] vfr: gained time: 0 (0 frames) (0 not accounted for)
[17:59:19] h264_qsv-decoder done: 0 frames, 0 decoder errors
[17:59:19] sync: got 0 frames, 124728 expected
[17:59:19] Subtitle track 2 (id 0x2) 'English': 1166 hits (0 forced)
[17:59:19] No candidate detected during subtitle scan
[17:59:19] starting job
[17:59:19] decomb filter thread started for segment 0
[17:59:19] decomb check thread started for segment 0
[17:59:19] decomb filter thread started for segment 2
[17:59:19] decomb filter thread started for segment 3
[17:59:19] decomb check thread started for segment 1
[17:59:19] decomb filter thread started for segment 1
[17:59:19] decomb check thread started for segment 2
[17:59:19] decomb check thread started for segment 3
[17:59:19] mask filter thread started for segment 1
[17:59:19] mask filter thread started for segment 0
[17:59:19] mask filter thread started for segment 2
[17:59:19] mask filter thread started for segment 3
[17:59:19] Passthru requested and input codec is not the same as output codec for track 2, dropping track
[17:59:19] work: track 1, dithering not supported by codec
[17:59:19] mask erode thread started for segment 0
[17:59:19] job configuration:
[17:59:19]  * source
[17:59:19] mask erode thread started for segment 1
[17:59:19]    + Z:\TV\Disc\Firefly\Season 1\Firefly - s01e11 - Serenity.mkv
[17:59:19]    + title 1, chapter(s) 1 to 21
[17:59:19]    + container: matroska,webm
[17:59:19]  * destination
[17:59:19]    + C:\Users\David\Videos\Scratch\Firefly - S01e11 - Serenity - 1080p60.m4v
[17:59:19]    + container: MPEG-4 (libavformat)
[17:59:19]      + chapter markers
[17:59:19]  * video track
[17:59:19]    + decoder: h264_qsv
[17:59:19]    + filters
[17:59:19] mask erode thread started for segment 2
[17:59:19]      + 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)
[17:59:19] mask erode thread started for segment 3
[17:59:19]      + Decomb (mode=39)
[17:59:19]      + Framerate Shaper (mode=1)
[17:59:19] mask dilate thread started for segment 0
[17:59:19]        + frame rate: 23.976 fps -> constant 23.976 fps
[17:59:19]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[17:59:19] mask dilate thread started for segment 1
[17:59:19]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[17:59:19]    + Output geometry
[17:59:19]      + storage dimensions: 1920 x 1080
[17:59:19] mask dilate thread started for segment 2
[17:59:19]      + pixel aspect ratio: 1 : 1
[17:59:19]      + display dimensions: 1920 x 1080
[17:59:19]    + encoder: H.264 (Intel Media SDK)
[17:59:19]      + preset:  balanced
[17:59:19]      + profile: auto
[17:59:19] mask dilate thread started for segment 3
[17:59:19]      + level:   auto
[17:59:19] yadif thread started for segment 0
[17:59:19]      + quality: 22.00 (ICQ)
[17:59:19]  * audio track 1
[17:59:19]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[17:59:19]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[17:59:19]    + mixdown: Dolby Pro Logic II
[17:59:19] yadif thread started for segment 1
[17:59:19]    + encoder: AAC (libavcodec)
[17:59:19]      + bitrate: 160 kbps, samplerate: 48000 Hz
[17:59:19] yadif thread started for segment 2
[17:59:19] yadif thread started for segment 3
[17:59:19] sync: expecting 124728 video frames
[17:59:20] encqsvInit: using encode-only path
[17:59:20] encqsvInit: H.264/AVC High profile @ level 4.0
[17:59:20] encqsvInit: TargetUsage 4 AsyncDepth 3
[17:59:20] encqsvInit: GopRefDist 3 GopPicSize 24 NumRefFrame 1
[17:59:20] encqsvInit: BFramesMax 2 BRefType off
[17:59:20] encqsvInit: RateControlMethod ICQ ICQQuality 22
[17:59:20] sync: first pts video is 0
[17:59:20] sync: "Chapter 1" (1) at frame 1 time 0
[17:59:20] sync: first pts audio 0x1 is 360
[17:59:20] qsv_enc_init: using 'hardware (1)' implementation, API: 1.19
[18:00:22] sync: "Chapter 2" (2) at frame 7350 time 27586309
[18:01:32] sync: "Chapter 3" (3) at frame 15799 time 59301743
[18:01:43] sync: "Chapter 4" (4) at frame 17041 time 63963900
[18:02:42] sync: "Chapter 5" (5) at frame 24143 time 90623033
[18:03:54] sync: "Chapter 6" (6) at frame 31813 time 119414295
[18:05:14] sync: "Chapter 7" (7) at frame 39753 time 149219070
[18:06:39] sync: "Chapter 8" (8) at frame 49394 time 185408974
[18:07:00] sync: "Chapter 9" (9) at frame 51897 time 194804610
[18:08:15] sync: "Chapter 10" (10) at frame 60723 time 227935208
[18:09:23] sync: "Chapter 11" (11) at frame 68666 time 257751244
[18:09:56] sync: "Chapter 12" (12) at frame 72565 time 272387115
[18:10:29] sync: "Chapter 13" (13) at frame 76255 time 286238452
[18:11:16] sync: "Chapter 14" (14) at frame 81783 time 306989182
[18:11:45] sync: "Chapter 15" (15) at frame 84775 time 318220402
[18:12:18] sync: "Chapter 16" (16) at frame 88712 time 332998916
[18:12:51] sync: "Chapter 17" (17) at frame 92713 time 348017670
[18:15:06] sync: "Chapter 18" (18) at frame 105569 time 396275880
[18:16:39] sync: "Chapter 19" (19) at frame 116040 time 435581396
[18:17:44] sync: "Chapter 20" (20) at frame 123441 time 463362900
[18:17:54] reader: done. 1 scr changes
[18:17:55] work: average encoding speed for job is 111.842354 fps
[18:17:55] comb detect: heavy 445 | light 1660 | uncombed 122623 | total 124728
[18:17:55] decomb: deinterlaced 445 | blended 1660 | unfiltered 122623 | total 124728
[18:17:55] vfr: 124728 frames output, 0 dropped and 0 duped for CFR/PFR
[18:17:55] vfr: lost time: 0 (0 frames)
[18:17:55] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:17:55] dca-decoder done: 487706 frames, 0 decoder errors
[18:17:55] h264_qsv-decoder done: 124728 frames, 0 decoder errors
[18:17:55] sync: got 124728 frames, 124728 expected
[18:17:55] sync: framerate min 23.974 fps, max 23.981 fps, avg 23.976 fps
[18:17:55] mux: track 0, 124728 frames, 5946329926 bytes, 9144.26 kbps, fifo 2048
[18:17:55] mux: track 1, 243853 frames, 104198626 bytes, 160.24 kbps, fifo 4096
[18:17:55] libhb: work result = 0

# Encode Completed ...

DaveF
Posts: 19
Joined: Wed Jul 11, 2007 1:59 am

Re: Color saturation changes during playback

Post by DaveF »

Deleted User 13735

Re: Color saturation changes during playback

Post by Deleted User 13735 »

If you encode with x264 and not QSV, does it make a difference?
DaveF
Posts: 19
Joined: Wed Jul 11, 2007 1:59 am

Re: Color saturation changes during playback

Post by DaveF »

I haven't tried that. I re-ran the encode, and it behaved the same. I'll try without QSV and see if it changes the result.
Post Reply