Intermittent Video Glitches During Encode

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
Snaptrap
Posts: 25
Joined: Sat Dec 05, 2009 4:27 am

Intermittent Video Glitches During Encode

Post by Snaptrap »

Description of problem or question: Whenever I convert a video to h.264, there is distortion every 2 seconds. This doesn't seem to affect source videos which are encoded in VC-1. This never happened for me using the previous version.




Steps to reproduce the problem (If Applicable):




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




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




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

Code: Select all

HandBrake 1.1.1 (2018061800) - 64bit
OS: Microsoft Windows NT 10.0.17134.0 - 64bit
CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
Ram: 16064 MB, 
GPU Information:
  Intel(R) HD Graphics 4000 - 10.18.10.4425
Screen: 1920x1080
Temp Dir: C:\Users\snapt\AppData\Local\Temp\
Install Dir: E:\Backup Archive\Software\Handbrake
Data Dir: C:\Users\snapt\AppData\Roaming\HandBrake Team\HandBrake\1.1.1.0

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


# Starting Encode ...

[14:40:03] hb_init: starting libhb thread
[14:40:03] 1 job(s) to process
[14:40:03] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 640,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 65536
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": false,
    "File": "E:\\Backup Archive\\Media Files\\Videos\\Converts\\A Street Cat Named Bob-1.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 2097152
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "138",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "140",
          "height": "802",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1",
          "rate": "27000000/1126125"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "time",
      "Start": 0,
      "End": 1800000
    },
    "Title": 1,
    "Path": "E:\\Backup Archive\\Media Files\\Videos\\Movies\\HD\\A Street Cat Named Bob.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "rc-lookahead=30:ref=16:bframes=16:b-adapt=2:direct=auto:me=tesa:subme=10:merange=30:analyse=all:trellis=2",
    "Quality": 15.0,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[14:40:03] CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
[14:40:03]  - Intel microarchitecture Ivy Bridge
[14:40:03]  - logical processor count: 8
[14:40:03] Intel Quick Sync Video support: yes
[14:40:03]  - Intel Media SDK hardware: API 1.11 (minimum: 1.3)
[14:40:03]  - H.264 encoder: yes
[14:40:03]     - preferred implementation: hardware (any) via D3D11
[14:40:03]     - capabilities (hardware):  vsinfo opt1 opt2+extbrc+ib_adapt+nmpslice
[14:40:03]  - H.265 encoder: no
[14:40:03] hb_scan: path=E:\Backup Archive\Media Files\Videos\Movies\HD\A Street Cat Named Bob.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image E:\Backup Archive\Media Files\Videos\Movies\HD\A Street Cat Named Bob.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
[14:40:03] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[14:40:03] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\Backup Archive\Media Files\Videos\Movies\HD\A Street Cat Named Bob.mkv':
  Duration: 01:42:48.00, start: 0.000000, bitrate: N/A
    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 (default)
    Metadata:
      BPS             : 24828425
      BPS-eng         : 24828425
      DURATION        : 01:42:47.995000000
      DURATION-eng    : 01:42:47.995000000
      NUMBER_OF_FRAMES: 147884
      NUMBER_OF_FRAMES-eng: 147884
      NUMBER_OF_BYTES : 19142700737
      NUMBER_OF_BYTES-eng: 19142700737
      _STATISTICS_WRITING_APP: mkvmerge v11.0.0 ('Alive') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v11.0.0 ('Alive') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-05-22 06:48:32
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-05-22 06:48:32
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: dts (DTS)
      48000 Hz, 5.1, fltp, 1536 kb/s (default)
    Metadata:
      BPS             : 1509000
      BPS-eng         : 1509000
      DURATION        : 01:42:48.000000000
      DURATION-eng    : 01:42:48.000000000
      NUMBER_OF_FRAMES: 578250
      NUMBER_OF_FRAMES-eng: 578250
      NUMBER_OF_BYTES : 1163439628
      NUMBER_OF_BYTES-eng: 1163439628
      _STATISTICS_WRITING_APP: mkvmerge v11.0.0 ('Alive') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v11.0.0 ('Alive') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-05-22 06:48:32
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-05-22 06:48:32
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[14:40:03] scan: decoding previews for title 1
[14:40:03] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[14:40:04] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 140/138/0/0, aspect 16:9, PAR 1:1
[14:40:04] scan: supported video decoders: avcodec qsv
[14:40:04] libhb: scan thread found 1 valid title(s)
[14:40:04] starting job
[14:40:04] work: track 1, dithering not supported by codec
[14:40:04] job configuration:
[14:40:04]  * source
[14:40:04]    + E:\Backup Archive\Media Files\Videos\Movies\HD\A Street Cat Named Bob.mkv
[14:40:04]    + title 1, start 00:00:0.00 stop 00:00:20.00
[14:40:04]    + container: matroska,webm
[14:40:04]  * destination
[14:40:04]    + E:\Backup Archive\Media Files\Videos\Converts\A Street Cat Named Bob-1.mkv
[14:40:04]    + container: Matroska (libavformat)
[14:40:04]  * video track
[14:40:04]    + decoder: h264_qsv
[14:40:04]    + filters
[14:40:04]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[14:40:04]        + frame rate: 23.976 fps -> constant 23.976 fps
[14:40:04]      + Crop and Scale (width=1920:height=802:crop-top=140:crop-bottom=138:crop-left=0:crop-right=0)
[14:40:04]        + source: 1920 * 1080, crop (140/138/0/0): 1920 * 802, scale: 1920 * 802
[14:40:04]    + Output geometry
[14:40:04]      + storage dimensions: 1920 x 802
[14:40:04]      + pixel aspect ratio: 1 : 1
[14:40:04]      + display dimensions: 1920 x 802
[14:40:04]    + encoder: H.264 (libx264)
[14:40:04]      + options: rc-lookahead=30:ref=16:bframes=16:b-adapt=2:direct=auto:me=tesa:subme=10:merange=30:analyse=all:trellis=2
[14:40:04]      + quality: 15.00 (RF)
[14:40:04]  * audio track 1
[14:40:04]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[14:40:04]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[14:40:04]    + mixdown: 5.1 Channels
[14:40:04]    + encoder: AAC (libavcodec)
[14:40:04]      + bitrate: 640 kbps, samplerate: 48000 Hz
[14:40:04] sync: expecting 503 video frames
[14:40:04] encx264: min-keyint: 24, keyint: 240
[14:40:04] encx264: encoding at constant RF 15.000000
[14:40:04] encx264: unparsed options: rc-lookahead=30:ref=16:bframes=16:b-adapt=2:direct=auto:me=tesa:subme=10:merange=30:analyse=all:trellis=2
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 5.0
[14:40:04] sync: first pts audio 0x1 is 0
[14:40:04] sync: first pts video is 71280
[14:40:04] sync: Chapter 1 at frame 1 time 71280
[14:43:16] sync: reached audio 0x1 pts 1800000, exiting early
[14:43:40] sync: reached video pts 1801721, exiting early
[14:45:28] work: average encoding speed for job is 2.136096 fps
[14:45:28] vfr: 460 frames output, 0 dropped and 0 duped for CFR/PFR
[14:45:28] vfr: lost time: 0 (0 frames)
[14:45:28] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:45:28] dca-decoder done: 104265 frames, 0 decoder errors
[14:45:28] h264_qsv-decoder done: 26130 frames, 0 decoder errors
[14:45:28] sync: got 460 frames, 503 expected
[14:45:28] sync: framerate min 12.048 fps, max 23.981 fps, avg 23.925 fps
x264 [info]: frame I:7     Avg QP: 8.24  size: 72805
x264 [info]: frame P:148   Avg QP:14.13  size: 40664
x264 [info]: frame B:305   Avg QP:17.18  size: 18767
x264 [info]: consecutive B-frames:  7.8% 14.8%  8.5% 48.7% 10.9%  5.2%  1.5%  0.0%  0.0%  0.0%  0.0%  2.6%  0.0%  0.0%  0.0%  0.0%  0.0%
x264 [info]: mb I  I16..4: 54.9% 18.7% 26.4%
x264 [info]: mb P  I16..4: 10.6% 13.2%  5.8%  P16..4: 21.2%  8.2%  5.9%  0.6%  0.2%    skip:34.4%
x264 [info]: mb B  I16..4:  0.9%  1.0%  0.7%  B16..8: 18.0%  5.5%  1.5%  direct: 6.2%  skip:66.3%  L0:50.1% L1:41.0% BI: 8.9%
x264 [info]: 8x8 transform intra:40.8% inter:50.4%
x264 [info]: direct mvs  spatial:98.0% temporal:2.0%
x264 [info]: coded y,uvDC,uvAC intra: 41.1% 51.7% 33.8% inter: 11.1% 12.5% 3.9%
x264 [info]: i16 v,h,dc,p: 33% 24% 19% 24%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 11% 20%  8%  9%  8% 10%  8% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 14% 18%  6%  6%  5%  6%  8% 15%
x264 [info]: i8c dc,h,v,p: 40% 40% 13%  7%
x264 [info]: Weighted P-Frames: Y:17.6% UV:10.1%
x264 [info]: ref P L0: 60.0%  4.1% 17.2%  5.1%  2.5%  1.8%  1.1%  0.5%  1.1%  0.7%  1.0%  0.9%  1.4%  0.9%  0.9%  0.6%
x264 [info]: ref B L0: 83.1%  8.3%  3.0%  1.2%  0.8%  0.6%  0.4%  0.2%  0.8%  0.4%  0.3%  0.3%  0.4%  0.2%  0.1%
x264 [info]: ref B L1: 97.9%  2.1%
x264 [info]: kb/s:5108.78
[14:45:28] mux: track 0, 460 frames, 12251746 bytes, 4895.80 kbps, fifo 512
[14:45:28] mux: track 1, 938 frames, 1606213 bytes, 641.84 kbps, fifo 1024
[14:45:29] libhb: work result = 0

# Encode Completed ...

mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: Intermittent Video Glitches During Encode

Post by mduell »

Try the nightly.
Woodstock
Veteran User
Posts: 4619
Joined: Tue Aug 27, 2013 6:39 am

Re: Intermittent Video Glitches During Encode

Post by Woodstock »

Also, try disabling QSV decode. Depending on your video driver, the DECODE portion can have issues with some sources.
Snaptrap
Posts: 25
Joined: Sat Dec 05, 2009 4:27 am

Re: Intermittent Video Glitches During Encode

Post by Snaptrap »

Using the official release, I disabled the video decode settings in the options and the problem is gone. Even the pink screen flashes that would appear at the beginning of the encodes are gone. Thanks!
Snaptrap
Posts: 25
Joined: Sat Dec 05, 2009 4:27 am

Re: Intermittent Video Glitches During Encode

Post by Snaptrap »

I've decided to return to the previous version anyway. 1.1.1 frequently locks my entire computer with either codec.
Post Reply