Language: En/Ja
This code allows you to clip mp4 video file and to save frames in the video.
- Mac
- Windows11 (A bug: Fail to delete copied "tmp.mp4" video file to open)
- Python>=3.8
- TKinter
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
Run the command below.
video-clip run
Run the command below.
python -m video_clip.app_sample
A Window like below will be displayed.
- Choose "File" button.
-
Choose a mp4 video you want to open on a filedialog.
-
The video frame will be shown on a screen (In blue rectangle)
-
Change a displayed frame by using a slider or left/right key on keyboard (In red rectangle)
-
When the frame you want to start clipping video or saving frame appears, choose "Start pos" button (In green rectangle)
-
When the frame you want to stop clipping video or saving frame appears, choose "Stop pos" button (In green rectangle)
-
(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
-
A video or frames will be saved in current directory
-
Press "q" key on keyboard when you want to quit
- 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.