Removing motion artifacts

Discuss encoding for devices and presets.
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
brianshowers
Posts: 4
Joined: Sat May 16, 2020 12:28 am

Removing motion artifacts

Post by brianshowers »

Description of problem or question:
I recently upgraded from Handbrake 0.10 to the most recent version. Since that change, I have noticed a significant amount of motion artifacts that I've been unable to eliminate despite any of the encoding settings that I've tried. They are particularly noticeable on "busy" patterns such as checkered shirts, mesh chairs, building windows, etc. I'll be the first to admit that I'm not very knowledgeable about video encoding, so bare with me.

The source material is a DVD ripped via MakeMKV. I've verified that when playing the raw rip, no artifacts are present.

I've tried numerous quality and encoder settings, but none have made a difference. The attached activity log was for my final attempt where I tried Placebo level and Quality level 18. I've also tried both h264 and h265 codecs and a variety of encoder profiles.

You can view the problem first hand at the 05:23 mark of this video clip: https://drive.google.com/open?id=15E2Si ... Dj6l5YoXcY


HandBrake version (e.g., 1.0.0):

Handbrake v1.3.1


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

Windows 10


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

https://drive.google.com/open?id=1fJbyv ... bU5WGmb-JD

Code: Select all

HandBrake 1.3.1 (2020010400)
OS: Microsoft Windows NT 10.0.18362.0
CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Ram: 8174 MB, 
GPU Information:
  AMD Radeon HD 6700 Series - 15.201.1151.1008
Screen: 1920x1080
Temp Dir: C:\Users\showers\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\showers\AppData\Roaming\HandBrake

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


# Starting Encode ...

[09:38:27] base preset: Amazon Fire 2160p60 4K HEVC Surround (Modified)
[09:38:27] hb_init: starting libhb thread
[09:38:27] Starting work at: Fri May 15 09:38:27 2020
[09:38:27] 1 job(s) to process
[09:38:27] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "D:\\Movie Ripping\\To Tag\\Billions - S03E01 - Test - FIreTV2160 - 2.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "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": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "480",
          "width": "720"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 32,
    "Den": 27
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 2,
      "End": 2
    },
    "Title": 1,
    "Path": "D:\\Movie Ripping\\Rips\\Billions\\Billions - S03E01 - Tie Goes to the Runner.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "strong-intra-smoothing=0:rect=0:aq-mode=1",
    "Preset": "placebo",
    "Profile": "main",
    "Quality": 18.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[09:38:27] CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
[09:38:27]  - Intel microarchitecture Sandy Bridge
[09:38:27]  - logical processor count: 8
[09:38:27] Intel Quick Sync Video support: no
[09:38:27] hb_scan: path=D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.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(D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.mkv\) failed
[09:38:27] 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
[09:38:27] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.mkv':
  Metadata:
    encoder         : libmakemkv v1.15.0 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2020-04-24T19:52:57.000000Z
  Duration: 00:58:20.76, start: 0.000000, bitrate: 6065 kb/s
    Chapter #0:0: start 0.000000, end 140.140000
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 140.140000, end 1077.576500
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 1077.576500, end 1718.750367
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1718.750367, end 2280.144533
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 2280.144533, end 2814.011200
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 2814.011200, end 3448.778667
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 3448.778667, end 3500.763933
    Metadata:
      title           : Chapter 07
    Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, progressive), 720x480 [SAR 32:27 DAR 16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 5603453
      DURATION-eng    : 00:58:20.763933333
      NUMBER_OF_FRAMES-eng: 83935
      NUMBER_OF_BYTES-eng: 2452045419
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-24 19:52:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 00:58:20.736000000
      NUMBER_OF_FRAMES-eng: 109398
      NUMBER_OF_BYTES-eng: 196041216
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-24 19:52:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: dvd_subtitle, 720x480 (default)
    Metadata:
      BPS-eng         : 9046
      DURATION-eng    : 00:58:05.839922222
      NUMBER_OF_FRAMES-eng: 1219
      NUMBER_OF_BYTES-eng: 3941704
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-24 19:52:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[09:38:27] scan: decoding previews for title 1
[09:38:27] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[09:38:27] scan: 10 previews, 720x480, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 32:27
[09:38:27] libhb: scan thread found 1 valid title(s)
[09:38:27] Starting Task: Encoding Pass
[09:38:27] Skipping crop/scale filter
[09:38:27] work: only 1 chapter, disabling chapter markers
[09:38:27] job configuration:
[09:38:27]  * source
[09:38:27]    + D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.mkv
[09:38:27]    + title 1, chapter(s) 2 to 2
[09:38:27]    + container: matroska,webm
[09:38:27]    + data rate: 6065 kbps
[09:38:27]  * destination
[09:38:27]    + D:\Movie Ripping\To Tag\Billions - S03E01 - Test - FIreTV2160 - 2.m4v
[09:38:27]    + container: MPEG-4 (libavformat)
[09:38:27]  * video track
[09:38:27]    + decoder: mpeg2video
[09:38:27]    + filters
[09:38:27]      + 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)
[09:38:27]      + Decomb (mode=39)
[09:38:27]      + Framerate Shaper (mode=1)
[09:38:27]        + frame rate: 23.976 fps -> constant 23.976 fps
[09:38:27]    + Output geometry
[09:38:27]      + storage dimensions: 720 x 480
[09:38:27]      + pixel aspect ratio: 32 : 27
[09:38:27]      + display dimensions: 853 x 480
[09:38:27]    + encoder: H.265 (libx265)
[09:38:27]      + preset:  placebo
[09:38:27]      + options: strong-intra-smoothing=0:rect=0:aq-mode=1
[09:38:27]      + profile: main
[09:38:27]      + level:   auto
[09:38:27]      + quality: 18.00 (RF)
[09:38:27]      + color profile: 6-1-6
[09:38:27] sync: expecting 22476 video frames
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Windows][GCC 9.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 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(8 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 4 inter / 4 intra
x265 [info]: ME / range / subpel / merge         : star / 92 / 5 / 5
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 60 / 8 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 1
x265 [info]: References / ref-limit  cu / depth  : 5 / off / off
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-18.0 / 0.60
x265 [info]: tools: rd=6 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 tskip signhide tmvp
x265 [info]: tools: b-intra deblock sao
[09:38:27] sync: first pts video is 0
[09:38:27] sync: "Chapter 2" (2) at frame 1 time 0
[12:30:25] reader: end of chapter 2 (media 2) reached at media chapter 3
[12:30:25] reader: done. 1 scr changes
[12:31:58] work: average encoding speed for job is 2.172305 fps
[12:31:58] comb detect: heavy 1695 | light 1894 | uncombed 18888 | total 22477
[12:31:58] decomb: deinterlaced 1695 | blended 1894 | unfiltered 18888 | total 22477
[12:31:58] vfr: 22477 frames output, 0 dropped and 0 duped for CFR/PFR
[12:31:58] vfr: lost time: 0 (0 frames)
[12:31:58] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:31:58] mpeg2video-decoder done: 22477 frames, 0 decoder errors
[12:31:58] sync: got 22477 frames, 22476 expected
[12:31:58] sync: framerate min 23.976 fps, max 29.970 fps, avg 23.976 fps
x265 [info]: frame I:    186, Avg QP:15.26  kb/s: 5235.24
x265 [info]: frame P:   4683, Avg QP:17.11  kb/s: 2149.09
x265 [info]: frame B:  17608, Avg QP:23.99  kb/s: 318.20
x265 [info]: Weighted P-Frames: Y:1.0% UV:0.6%
x265 [info]: Weighted B-Frames: Y:0.4% UV:0.2%
x265 [info]: consecutive B-frames: 4.2% 5.1% 7.0% 36.4% 21.4% 15.3% 5.1% 3.4% 2.1%
encoded 22477 frames in 10411.29s (2.16 fps), 740.35 kb/s, Avg QP:22.49
[12:31:58] mux: track 0, 22477 frames, 86847432 bytes, 741.08 kbps, fifo 8192
[12:31:58] Finished work at: Fri May 15 12:31:58 2020
[12:31:58] libhb: work result = 0

# Encode Completed ...

Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: Removing motion artifacts

Post by Woodstock »

Start with turning off Comb detect, set deinterlace method to "BOB", and forget about using "placebo" as the encoder preset, because it will faithfully replicate the problems of the source. Frame rate should be set to "same as source".
brianshowers
Posts: 4
Joined: Sat May 16, 2020 12:28 am

Re: Removing motion artifacts

Post by brianshowers »

I had encoded at Placebo just to try to rule out anything else. I don't normally use that level.

Using the BOB setting didn't fix the issue, but setting Interlace Detection=Off and Deinterlace=Off seems to have helped.
Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: Removing motion artifacts

Post by Woodstock »

Comb detection to OFF makes handbrake apply the de-interlace on every frame, not just those it looks like there is interlacing. But, if you then turn deinterlace off, that kind of defeats the purpose. Part of the issue with motion in interlaced frames is that objects are in one place during even scan lines, then in another in odd scan lines, from what is essentially "one frame". As I understand BOB, it takes the two half-frames and makes two individual frames out of them, at twice the frame rate.

Could you post the log from the latest encode?
brianshowers
Posts: 4
Joined: Sat May 16, 2020 12:28 am

Re: Removing motion artifacts

Post by brianshowers »

Attached is the new actvity log. Also, here is the clip encoded with deinterlace off. Again, at the 05:23 mark you can see that the artifacts are improved. I think there is still an issue with audo/video being out of sync.

https://drive.google.com/open?id=106L1p ... DxChNI9dYN


Code: Select all

HandBrake 1.3.1 (2020010400)
OS: Microsoft Windows NT 10.0.18362.0
CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Ram: 8174 MB, 
GPU Information:
  AMD Radeon HD 6700 Series - 15.201.1151.1008
Screen: 1920x1080
Temp Dir: C:\Users\showers\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\showers\AppData\Roaming\HandBrake

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


# Starting Encode ...

[07:55:10] base preset: Brian - BluRay
[19:55:10] hb_init: starting libhb thread
[19:55:10] Starting work at: Sat May 16 19:55:10 2020
[19:55:10] 1 job(s) to process
[19:55:10] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Surround 5.1",
        "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"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "D:\\Movie Ripping\\To Tag\\Billions - S03E01 - Test - FIreTV2160 - 5.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "Mux": "mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "480",
          "width": "720"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 32,
    "Den": 27
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 2,
      "End": 2
    },
    "Title": 1,
    "Path": "D:\\Movie Ripping\\Rips\\Billions\\Billions - S03E01 - Tie Goes to the Runner.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "strong-intra-smoothing=0:rect=0:aq-mode=1",
    "Preset": "slow",
    "Profile": "auto",
    "Quality": 18.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[19:55:10] CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
[19:55:10]  - Intel microarchitecture Sandy Bridge
[19:55:10]  - logical processor count: 8
[19:55:10] Intel Quick Sync Video support: no
[19:55:10] hb_scan: path=D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.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(D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.mkv\) failed
[19:55:10] 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
[19:55:10] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.mkv':
  Metadata:
    encoder         : libmakemkv v1.15.0 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2020-04-24T19:52:57.000000Z
  Duration: 00:58:20.76, start: 0.000000, bitrate: 6065 kb/s
    Chapter #0:0: start 0.000000, end 140.140000
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 140.140000, end 1077.576500
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 1077.576500, end 1718.750367
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1718.750367, end 2280.144533
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 2280.144533, end 2814.011200
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 2814.011200, end 3448.778667
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 3448.778667, end 3500.763933
    Metadata:
      title           : Chapter 07
    Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, progressive), 720x480 [SAR 32:27 DAR 16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 5603453
      DURATION-eng    : 00:58:20.763933333
      NUMBER_OF_FRAMES-eng: 83935
      NUMBER_OF_BYTES-eng: 2452045419
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-24 19:52:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 00:58:20.736000000
      NUMBER_OF_FRAMES-eng: 109398
      NUMBER_OF_BYTES-eng: 196041216
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-24 19:52:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: dvd_subtitle, 720x480 (default)
    Metadata:
      BPS-eng         : 9046
      DURATION-eng    : 00:58:05.839922222
      NUMBER_OF_FRAMES-eng: 1219
      NUMBER_OF_BYTES-eng: 3941704
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-24 19:52:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[19:55:10] scan: decoding previews for title 1
[19:55:10] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[19:55:10] scan: 10 previews, 720x480, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 32:27
[19:55:10] libhb: scan thread found 1 valid title(s)
[19:55:10] Starting Task: Subtitle Scan
[19:55:10] Skipping crop/scale filter
[19:55:10] work: only 1 chapter, disabling chapter markers
[19:55:10] job configuration:
[19:55:10]  * source
[19:55:10]    + D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.mkv
[19:55:10]    + title 1, chapter(s) 2 to 2
[19:55:10]    + container: matroska,webm
[19:55:10]    + data rate: 6065 kbps
[19:55:10]  * destination
[19:55:10]    + D:\Movie Ripping\To Tag\Billions - S03E01 - Test - FIreTV2160 - 5.m4v
[19:55:10]    + container: MPEG-4 (libavformat)
[19:55:10]      + optimized for HTTP streaming (fast start)
[19:55:10]  * video track
[19:55:10]    + decoder: mpeg2video
[19:55:10]    + filter
[19:55:10]      + Framerate Shaper (mode=1)
[19:55:10]        + frame rate: 23.976 fps -> constant 23.976 fps
[19:55:10]    + Output geometry
[19:55:10]      + storage dimensions: 720 x 480
[19:55:10]      + pixel aspect ratio: 32 : 27
[19:55:10]      + display dimensions: 853 x 480
[19:55:10]  * Foreign Audio Search: Render/Burn-in, Forced Only
[19:55:10]    + subtitle, English [VOBSUB] (track 0, id 0x2, Picture)
[19:55:10] sync: expecting 22476 video frames
[19:55:11] reader: end of chapter 2 (media 2) reached at media chapter 3
[19:55:11] reader: done. 1 scr changes
[19:55:11] work: average encoding speed for job is 0.000000 fps
[19:55:11] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[19:55:11] vfr: lost time: 0 (0 frames)
[19:55:11] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:55:11] mpeg2video-decoder done: 0 frames, 0 decoder errors
[19:55:11] sync: got 0 frames, 22476 expected
[19:55:11] Subtitle track 0 (id 0x2) 'English [VOBSUB]': 333 hits (0 forced)
[19:55:11] No candidate detected during subtitle scan
[19:55:11] Starting Task: Encoding Pass
[19:55:11] Skipping crop/scale filter
[19:55:11] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[19:55:11] Auto Passthru: fallback is AC3
[19:55:11] Auto Passthru: using AC3 Passthru for track 1
[19:55:11] work: only 1 chapter, disabling chapter markers
[19:55:11] job configuration:
[19:55:11]  * source
[19:55:11]    + D:\Movie Ripping\Rips\Billions\Billions - S03E01 - Tie Goes to the Runner.mkv
[19:55:11]    + title 1, chapter(s) 2 to 2
[19:55:11]    + container: matroska,webm
[19:55:11]    + data rate: 6065 kbps
[19:55:11]  * destination
[19:55:11]    + D:\Movie Ripping\To Tag\Billions - S03E01 - Test - FIreTV2160 - 5.m4v
[19:55:11]    + container: MPEG-4 (libavformat)
[19:55:11]      + optimized for HTTP streaming (fast start)
[19:55:11]  * video track
[19:55:11]    + decoder: mpeg2video
[19:55:11]    + filter
[19:55:11]      + Framerate Shaper (mode=1)
[19:55:11]        + frame rate: 23.976 fps -> constant 23.976 fps
[19:55:11]    + Output geometry
[19:55:11]      + storage dimensions: 720 x 480
[19:55:11]      + pixel aspect ratio: 32 : 27
[19:55:11]      + display dimensions: 853 x 480
[19:55:11]    + encoder: H.265 (libx265)
[19:55:11]      + preset:  slow
[19:55:11]      + options: strong-intra-smoothing=0:rect=0:aq-mode=1
[19:55:11]      + profile: auto
[19:55:11]      + level:   auto
[19:55:11]      + quality: 18.00 (RF)
[19:55:11]      + color profile: 6-1-6
[19:55:11]  * audio track 1
[19:55:11]    + name: Surround 5.1
[19:55:11]    + decoder: English (AC3) (5.1 ch) (448 kbps) (track 1, id 0x1)
[19:55:11]      + bitrate: 448 kbps, samplerate: 48000 Hz
[19:55:11]    + AC3 Passthru
[19:55:11] sync: expecting 22476 video frames
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Windows][GCC 9.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 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / 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         : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 4 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-18.0 / 0.60
x265 [info]: tools: limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 rskip
x265 [info]: tools: signhide tmvp deblock sao
[19:55:11] sync: first pts video is 0
[19:55:11] sync: "Chapter 2" (2) at frame 1 time 0
[19:55:11] sync: first pts audio 0x1 is 1800
[20:07:14] reader: end of chapter 2 (media 2) reached at media chapter 3
[20:07:14] reader: done. 1 scr changes
[20:07:20] work: average encoding speed for job is 31.015505 fps
[20:07:20] vfr: 22477 frames output, 0 dropped and 0 duped for CFR/PFR
[20:07:20] vfr: lost time: 0 (0 frames)
[20:07:20] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:07:20] ac3-decoder done: 29294 frames, 0 decoder errors
[20:07:20] mpeg2video-decoder done: 22477 frames, 0 decoder errors
[20:07:20] sync: got 22477 frames, 22476 expected
[20:07:20] sync: framerate min 23.976 fps, max 29.970 fps, avg 23.976 fps
x265 [info]: frame I:    204, Avg QP:15.33  kb/s: 5023.63
x265 [info]: frame P:   5503, Avg QP:17.39  kb/s: 1766.60
x265 [info]: frame B:  16770, Avg QP:23.77  kb/s: 220.14
x265 [info]: Weighted P-Frames: Y:0.9% UV:0.5%
x265 [info]: consecutive B-frames: 4.1% 5.5% 15.2% 42.9% 32.3%
encoded 22477 frames in 728.84s (30.84 fps), 642.35 kb/s, Avg QP:22.14
[20:07:20] mux: track 0, 22477 frames, 75363980 bytes, 643.09 kbps, fifo 4096
[20:07:20] mux: track 1, 29294 frames, 52494848 bytes, 447.95 kbps, fifo 4096
[20:07:20] Finished work at: Sat May 16 20:07:20 2020
[20:07:20] libhb: work result = 0

# Encode Completed ...


[code]
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Removing motion artifacts

Post by BradleyS »

Just had a chance to look at this. The artifacts in question are moire. It's possible the pattern on the shirt is tripping up the interlacing detecting to think there's combing that needs removing, and doing so worsens the issue.

If you're certain your source is 100% progressive, disabling all interlacing-related filters is advised. If there's still moire in the output, the encoder is likely tripping up and/or needs a higher quality setting (more bits) to record the shirt pattern without artifacts.
brianshowers
Posts: 4
Joined: Sat May 16, 2020 12:28 am

Re: Removing motion artifacts

Post by brianshowers »

Anyone have thoughts on the audio being out of sync? From my eye, I'd say it's off ~20ms, though I haven't done a detailed test. I'm happy to start a new thread if that would be better since disabling Deinterlace appears to have fixed the original video artifact issues.

In case it matters, none of these are issues that I've experienced prior to upgrading from v0.10.
Post Reply