Visual artifacts/Green Blocks in output files inconsistently

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
jamieofansa
Posts: 3
Joined: Sun Oct 13, 2019 12:44 am

Visual artifacts/Green Blocks in output files inconsistently

Post by jamieofansa » Sun Oct 13, 2019 1:28 am

Description of problem or question:
Strange green boxes appear for noticeable moments (.5-1.5 seconds), whole screen freak outs sometimes during fast motion ending credits with text. It is consistent when it where it will show up but not when, i.e. for one series the issues show up at the same points in the introduction or ending credits. For example the entire series of this anime has the issue in all the opening and endings plus random parts have the green box issue.

Screenshots taken from original file and completed encode (the activity log is for this file's encode): https://imgur.com/a/szwDebd

But for a series that was batch encoded before the screenshotted example the first half of the episodes do not feature the issue but the second half had the repeated artifacts and "broken" sections in the opening/ending/interspersed during the file. The good quality results and the ones with issues were all put into queue yesterday and the machine has been running for about 30 hours pumping through.

This machine is also running a Plex server, was serving direct play and transcoded playbacks, and has a VirtualBox Lubuntu Guest running downloads onto a scratch disk then moving the completed download to the same drive the files being encoded by Handbrake are. So there is random high CPU usage and disk usage on a low end system (Dell Optiplex SFF ex-office PC with an Intel 4core/4thread i5-3470 and 8GB ram). I don't know if this may be a cause or contribution.

Steps to reproduce the problem (If Applicable):

See above?


HandBrake version (e.g., 1.0.0):
Handbrake 1.2.2



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

Windows 10 Pro 64 bit (fully updated)



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

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.18362.0
CPU: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
Ram: 8092 MB, 
GPU Information:
  Microsoft Remote Display Adapter - 10.0.18362.329
  Intel(R) HD Graphics - 10.18.10.4358
Screen: 1920x1080
Temp Dir: C:\Users\plex\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\plex\AppData\Roaming\HandBrake

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


# Starting Encode ...

[20:16:04] hb_init: starting libhb thread
[20:16:04] 1 job(s) to process
[20:16:04] 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
      },
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 1,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "00:00:00.117"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "E:\\Temp\\x265 Reencs\\Tenchi Muyo Ryo-Ohki - 04 - Mihoshi Falls To The Land Of The Stars-4.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "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": "480",
          "width": "640"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 4,
    "Path": "E:\\Temp\\Tenchi Muyo\\Tenchi Muyo Ryo-Ohki\\Tenchi Muyo Ryo-Ohki - 04 - Mihoshi Falls To The Land Of The Stars.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": "x265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "strong-intra-smoothing=0:rect=0",
    "Preset": "veryfast",
    "Profile": "auto",
    "Quality": 20.0,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[20:16:04] CPU: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
[20:16:04]  - Intel microarchitecture Ivy Bridge
[20:16:04]  - logical processor count: 4
[20:16:04] Intel Quick Sync Video support: yes
[20:16:04]  - Intel Media SDK hardware: API 1.11 (minimum: 1.3)
[20:16:04]  - H.264 encoder: yes
[20:16:04]     - preferred implementation: hardware (any) via D3D11
[20:16:04]     - capabilities (hardware):  vsinfo opt1 opt2+extbrc+ib_adapt+nmpslice
[20:16:04]  - H.265 encoder: no
[20:16:04] hb_scan: path=E:\Temp\Tenchi Muyo\Tenchi Muyo Ryo-Ohki\Tenchi Muyo Ryo-Ohki - 04 - Mihoshi Falls To The Land Of The Stars.mkv, title_index=4
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image E:\Temp\Tenchi Muyo\Tenchi Muyo Ryo-Ohki\Tenchi Muyo Ryo-Ohki - 04 - Mihoshi Falls To The Land Of The Stars.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
[20:16:05] 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
[20:16:05] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\Temp\Tenchi Muyo\Tenchi Muyo Ryo-Ohki\Tenchi Muyo Ryo-Ohki - 04 - Mihoshi Falls To The Land Of The Stars.mkv':
  Metadata:
    encoder         : libebml v1.2.1 + libmatroska v1.1.1
    creation_time   : 2011-12-28T00:44:24.000000Z
  Duration: 00:29:36.68, start: 0.000000, bitrate: 1242 kb/s
    Chapter #0:0: start 0.117000, end 1776.683000
    Metadata:
      title           : 00:00:00.117
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : ENCODED BY DARKDREAM
    Stream #0:1(eng): Audio: aac (HE-AACv2), 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : English
    Stream #0:2(jpn): Audio: aac (HE-AACv2), 48000 Hz, stereo, fltp
    Metadata:
      title           : Japanese
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English
[20:16:05] scan: decoding previews for title 4
[20:16:05] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 English (HE-AACv2) (2.0 ch)
[20:16:05] scan: audio 0x2: aac, rate=48000Hz, bitrate=1 ??? (HE-AACv2) (2.0 ch)
[20:16:05] scan: 10 previews, 640x480, 23.976 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[20:16:05] scan: supported video decoders: avcodec qsv
[20:16:05] libhb: scan thread found 1 valid title(s)
[20:16:05] Skipping subtitle scan.  No suitable subtitle tracks.
[20:16:05] starting job
[20:16:05] decomb filter thread started for segment 0
[20:16:05] decomb filter thread started for segment 1
[20:16:05] decomb filter thread started for segment 2
[20:16:05] decomb filter thread started for segment 3
[20:16:05] decomb check thread started for segment 0
[20:16:05] decomb check thread started for segment 1
[20:16:05] decomb check thread started for segment 2
[20:16:05] decomb check thread started for segment 3
[20:16:05] mask filter thread started for segment 0
[20:16:05] mask filter thread started for segment 1
[20:16:05] mask filter thread started for segment 2
[20:16:05] mask filter thread started for segment 3
[20:16:05] mask erode thread started for segment 0
[20:16:05] mask erode thread started for segment 1
[20:16:05] mask erode thread started for segment 2
[20:16:05] mask erode thread started for segment 3
[20:16:05] mask dilate thread started for segment 0
[20:16:05] mask dilate thread started for segment 1
[20:16:05] mask dilate thread started for segment 2
[20:16:05] mask dilate thread started for segment 3
[20:16:05] yadif thread started for segment 0
[20:16:05] yadif thread started for segment 1
[20:16:05] yadif thread started for segment 2
[20:16:05] yadif thread started for segment 3
[20:16:05] work: only 1 chapter, disabling chapter markers
[20:16:05] job configuration:
[20:16:05]  * source
[20:16:05]    + E:\Temp\Tenchi Muyo\Tenchi Muyo Ryo-Ohki\Tenchi Muyo Ryo-Ohki - 04 - Mihoshi Falls To The Land Of The Stars.mkv
[20:16:05]    + title 4, chapter(s) 1 to 1
[20:16:05]    + container: matroska,webm
[20:16:05]    + data rate: 1242 kbps
[20:16:05]  * destination
[20:16:05]    + E:\Temp\x265 Reencs\Tenchi Muyo Ryo-Ohki - 04 - Mihoshi Falls To The Land Of The Stars-4.mkv
[20:16:05]    + container: Matroska (libavformat)
[20:16:05]  * video track
[20:16:05]    + decoder: h264_qsv
[20:16:05]    + filters
[20:16:05]      + 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)
[20:16:05]      + Decomb (mode=39)
[20:16:05]      + Framerate Shaper (mode=0)
[20:16:05]        + frame rate: same as source (around 23.976 fps)
[20:16:05]      + Crop and Scale (width=640:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[20:16:05]        + source: 640 * 480, crop (0/0/0/0): 640 * 480, scale: 640 * 480
[20:16:05]    + Output geometry
[20:16:05]      + storage dimensions: 640 x 480
[20:16:05]      + pixel aspect ratio: 1 : 1
[20:16:05]      + display dimensions: 640 x 480
[20:16:05]    + encoder: H.265 (libx265)
[20:16:05]      + preset:  veryfast
[20:16:05]      + options: strong-intra-smoothing=0:rect=0
[20:16:05]      + profile: auto
[20:16:05]      + quality: 20.00 (RF)
[20:16:05]      + color profile: 6-1-6
[20:16:05]  * subtitle track 1, English [UTF-8] (track 0, id 0x3, Text) -> Passthrough
[20:16:05]  * audio track 1
[20:16:05]    + decoder: English (HE-AACv2) (2.0 ch) (track 1, id 0x1)
[20:16:05]      + samplerate: 48000 Hz
[20:16:05]    + mixdown: Stereo
[20:16:05]    + dither: none
[20:16:05]    + encoder: AAC (libavcodec)
[20:16:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:16:05]  * audio track 2
[20:16:05]    + decoder: ??? (HE-AACv2) (2.0 ch) (track 2, id 0x2)
[20:16:05]      + samplerate: 48000 Hz
[20:16:05]    + mixdown: Stereo
[20:16:05]    + dither: none
[20:16:05]    + encoder: AAC (libavcodec)
[20:16:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:16:05] sync: expecting 42597 video frames
x265 [info]: HEVC encoder version 2.9
x265 [info]: build info [Windows][GCC 8.2.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 4 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 2 / wpp(8 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 1 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 2 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-20.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip signhide tmvp fast-intra
x265 [info]: tools: deblock sao
[20:16:05] sync: first pts video is 0
[20:16:05] sync: "00:00:00.117" (1) at frame 1 time 0
[20:16:05] sync: first pts audio 0x1 is 0
[20:16:05] sync: first pts audio 0x2 is 0
[20:17:22] sync: first pts subtitle 0x3 is 9751950
[20:29:19] reader: done. 1 scr changes
[20:29:21] work: average encoding speed for job is 53.576309 fps
[20:29:21] comb detect: heavy 32 | light 482 | uncombed 42083 | total 42597
[20:29:21] decomb: deinterlaced 32 | blended 482 | unfiltered 42083 | total 42597
[20:29:21] vfr: lost time: 0 (0 frames)
[20:29:21] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:29:21] aac-decoder done: 41641 frames, 0 decoder errors
[20:29:21] aac-decoder done: 41641 frames, 0 decoder errors
[20:29:21] h264_qsv-decoder done: 42597 frames, 0 decoder errors
[20:29:21] sync: got 42597 frames, 42597 expected
[20:29:21] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x265 [info]: frame I:    448, Avg QP:19.62  kb/s: 5603.89
x265 [info]: frame P:   8582, Avg QP:20.68  kb/s: 2411.55
x265 [info]: frame B:  33567, Avg QP:26.64  kb/s: 498.62
x265 [info]: Weighted P-Frames: Y:11.9% UV:6.4%
x265 [info]: consecutive B-frames: 5.6% 0.9% 0.9% 1.2% 91.4%
encoded 42597 frames in 795.55s (53.54 fps), 937.71 kb/s, Avg QP:25.37
[20:29:21] mux: track 0, 42597 frames, 208417613 bytes, 938.43 kbps, fifo 4096
[20:29:21] mux: track 1, 83283 frames, 35704848 bytes, 160.77 kbps, fifo 8192
[20:29:21] mux: track 2, 83283 frames, 35711633 bytes, 160.80 kbps, fifo 8192
[20:29:21] mux: track 3, 389 frames, 19843 bytes, 0.09 kbps, fifo 64
[20:29:21] libhb: work result = 0

# Encode Completed ...

User avatar
BradleyS
Moderator
Posts: 1689
Joined: Thu Aug 09, 2007 12:16 pm

Re: Visual artifacts/Green Blocks in output files inconsistently

Post by BradleyS » Sun Oct 13, 2019 3:19 am

Looks like a problem with the QSV decoder. Try disabling it in the preferences to use the software decoder.

jamieofansa
Posts: 3
Joined: Sun Oct 13, 2019 12:44 am

Re: Visual artifacts/Green Blocks in output files inconsistently

Post by jamieofansa » Sun Oct 13, 2019 4:26 am

I'll keep testing this but it seems to have fixed it, is this a known issue with first generation quick sync processors? Is it configuration or should I just swear off quick sync.

User avatar
BradleyS
Moderator
Posts: 1689
Joined: Thu Aug 09, 2007 12:16 pm

Re: Visual artifacts/Green Blocks in output files inconsistently

Post by BradleyS » Sun Oct 13, 2019 4:29 am

I'm not entirely certain but it does seem to crop up from time to time. QSV decode isn't really necessary, anyway. It will be more useful once we have a full hardware decode/encode path with no software in the way, which is being worked on.

Post Reply