Skip to content

Comb detect interlace detection default != custom default??? #1125

Open

Description

Description of problem or feature request

The default settings used when using a custom interlace detection don't match the drop down "default" setting, which isn't intuitive at all (or the defaults in the tool tip).

Default settings in comb_detect.c
pv->mode = MODE_GAMMA | MODE_FILTER;
pv->filter_mode = FILTER_ERODE_DILATE;
pv->spatial_metric = 2;
pv->motion_threshold = 3;
pv->spatial_threshold = 3;
pv->block_threshold = 40;
pv->block_width = 16;
pv->block_height = 16;

Default in param.c
mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16

This lead to a lot of confusion when the results between "custom block-thresh=40" and default setting were very different.

Steps to reproduce the problem

Enter Custom Interlace Detection block-thresh=something and results way different than defaultish.

HandBrake version (e.g., 1.0.0)

Nightly 20180104000850-faab5c4-master

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

Windows 10

Error message text or screenshot

I uploaded 3 logs. One is using default drop down for interlace detection. One is using custom but using the values from the default dropdown setting. One is using custom but only using block-thresh=40 (which is the default). You will see the # of combed frames is the same between the default drop down and custom drop down using the default dropdown (and tooltip) values, but when doing just the block-thresh=40, there are way fewer combed frames.

HandBrake Activity Log required (see https://handbrake.fr/docs/en/latest/help/activity-log.html)

Corner_Gas_S01E01_Ruby_Reborn custom default.mp4 01-17-2018 10-42-17.txt
Corner_Gas_S01E01_Ruby_Reborn default.mp4 01-17-2018 09-31-17.txt
Corner_Gas_S01E01_Ruby_Reborn custom bt40.mp4 01-17-2018 10-47-53.txt

Paste log text between these markers.

Activity

  1. bradleysepos commented on Jan 23, 2018

    @bradleysepos
    Contributor

    This is something we should probably review for all filters. At the moment, when passing blank/null, it really passes nothing to the filters, so the internal defaults are used. It would be more intuitive to have the internal defaults for each filter equal the GUI defaults.

  2. added this to the 1.2.0 milestone on Jan 23, 2018
  3. modified the milestones: 1.2.0, 1.3.0 on Oct 3, 2018
  4. modified the milestones: 1.3.0, Unscheduled on Jan 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions