How to Encode an Episode Without Static

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
sternrecall
New User
Posts: 1
Joined: Mon Feb 05, 2024 3:23 am

How to Encode an Episode Without Static

Post by sternrecall »

Description of problem or question:
I have an episode of Daria that for when encoded by Handbrake has a few frames of static. I cannot seem to figure out why this is happening as the static is not present in the original source file. The static in question can be seen here: https://imgur.com/a/bvMGXhe Image



Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):
1.7.2 (2023122400)



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



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

Code: Select all

HandBrake 1.7.2 (2023122400)
OS: Microsoft Windows NT 10.0.18363.0
CPU: AMD Ryzen 5 2600X Six-Core Processor           
Ram: 32683 MB, 
GPU Information:
  NVIDIA GeForce RTX 2070 SUPER - 31.0.15.4629
Screen: 1920x1080
Temp Dir: C:\Users\USER\AppData\Local\Temp\
Install Dir: E:\Program Files\HandBrake\
Data Dir: C:\Users\USER\AppData\Roaming\HandBrake

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

 # Starting Encode ...

[13:43:37] base preset: H.265 MKV 720p30
[13:43:39] Remote Process started with Process ID: 10288 using port: 8037. Max Allowed Instances: 1
[13:43:40] Worker: Starting HandBrake Engine ...
[13:43:40] Worker: Parent Process Id 19912
[13:43:40] Worker: Starting Web Server on port 8037 ...
[13:43:42] Worker: Server Started
[13:43:44] Worker: Disconnected worker monitoring enabled!
[13:43:44] Compile-time hardening features are enabled
[13:43:44] nvenc: version 12.1 is available
[13:43:44] nvdec: is available
[13:43:44] CUDA Version: 7.5
[13:43:44] vcn: not available on this system
[13:43:44] qsv: not available on this system
[13:43:44] hb_init: starting libhb thread
[13:43:44] Starting work at: Mon Feb 05 13:43:44 2024
[13:43:44] 1 job(s) to process
[13:43:44] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Stereo",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:mp3",
      "copy:truehd",
      "copy:flac",
      "copy:eac3"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "E:\\Users\\USER\\Videos\\S01e09 - Too Cute-1.mkv",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 5,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 4,
        "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": 19,
        "Settings": {
          "crop-bottom": "2",
          "crop-left": "4",
          "crop-right": "6",
          "crop-top": "0",
          "height": "478",
          "width": "710"
        }
      },
      {
        "ID": 10,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 8,
    "Den": 9
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 4
    },
    "Title": 1,
    "Path": "B:\\cybermedia\\video\\Shows\\Daria (1997)\\Season 01\\S01E09 - Too Cute.mkv",
    "HWDecode": 4
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": "x265",
    "Level": "auto",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "strong-intra-smoothing=0:rect=0:aq-mode=1",
    "Preset": "slow",
    "Profile": "main",
    "Quality": 21,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[13:43:44] CPU: Unknown
[13:43:44]  - logical processor count: 12
[13:43:44] Intel Quick Sync Video support: no
[13:43:44] hb_scan: path=B:\cybermedia\video\Shows\Daria (1997)\Season 01\S01E09 - Too Cute.mkv, title_index=1
Input #0, matroska,webm, from 'B:\cybermedia\video\Shows\Daria (1997)\Season 01\S01E09 - Too Cute.mkv':
  Metadata:
    encoder         : libmakemkv v1.17.5 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2024-01-19T17:17:33.000000Z
  Duration: 00:21:18.61, start: 0.000000, bitrate: 5197 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 420.920500
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 420.920500, end 844.410233
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 844.410233, end 1237.302733
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 1237.302733, end 1278.610667
      Metadata:
        title           : Chapter 04
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 1k tbn
    Metadata:
      BPS-eng         : 4999922
      DURATION-eng    : 00:21:18.610666666
      NUMBER_OF_FRAMES-eng: 38320
      NUMBER_OF_BYTES-eng: 799118856
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2024-01-19 17:17:33
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      cpb: bitrate max/min/avg: 9800000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 00:21:18.560000000
      NUMBER_OF_FRAMES-eng: 39955
      NUMBER_OF_BYTES-eng: 30685440
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2024-01-19 17:17:33
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      BPS-eng         : 164
      DURATION-eng    : 00:21:13.770000000
      NUMBER_OF_FRAMES-eng: 576
      NUMBER_OF_BYTES-eng: 26194
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2024-01-19 17:17:33
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[13:43:44] scan: decoding previews for title 1
[13:43:44] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3, 2.0 ch, 192 kbps)
[13:43:44] using bitstream PAR 8:9
[13:43:44] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/2/4/6, aspect 4:3, PAR 8:9, color profile: 6-1-6, chroma location: left
[13:43:44] scan: supported video decoders: avcodec hwaccel
[13:43:44] libhb: scan thread found 1 valid title(s)
[13:43:44] Starting Task: Encoding Pass
[13:43:45] work: track 1, dithering not supported by codec
[13:43:45] job configuration:
[13:43:45]  * source
[13:43:45]    + B:\cybermedia\video\Shows\Daria (1997)\Season 01\S01E09 - Too Cute.mkv
[13:43:45]    + title 1, chapter(s) 1 to 4
[13:43:45]    + container: matroska,webm
[13:43:45]    + data rate: 5197 kbps
[13:43:45]  * destination
[13:43:45]    + E:\Users\USER\Videos\S01e09 - Too Cute-1.mkv
[13:43:45]    + container: Matroska (libavformat)
[13:43:45]      + chapter markers
[13:43:45]  * video track
[13:43:45]    + decoder: mpeg2video 8-bit (yuv420p)
[13:43:45]    + filters
[13:43:45]      + 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)
[13:43:45]      + Decomb (mode=39)
[13:43:45]      + Framerate Shaper (mode=2:rate=27000000/900000)
[13:43:45]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[13:43:45]      + Crop and Scale (width=710:height=478:crop-top=0:crop-bottom=2:crop-left=4:crop-right=6)
[13:43:45]        + source: 720 * 480, crop (0/2/4/6): 710 * 478, scale: 710 * 478
[13:43:45]    + Output geometry
[13:43:45]      + storage dimensions: 710 x 478
[13:43:45]      + pixel aspect ratio: 8 : 9
[13:43:45]      + display dimensions: 631 x 478
[13:43:45]    + encoder: H.265 (libx265)
[13:43:45]      + preset:  slow
[13:43:45]      + options: strong-intra-smoothing=0:rect=0:aq-mode=1
[13:43:45]      + profile: main
[13:43:45]      + level:   auto
[13:43:45]      + quality: 21.00 (RF)
[13:43:45]      + color profile: 6-1-6
[13:43:45]      + chroma location: left
[13:43:45]  * subtitle track 1, English (UTF-8) (track 0, id 0x2, Text) -> Passthrough
[13:43:45]  * audio track 1
[13:43:45]    + name: Stereo
[13:43:45]    + decoder: English (AC3, 2.0 ch, 192 kbps) (track 1, id 0x1)
[13:43:45]      + bitrate: 192 kbps, samplerate: 48000 Hz
[13:43:45]    + mixdown: Stereo
[13:43:45]    + encoder: AAC (libavcodec)
[13:43:45]      + bitrate: 160 kbps, samplerate: 48000 Hz
[13:43:45] sync: expecting 38319 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Windows][GCC 13.2.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 12 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  : 30 / 300 / 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-21.0 / 0.60
x265 [info]: tools: limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00
x265 [info]: tools: rskip mode=1 signhide tmvp deblock sao
[13:43:56] sync: first pts video is 0
[13:43:56] sync: "Chapter 1" (1) at frame 1 time 0
[13:43:56] sync: first pts audio 0x1 is 0
[13:43:57] sync: first pts subtitle 0x2 is 183240
[13:48:43] sync: "Chapter 2" (2) at frame 12616 time 37882845
[13:53:34] sync: "Chapter 3" (3) at frame 25309 time 75999924
[13:58:06] sync: "Chapter 4" (4) at frame 37083 time 111357246
[13:58:29] reader: done. 1 scr changes
[13:58:30] work: average encoding speed for job is 43.815273 fps
[13:58:30] comb detect: heavy 19792 | light 16255 | uncombed 2273 | total 38320
[13:58:30] decomb: deinterlaced 19792 | blended 16255 | unfiltered 2273 | total 38320
[13:58:30] vfr: 38320 frames output, 0 dropped and 0 duped for CFR/PFR
[13:58:30] vfr: lost time: 0 (0 frames)
[13:58:30] vfr: gained time: 0 (0 frames) (0 not accounted for)
[13:58:30] ac3-decoder done: 39955 frames, 0 decoder errors
[13:58:30] mpeg2video-decoder done: 38320 frames, 0 decoder errors
[13:58:30] sync: got 38320 frames, 38319 expected
[13:58:30] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x265 [info]: frame I:    274, Avg QP:22.17  kb/s: 5561.61
x265 [info]: frame P:   8753, Avg QP:23.58  kb/s: 2239.76
x265 [info]: frame B:  29293, Avg QP:28.02  kb/s: 343.12
x265 [info]: Weighted P-Frames: Y:13.5% UV:5.3%
encoded 38320 frames in 878.14s (43.64 fps), 813.66 kb/s, Avg QP:26.97
[13:58:30] mux: track 0, 38320 frames, 130198110 bytes, 814.60 kbps, fifo 4096
[13:58:30] mux: track 1, 59933 frames, 26425388 bytes, 165.33 kbps, fifo 8192
[13:58:30] mux: track 2, 576 frames, 28836 bytes, 0.18 kbps, fifo 64
[13:58:30] Finished work at: Mon Feb 05 13:58:30 2024
[13:58:30] libhb: work result = 0

 # Job Completed!
Rodeo314
Novice
Posts: 56
Joined: Wed Jan 17, 2024 3:44 am

Re: How to Encode an Episode Without Static

Post by Rodeo314 »

Do you have the same issue if you use a different video encoder (e.g. x264)? How about when disabling the Decomb filter?
Post Reply