<div dir="ltr">On Aug 10, 2017,  "Michael T. Dean" wrote:<br>><br>> On Wed, Aug 9, 2017 at 5:55 AM, Dan Wilga wrote:<br>> On 08/09/2017 05:05 PM, Mark Perkins wrote:<br>> > On 10 August 2017 12:01:01 am "Michael T. Dean" wrote:<br>> ><br>> >> On 08/09/2017 10:04 AM, John Pilkington wrote:<br>> >>> Or search 'mythtv video hash'<br>> >>><br>> >>> Perhaps your ffmpeg processes gave identical results.<br>> >> Yes, this is most likely the issue. The hash that's created to identify<br>> >> unique videos is done with only a small part of the file at the<br>> >> beginning and the end (because reading multiple gigabytes per file from<br>> >> disk and running the entire video through a hash algorithm would take<br>> >> ages to complete). It's likely your test files are just too close to<br>> >> the same, so are being considered the same and only showed once (one or<br>> >> the other is shown and the one not shown is ignored).<br>> >><br>> >> There's no way to "fix" this as it's working as designed (and typical<br>> >> use cases don't involve multiple almost identical files).<br>> > I wonder if the hash algorithm could be updated to include the file<br>> > creation date or something else similar to help mitigate this type of overlap?<br>><br>> We're using the same hash algorithm used by other projects, the<br>> OpenSubtitles hashing algorithm, which is based on Media Player Classic.<br>> <a href="http://trac.opensubtitles.org/projects/opensubtitles/wiki/HashSourceCodes">http://trac.opensubtitles.org/projects/opensubtitles/wiki/HashSourceCodes</a><br>><br>> Any changes make ours a custom hash, with custom bugs and custom testing<br>> and custom maintenance required. It's also quite possible that some<br>> people are using the hash with other programs.<br>>  <br>><br>> <br><br>I checked the files and they are, in fact, identical, despite using different command options to ffmpeg. So, I suppose there is not really a big issue. Thanks for pointing out the hash algorithm, at least it is not a mystery to me any longer.<br><br>Mark<br><br></div>