akamhy / videohash

Near Duplicate Video Detection (Perceptual Video Hashing) - Get a 64-bit comparable hash-value for any video.
https://pypi.org/project/videohash
MIT License
264 stars 41 forks source link

ERROR: [generic] None: Unable to download webpage: (caused by URLError('unknown url type: c')) #106

Open akamg opened 11 months ago

akamg commented 11 months ago

To Reproduce Generate videohash of a video directly from its path url1 = "C:\Users\PCNAME\Documents\myapp\static_media\vid1.mp4" videohash1 = VideoHash(url=url1)

url2 = "C:\Users\PCNAME\Documents\myapp\static_media\vid2.mp4" videohash2 = VideoHash(url=url2)

Expected behavior please I want to Generate videohash of these videos directly from their path. videohash1.is_similar(videohash2) False

Screenshots If applicable, add screenshots to help explain your problem.

Please complete the following information:

Additional context Add any other context about the problem here.

Demmenie commented 4 days ago

You're trying to feed a path string to the url parameter. Try using the path parameter instead. Like this:

path1 = "C:\Users\PCNAME\Documents\myapp\static_media\vid1.mp4"
videohash1 = VideoHash(path=path1)