Amazing-Python-Scripts

Форк
0

README.md

Framext

A python script that extracts frames from video

Setup instructions

To use this script, get a copy of the script into your system and pass in the required arguments

Detailed explanation of script, if needed

The Script takes the following Arguments:


python framext.py -h

usage: Frame Extractor [-h] -i VIDEO_FILE -o OUTPUT_DIR [-s SAMPLE_RATE]

options:
  -h, --help            show this help message and exit
  -i VIDEO_FILE, --video_file VIDEO_FILE
                        Location of video file
  -o OUTPUT_DIR, --output_dir OUTPUT_DIR
                        Output directory to store frames

The script works by extracting the FPS cap from the metadata of the video file and the length of the video. Then it uses OpenCV and counter to extract frames using the FPSCap and length of video.

Output

The supplied video file and the created folder:

The Frames extracted from the video

Author

Swastik Gorai

Disclaimers, if any

This script has no assoicated Disclaimers

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.