An open API service indexing awesome lists of open source software.

https://github.com/dbeley/extract_distinct_frames

Extract distinct frames/images from a video file or a youtube video
https://github.com/dbeley/extract_distinct_frames

Last synced: about 1 month ago
JSON representation

Extract distinct frames/images from a video file or a youtube video

Awesome Lists containing this project

README

          

# extract_distinct_frames

This script allows the extraction of the distinct frames/images from a video file or a youtube url (with the help of yt-dlp).

The script creates a folder and a pdf file, both containing all the distinct images found.

## Prerequisites

- img2pdf
- tqdm
- pillow
- yt-dlp
- ffmpeg

## Installation in a virtualenv

```
pipenv install '-e .'
```

## Usage

```
extract_distinct_frames -u URL
```

## Help

```
extract_distinct_frames -h
```

```
usage: extract_distinct_frames [-h] [--debug] [-f FILE] [-u URL]

Extract unique images from videos

optional arguments:
-h, --help show this help message and exit
--debug Display debugging information
-f FILE, --file FILE Video file
-u URL, --url URL URL of the video
```