stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
8.72k stars 774 forks source link

[Feature] Set minimum video length in duplicate checker #4174

Open slimthick opened 11 months ago

slimthick commented 11 months ago

Is your feature request related to a problem? Please describe. I've noticed most of the mega-groups of false positives are for videos that are shorter than ~10 seconds.

I also see that you can filter with the difference by a fixed value but that leads to another observation. The maximum value 10 seconds is not enough because, unfortunately, some of my videos have an 1 minute ad that plays at the beginning and end of the video and I'd like to purge these vids as I find better versions. Maybe a percentage of the length of the video instead because in my example those 2 minutes of ads adds 8% to the length of a ~25 minute video.

Describe the solution you'd like

  1. A setting to discard videos that are less than a certain length (in this case 10 seconds)
  2. A percentage value for video length difference

Describe alternatives you've considered I use an external application called VDF (video duplicate finder) because it has a % video length and other filtering features but it is not as accurate as your implementation.

DogmaDragon commented 11 months ago

The underlying issue will probably get addressed by https://github.com/stashapp/stash/pull/4074.

slimthick commented 11 months ago

Oh, that does seem promising because with any of the duplicate finding software I use managing the large groups of false positives is always a chore.