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

Write FFmpeg installer for windows in Python 3 (should try if you are good at writing installer for windows) #48

Closed akamhy closed 2 years ago

akamhy commented 2 years ago

If you are good at Python please write a script that would download the latest FFmpeg from https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z

Uncompress the archive.

Copy the bin directory from the decompressed folder, and paste inside C:\Program Files\ffmpeg.

Add C:\Program Files\ffmpeg\bin\ to the Environment Variables.

See https://github.com/akamhy/videohash/wiki/Install-FFmpeg,-but-how%3F#install-ffmpeg-on-windows.

I've written a script for testing on windows, you may find it useful. Link : https://github.com/akamhy/videohash/blob/main/assets/windows_ffmpeg_downloader_at_cwd.py

akamhy commented 2 years ago

The code must be highly reliable and must support python 3.6 and later. Also, the code must work on windows 7 and up.

akamhy commented 2 years ago

Also you must release the installer under The MIT License(same as the repository)

akamhy commented 2 years ago

Also, make sure that the FFmpeg is not in the path before installation.

akamhy commented 2 years ago

Running the installer python3 <path-to-installer>\windows_installer.py should install the FFmpeg binaries.

akamhy commented 2 years ago

Okay, I tried and failed to make a cross windows version(Windows7+) FFmpeg installer. It was my mistake opening this very hard to implement issue for Hacktoberfest which is intended for first-time coders and university students.

But if you are a great programmer and can make installing FFmpeg less painful for end-users please re-open this issue.