Find moment from thumbnail in a YouTube video. Program presentation: https://www.youtube.com/watch?v=YvoJ_e35pSs
- General Info
- Technologies Used To Implement Core Features
- Features
- Screenshots
- How it works
- Setup
- Usage
- Project Status
- Room for Improvement
The program finds moment from thumbnail in a YouTube video. The user provides a link to the video, the program outputs a link to the video with a timestamp (a moment in which action form thumbnail takes place). Altought YouTube provides 'Most Replayed' feature that helps to find a moment from thumbnail manually, it may be not enough. Sometimes the most replayed segment of a video is not the one that is shown in a thumbnail, sometimes the feature is disabled. The app has serious limitation - it works only if thumbnail is exact frame from the video. I created this program because I wanted to create GUI app with MVC in Python.
- Python
- pytube
- OpenCV
- Tkinter
- Finding moment from thumbnail for YouTube videos
- GUI
- Exceptions handling (no Internet connection, invalid video link, pytube error)
- Program downloads the video and the thumbnail.
- Every frame of the video is compared with the thumbnail - mean of the differences between corresponding pixels is calculated.
- Timestamp of the frame with the lowest mean is retrieved.
- Install Python and Git, if you don’t have it already installed.
- Clone the repo
git clone https://github.com/kosmolub01/Youtube-thumbnail-finder.git
. - Install required packages
python -m pip install -r requirements.txt
(run this command in project folder).
Run python controller.py
.
Project is: in progress.
Room for improvement:
- Determine better way of comparing thumbnail and each frame of a video, so the program will be more universal and work for other types of thumbnails (not only for those that are exact frames from the video)
- Don't overload the CPU that much
- App heavily relies on pytube, which is not perfect. Sometimes it has problems with accessing available videos. Consider changing the library.
To do:
- Add comments