akamhy/videohash

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

akamg opened this issue · 1 comments

akamg commented

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:

  • Operating system:win8
  • Python Version:3.9
  • VideoHash version:3.0.1

Additional context
Add any other context about the problem here.

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)