Sharp - fuzzy - sharp - fuzzy - sharp - fuzzy ...

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
markfilipak
Bright Spark User
Posts: 313
Joined: Thu Aug 01, 2019 8:58 pm

Sharp - fuzzy - sharp - fuzzy - sharp - fuzzy ...

Post by markfilipak »

Thanks for providing HandBrake, it's wonderful -- hours of amusement. I seek experienced advice.

Description of problem or question: Approximately twice every 3 seconds, the transcode Target sharpens for an instant, then gets fuzzy. It's most noticeable in motionless facial closeups. The Source shows no such effect and stays sharp. It appears to me that keyframes are too infrequent and/or that encoder entropy is too high, but I don't know how to control either of them with HandBrake.

The Source is a soft-telecined, mpeg2video movie (i.e., 23.976 FPS in a 29.97 FPS container).
The Target is H.265 @ 23.976 FPS.
The TV is 23.976 Hz.
The player for both Source & Target is MPV.

Presets: 'Detelecine: Default', all other filters 'Off', 'Video Codec: H.265 (Intel QSV)', 'Framerate (FPS): 23.976', 'Constant Framerate', 'Constant Quality: 18 QP', 'Encoder Preset: Qualtity', 'Encoder Profile: Auto', 'Encoder Level: Auto'.

I welcome all/any suggestions.
Thanks!
Mark.

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.17134.0
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Ram: 32649 MB, 
GPU Information:
  Intel(R) HD Graphics 530 - 26.20.100.7463
  NVIDIA GeForce GTX 980M   - 10.18.13.5900
Screen: 3840x2160
Temp Dir: C:\Users\Administrator\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Administrator\AppData\Roaming\HandBrake

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


# Starting Encode ...

[04:17:29] hb_init: starting libhb thread
[04:17:29] 1 job(s) to process
[04:17:29] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "English Dialog",
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "French Dialog",
        "Track": 1,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Spanish Dialog",
        "Track": 2,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "English Commentary",
        "Track": 3,
        "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"
      },
      {
        "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"
      },
      {
        "Name": "Chapter 22"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "c:\\foo\\24Hz D,O,O;FPS-23.976,CQ-18,Q .mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 2,
        "Settings": {}
      },
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "480",
          "width": "720"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1",
          "rate": "27000000/1126125"
        }
      }
    ]
  },
  "PAR": {
    "Num": 32,
    "Den": 27
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 22
    },
    "Title": 1,
    "Path": "N:\\VIDEO_TS"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 3,
        "Offset": 0,
        "Track": 2
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 4,
        "Offset": 0,
        "Track": 3
      }
    ]
  },
  "Video": {
    "Encoder": "qsv_h265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "quality",
    "Profile": "auto",
    "Quality": 18.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[04:17:29] CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
[04:17:29]  - Intel microarchitecture Skylake
[04:17:29]  - logical processor count: 8
[04:17:29] Intel Quick Sync Video support: yes
[04:17:29]  - Intel Media SDK hardware: API 1.30 (minimum: 1.3)
[04:17:29]  - H.264 encoder: yes
[04:17:29]     - preferred implementation: hardware (any) via D3D11
[04:17:29]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[04:17:29]  - H.265 encoder: yes (8bit: yes, 10bit: no)
[04:17:29]     - preferred implementation: hardware (any) via D3D11
[04:17:29]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[04:17:29] hb_scan: path=N:\VIDEO_TS, title_index=1
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
[04:17:29] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open N:\VIDEO_TS for reading
libdvdread: Device N:\VIDEO_TS inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file N:\VIDEO_TS.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open N:\VIDEO_TS for reading
libdvdread: Device N:\VIDEO_TS inaccessible, CSS authentication not available.
[04:17:29] scan: DVD has 24 title(s)
[04:17:29] scan: scanning title 1
[04:17:29] scan: opening IFO for VTS 1
[04:17:29] scan: duration is 01:53:47 (6827533 ms)
[04:17:29] pgc_id: 1, pgn: 1: pgc: 000002884E78DF70
[04:17:29] scan: vts=1, ttn=1, cells=0->22, blocks=0->2615142, 2615143 blocks
[04:17:29] scan: checking audio 1
[04:17:29] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=1
[04:17:29] scan: checking audio 2
[04:17:29] scan: id=0x81bd, lang=Francais (AC3), 3cc=fra ext=1
[04:17:29] scan: checking audio 3
[04:17:29] scan: id=0x82bd, lang=español (AC3), 3cc=spa ext=1
[04:17:29] scan: checking audio 4
[04:17:29] scan: id=0x83bd, lang=English (AC3), 3cc=eng ext=3
[04:17:29] scan: checking subtitle 1
[04:17:29] scan: id=0x20bd, lang=English Closed Caption (Wide Screen) [VOBSUB], 3cc=eng ext=5
[04:17:29] scan: checking subtitle 2
[04:17:29] scan: id=0x21bd, lang=Francais (Wide Screen) [VOBSUB], 3cc=fra ext=1
[04:17:29] scan: checking subtitle 3
[04:17:29] scan: id=0x22bd, lang=español (Wide Screen) [VOBSUB], 3cc=spa ext=1
[04:17:29] scan: checking subtitle 4
[04:17:29] scan: id=0x23bd, lang=English Director's Commentary (Wide Screen) [VOBSUB], 3cc=eng ext=13
[04:17:29] scan: checking subtitle 5
[04:17:29] scan: id=0x24bd, lang=Francais Forced (Wide Screen) [VOBSUB], 3cc=fra ext=9
[04:17:29] scan: checking subtitle 6
[04:17:29] scan: id=0x25bd, lang=español Forced (Wide Screen) [VOBSUB], 3cc=spa ext=9
[04:17:29] scan: title 1 has 22 chapters
[04:17:29] scan: chap 1 c=0->0, b=0->124487 (124488), 320166 ms
[04:17:29] scan: chap 2 c=1->1, b=124488->235101 (110614), 282333 ms
[04:17:29] scan: chap 3 c=2->2, b=235102->384784 (149683), 383000 ms
[04:17:29] scan: chap 4 c=3->3, b=384785->484354 (99570), 263000 ms
[04:17:29] scan: chap 5 c=4->4, b=484355->596052 (111698), 278667 ms
[04:17:29] scan: chap 6 c=5->5, b=596053->719186 (123134), 300867 ms
[04:17:29] scan: chap 7 c=6->6, b=719187->839070 (119884), 314967 ms
[04:17:29] scan: chap 8 c=7->7, b=839071->871747 (32677), 83834 ms
[04:17:29] scan: chap 9 c=8->8, b=871748->1045481 (173734), 440367 ms
[04:17:29] scan: chap 10 c=9->9, b=1045482->1231515 (186034), 454300 ms
[04:17:29] scan: chap 11 c=10->10, b=1231516->1323070 (91555), 257834 ms
[04:17:29] scan: chap 12 c=11->11, b=1323071->1459973 (136903), 351333 ms
[04:17:29] scan: chap 13 c=12->13, b=1459974->1609655 (149682), 387334 ms
[04:17:29] scan: chap 14 c=14->14, b=1609656->1718448 (108793), 287000 ms
[04:17:29] scan: chap 15 c=15->15, b=1718449->1841207 (122759), 343667 ms
[04:17:29] scan: chap 16 c=16->16, b=1841208->2017835 (176628), 465166 ms
[04:17:29] scan: chap 17 c=17->17, b=2017836->2104632 (86797), 242033 ms
[04:17:29] scan: chap 18 c=18->18, b=2104633->2296040 (191408), 507633 ms
[04:17:29] scan: chap 19 c=19->19, b=2296041->2396191 (100151), 278033 ms
[04:17:29] scan: chap 20 c=20->20, b=2396192->2510734 (114543), 296000 ms
[04:17:29] scan: chap 21 c=21->21, b=2510735->2615137 (104403), 289000 ms
[04:17:29] scan: chap 22 c=22->22, b=2615138->2615142 (5), 1000 ms
[04:17:29] scan: aspect = 16:9
[04:17:29] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[04:17:29] scan: title angle(s) 1
[ac3 @ 00000288578b4d80] frame sync error
[04:17:29] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[ac3 @ 00000288578b4d80] frame sync error
[04:17:29] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch)
[ac3 @ 00000288578b4d80] frame sync error
[04:17:29] scan: audio 0x82bd: ac3, rate=48000Hz, bitrate=384000 español (AC3) (5.1 ch)
[ac3 @ 00000288578b3fc0] frame sync error
[04:17:29] scan: audio 0x83bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (Director's Commentary 1) (2.0 ch)
[04:17:29] scan: 10 previews, 720x480, 23.976 fps, autocrop = 6/6/0/18, aspect 16:9, PAR 32:27
[04:17:29] libhb: scan thread found 1 valid title(s)
[04:17:29] starting job
[04:17:29] job configuration:
[04:17:29]  * source
[04:17:29]    + N:\VIDEO_TS
[04:17:29]    + title 1, chapter(s) 1 to 22
[04:17:29]  * destination
[04:17:29]    + c:\foo\24Hz D,O,O;FPS-23.976,CQ-18,Q .mkv
[04:17:29]    + container: Matroska (libavformat)
[04:17:29]      + chapter markers
[04:17:29]  * video track
[04:17:29]    + decoder: mpeg2video
[04:17:29]      + bitrate 200 kbps
[04:17:29]    + filters
[04:17:29]      + Detelecine (pullup) ()
[04:17:29]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[04:17:29]        + frame rate: 23.976 fps -> constant 23.976 fps
[04:17:29]      + Crop and Scale (width=720:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[04:17:29]        + source: 720 * 480, crop (0/0/0/0): 720 * 480, scale: 720 * 480
[04:17:29]    + Output geometry
[04:17:29]      + storage dimensions: 720 x 480
[04:17:29]      + pixel aspect ratio: 32 : 27
[04:17:29]      + display dimensions: 853 x 480
[04:17:29]  * Foreign Audio Search: Render/Burn-in, Forced Only
[04:17:29]    + subtitle, English Closed Caption (Wide Screen) [VOBSUB] (track 0, id 0x20bd, Picture)
[04:17:29]    + subtitle, English Director's Commentary (Wide Screen) [VOBSUB] (track 3, id 0x23bd, Picture)
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open N:\VIDEO_TS for reading
libdvdread: Device N:\VIDEO_TS inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file N:\VIDEO_TS.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open N:\VIDEO_TS for reading
libdvdread: Device N:\VIDEO_TS inaccessible, CSS authentication not available.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[04:17:29] sync: expecting 163697 video frames
[04:17:34] reader: done. 1 scr changes
[04:17:34] work: average encoding speed for job is 0.000000 fps
[04:17:34] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[04:17:34] vfr: lost time: 0 (0 frames)
[04:17:34] vfr: gained time: 0 (0 frames) (0 not accounted for)
[04:17:34] mpeg2video-decoder done: 0 frames, 1 decoder errors
[04:17:34] sync: got 0 frames, 163697 expected
[04:17:34] Subtitle track 0 (id 0x20bd) 'English Closed Caption (Wide Screen) [VOBSUB]': 1646 hits (0 forced)
[04:17:34] Subtitle track 3 (id 0x23bd) 'English Director's Commentary (Wide Screen) [VOBSUB]': 2047 hits (0 forced)
[04:17:34] No candidate detected during subtitle scan
[04:17:34] starting job
[04:17:34] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[04:17:34] Auto Passthru: fallback is AC3
[04:17:34] Auto Passthru: using AC3 Passthru for track 1
[04:17:34] Auto Passthru: using AC3 Passthru for track 2
[04:17:34] Auto Passthru: using AC3 Passthru for track 3
[04:17:34] Auto Passthru: using AC3 Passthru for track 4
[04:17:34] job configuration:
[04:17:34]  * source
[04:17:34]    + N:\VIDEO_TS
[04:17:34]    + title 1, chapter(s) 1 to 22
[04:17:34]  * destination
[04:17:34]    + c:\foo\24Hz D,O,O;FPS-23.976,CQ-18,Q .mkv
[04:17:34]    + container: Matroska (libavformat)
[04:17:34]      + chapter markers
[04:17:34]  * video track
[04:17:34]    + decoder: mpeg2video
[04:17:34]      + bitrate 200 kbps
[04:17:34]    + filters
[04:17:34]      + Detelecine (pullup) ()
[04:17:34]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[04:17:34]        + frame rate: 23.976 fps -> constant 23.976 fps
[04:17:34]      + Crop and Scale (width=720:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[04:17:34]        + source: 720 * 480, crop (0/0/0/0): 720 * 480, scale: 720 * 480
[04:17:34]    + Output geometry
[04:17:34]      + storage dimensions: 720 x 480
[04:17:34]      + pixel aspect ratio: 32 : 27
[04:17:34]      + display dimensions: 853 x 480
[04:17:34]    + encoder: H.265 (Intel Media SDK)
[04:17:34]      + preset:  quality
[04:17:34]      + profile: auto
[04:17:34]      + level:   auto
[04:17:34]      + quality: 18.00 (ICQ)
[04:17:34]      + color profile: 6-1-6
[04:17:34]  * subtitle track 1, English Closed Caption (Wide Screen) [VOBSUB] (track 0, id 0x20bd, Picture) -> Passthrough
[04:17:34]  * subtitle track 2, Francais (Wide Screen) [VOBSUB] (track 1, id 0x21bd, Picture) -> Passthrough
[04:17:34]  * subtitle track 3, español (Wide Screen) [VOBSUB] (track 2, id 0x22bd, Picture) -> Passthrough
[04:17:34]  * subtitle track 4, English Director's Commentary (Wide Screen) [VOBSUB] (track 3, id 0x23bd, Picture) -> Passthrough
[04:17:34]  * audio track 1
[04:17:34]    + name: English Dialog
[04:17:34]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x80bd)
[04:17:34]      + bitrate: 384 kbps, samplerate: 48000 Hz
[04:17:34]    + AC3 Passthru
[04:17:34]  * audio track 2
[04:17:34]    + name: French Dialog
[04:17:34]    + decoder: Francais (AC3) (5.1 ch) (track 2, id 0x81bd)
[04:17:34]      + bitrate: 384 kbps, samplerate: 48000 Hz
[04:17:34]    + AC3 Passthru
[04:17:34]  * audio track 3
[04:17:34]    + name: Spanish Dialog
[04:17:34]    + decoder: español (AC3) (5.1 ch) (track 3, id 0x82bd)
[04:17:34]      + bitrate: 384 kbps, samplerate: 48000 Hz
[04:17:34]    + AC3 Passthru
[04:17:34]  * audio track 4
[04:17:34]    + name: English Commentary
[04:17:34]    + decoder: English (AC3) (Director's Commentary 1) (2.0 ch) (track 4, id 0x83bd)
[04:17:34]      + bitrate: 192 kbps, samplerate: 48000 Hz
[04:17:34]    + AC3 Passthru
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open N:\VIDEO_TS for reading
libdvdread: Device N:\VIDEO_TS inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file N:\VIDEO_TS.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open N:\VIDEO_TS for reading
libdvdread: Device N:\VIDEO_TS inaccessible, CSS authentication not available.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[04:17:34] sync: expecting 163697 video frames
[04:17:34] encqsvInit: using encode-only path
[04:17:34] encqsvInit: H.265/HEVC Main profile @ level 3.0
[04:17:34] encqsvInit: TargetUsage 1 AsyncDepth 5
[04:17:34] encqsvInit: GopRefDist 3 GopPicSize 24 NumRefFrame 6
[04:17:34] encqsvInit: BFramesMax 2 BRefType off
[04:17:34] encqsvInit: RateControlMethod ICQ ICQQuality 18
[04:17:34] sync: first pts video is 0
[04:17:34] sync: "Chapter 1" (1) at frame 1 time 0
[04:17:34] sync: first pts audio 0x80bd is 0
[04:17:34] sync: first pts audio 0x81bd is 0
[04:17:34] sync: first pts audio 0x82bd is 0
[04:17:34] sync: first pts audio 0x83bd is 0
[04:17:35] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 1.30
[04:17:35] sync: first pts subtitle 0x23bd is 213213
[04:17:46] sync: first pts subtitle 0x20bd is 3390387
[04:17:46] sync: first pts subtitle 0x21bd is 3390387
[04:17:46] sync: first pts subtitle 0x22bd is 3390387
[04:19:16] sync: "Chapter 2" (2) at frame 7686 time 28844566
[04:20:44] sync: "Chapter 3" (3) at frame 14462 time 54279976
[04:22:43] sync: "Chapter 4" (4) at frame 23654 time 88784446
[04:24:05] sync: "Chapter 5" (5) at frame 29966 time 112478116
[04:25:37] sync: "Chapter 6" (6) at frame 36654 time 137583196
[04:27:14] sync: "Chapter 7" (7) at frame 43875 time 164689025
[04:28:56] sync: "Chapter 8" (8) at frame 51434 time 193063621
[04:29:23] sync: "Chapter 9" (9) at frame 53446 time 200616166
[04:31:42] sync: "Chapter 10" (10) at frame 64015 time 240289550
[04:34:08] sync: "Chapter 11" (11) at frame 74918 time 281216686
[04:35:28] sync: "Chapter 12" (12) at frame 81106 time 304444891
[04:37:17] sync: "Chapter 13" (13) at frame 89538 time 336096511
[04:39:16] sync: "Chapter 14" (14) at frame 98834 time 370991371
[04:40:45] sync: "Chapter 15" (15) at frame 105722 time 396847201
[04:42:32] sync: "Chapter 16" (16) at frame 113970 time 427808131
[04:44:56] sync: "Chapter 17" (17) at frame 125134 time 469714996
[04:47:19] sync: "Chapter 18" (18) at frame 130943 time 491520530
[04:52:56] sync: "Chapter 19" (19) at frame 143126 time 537252466
[04:56:08] sync: "Chapter 20" (20) at frame 149799 time 562301240
[04:59:27] sync: "Chapter 21" (21) at frame 156903 time 588967880
[05:02:38] reader: done. 1 scr changes
[05:02:41] work: average encoding speed for job is 60.570480 fps
[05:02:41] vfr: 163837 frames output, 0 dropped and 2 duped for CFR/PFR
[05:02:41] vfr: lost time: 11261 (0 frames)
[05:02:41] vfr: gained time: 11261 (12 frames) (0 not accounted for)
[05:02:41] ac3-decoder done: 213542 frames, 0 decoder errors
[05:02:41] ac3-decoder done: 213542 frames, 0 decoder errors
[05:02:41] ac3-decoder done: 213542 frames, 0 decoder errors
[05:02:41] ac3-decoder done: 213542 frames, 0 decoder errors
[05:02:41] mpeg2video-decoder done: 163838 frames, 0 decoder errors
[05:02:41] sync: got 163838 frames, 163697 expected
[05:02:41] sync: framerate min 23.981 fps, max 29.970 fps, avg 23.976 fps
[05:02:41] mux: track 0, 163837 frames, 1004967991 bytes, 1176.53 kbps, fifo 2048
[05:02:41] mux: track 1, 213542 frames, 328000512 bytes, 384.00 kbps, fifo 2048
[05:02:41] mux: track 2, 213542 frames, 328000512 bytes, 384.00 kbps, fifo 2048
[05:02:41] mux: track 3, 213542 frames, 328000512 bytes, 384.00 kbps, fifo 2048
[05:02:41] mux: track 4, 213542 frames, 164000256 bytes, 192.00 kbps, fifo 2048
[05:02:41] mux: track 5, 1646 frames, 5150368 bytes, 6.03 kbps, fifo 32
[05:02:41] mux: track 6, 1585 frames, 4684760 bytes, 5.48 kbps, fifo 32
[05:02:41] mux: track 7, 1586 frames, 4600848 bytes, 5.39 kbps, fifo 32
[05:02:41] mux: track 8, 2047 frames, 7044336 bytes, 8.25 kbps, fifo 32
[05:02:41] libhb: work result = 0

# Encode Completed ...
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Sharp - fuzzy - sharp - fuzzy - sharp - fuzzy ...

Post by rollin_eng »

Do you get the same issue using x265 or even x264?
markfilipak
Bright Spark User
Posts: 313
Joined: Thu Aug 01, 2019 8:58 pm

Re: Sharp - fuzzy - sharp - fuzzy - sharp - fuzzy ...

Post by markfilipak »

rollin_eng wrote: Tue Dec 03, 2019 8:23 am Do you get the same issue using x265 or even x264?
Yes.

Thank you for providing direction. The results are very interesting & quite surprising. Bear in mind that the Source is mpeg2, 16:9-720x480i30. The running time is 4:42.

Code: Select all

Key to presets shorthand: O,O,O;FPS-23.976,CQ-23,B
            'Detelecine'__| | |     |         |  |__'Encoder Preset'
     'Interlace Detection'__| |     |         |__'Constant Quality' setting
               'Deinterlace'__|     |__'Framerate (FPS)' setting

File name                                           Bytes   Time
D,O,O;FPS-23.976,CQ-1,Q mpeg2 .mkv            127,522,043   0:13   ...excellent, natural looking
D,O,O;FPS-23.976,CQ-1,Q mpeg4 .mkv             84,824,464   0:14   ...excellent, natural looking
D,O,O;FPS-23.976,CQ-1,Q H.265QSV .mkv         550,307,331   1:26   ...next best, natural looking
D,O,O;FPS-23.976,CQ-10,Q H.265QSV .mkv        178,511,316   1:29   ...good, no crawling but a little too smooth (plastic)
D,O,O;FPS-23.976,CQ-18,Q x264 VerySlow .mkv    40,989,744   4:13   ...fair, faces still crawling a little
D,O,O;FPS-23.976,CQ-18,Q x265 VerySlow .mkv    36,415,785  22:47   ...fair, faces still crawling a little
I've been working out 7 classes of sources and how to get the 'timing'-type filters right so that there's no judder or combing or twitter. Now I'm tackling the cosmetic aspects given the Source's encoding. I will be publishing "Mark's Presets Cookbook".

I've been unable to find ffprobe or ffmpeg command arguments that will tell me whether the Source is 16:9-853x480i24 or 16:9-853x480p24. I know that it's 24 FPS because when I use a ffmpeg rawvideo command [1] to grab 900 frames, I wind up with only 720 frames (i.e., 4/5ths), which reflects the 2-3 pull-down characteristic of soft-telecine [2].
[1] ffmpeg -ss 30.0 -i %1 -hide_banner -filter:v idet -frames:v 900 -an -f rawvideo -y NUL
[2] ffmpeg rawvideo wants 900 frames. Since the metadata says '30 FPS', ffmpeg rawvideo goes for 30 seconds of the Source (i.e., 900 F / 30 FPS). But when it processes 30 seconds of rawvideo, it winds up with only 720 frames (30 S x 24 FPS). Therefore, the Source must be 24 FPS, not 30 FPS.

One last thing: I've read that I should avoid transcoding to a VFR (variable frame rate) Target. Is that really true? I'm seeing a surprisingly large number of VFR Sources.

Thanks for your attention and advice.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Sharp - fuzzy - sharp - fuzzy - sharp - fuzzy ...

Post by mduell »

markfilipak wrote: Tue Dec 03, 2019 11:54 amOne last thing: I've read that I should avoid transcoding to a VFR (variable frame rate) Target. Is that really true? I'm seeing a surprisingly large number of VFR Sources.
Absent a CFR constraint from your playback environment, transcoding to VFR is always recommended. If your playback environment requires CFR, then you have to deal with the choices to be made there.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Sharp - fuzzy - sharp - fuzzy - sharp - fuzzy ...

Post by JohnAStebbins »

I'm seeing a surprisingly large number of VFR Sources.
Nearly all of HandBrake's presets are PFR (peak framerate) for this reason. Peak framerate is variable framerate with a cap to prevent exceeding target device capabilities. The only presets that use CFR are for production environments where HandBrake is part of a workflow that includes other tools that may require CFR input.
markfilipak
Bright Spark User
Posts: 313
Joined: Thu Aug 01, 2019 8:58 pm

Re: Sharp - fuzzy - sharp - fuzzy - sharp - fuzzy ...

Post by markfilipak »

JohnAStebbins wrote: Tue Dec 03, 2019 5:31 pmNearly all of HandBrake's presets are PFR (peak framerate) for this reason. Peak framerate is variable framerate with a cap to prevent exceeding target device capabilities. The only presets that use CFR are for production environments where HandBrake is part of a workflow that includes other tools that may require CFR input.
Thanks, John. I was anguishing over how to get VFR and still get detelecine.

Explanation: When I was specifying CFR, I'd specify 23.976 FPS so that the detelecined fields wouldn't then be converted to some other frame rate.

Now, I see that detelecine & PFR (i.e., 'Peak Framerate') are independent of each other, that detelecine results in 23.976 FPS even though PFR is specified. As a practical matter, I imagine that for home use (i.e., non-streaming, non-web Targets), I could simply set 'Framerate: 120' + 'Peak Framerate' and leave it as a permanent setting, eh?

Regards, and Happy Holidays.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Sharp - fuzzy - sharp - fuzzy - sharp - fuzzy ...

Post by BradleyS »

Set peak frame rate to whatever the highest your playback devices support. For PC players this is usually not heavily constrained. Mobile devices and hardware media players are generally limited to 30 fps or 60 fps, though I imagine there are exceptions.
Post Reply