Skip to content

k2-gc/video-save-clip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Save Clip

Language: En/Ja

Overview

This code allows you to clip mp4 video file and to save frames in the video.

Checked work env

  • Mac
  • Windows11 (A bug: Fail to delete copied "tmp.mp4" video file to open)

Prerequisites

  • Python>=3.8
  • TKinter

How to Install

After installing Python>=3.8, please run command below in your venv.

pip install -U pip setuptools build
python -m build
pip install dist/video_clip-1.0.0-py3-none-any.whl

Usage

App Run Using CLI

Run the command below.

video-clip run

App Run

Run the command below.

python -m video_clip.app_sample

App Screen

A Window like below will be displayed.

How to use it

  1. Choose "File" button.

  1. Choose a mp4 video you want to open on a filedialog.

  2. The video frame will be shown on a screen (In blue rectangle)

  1. Change a displayed frame by using a slider or left/right key on keyboard (In red rectangle)

  2. When the frame you want to start clipping video or saving frame appears, choose "Start pos" button (In green rectangle)

  3. When the frame you want to stop clipping video or saving frame appears, choose "Stop pos" button (In green rectangle)

  4. (In orange rectangle)

  • If you want to clip video, choose "Video clip" button
  • If you want to save frames, fillin the number of frames you want to save in textbox and push "Frame save" button
  1. A video or frames will be saved in current directory

  2. Press "q" key on keyboard when you want to quit

TODO

  • Use "help" combbox insted of "help" window
  • Add video length info
  • Change the place to store file name from controller to data
  • Use tkinter progress bar when clipping/saving.
  • Use input textbox in "Start pos" and "Stop pos" index.