A simple program using python to extract some section from a video file
Install pipenv to manage the virtual environment for the project
pip install pipenv
Then set the virtual environment on and install all the dependencies
pipenv install
Run the cut-video.py file. There are some arguments to specify:
Argument | Utilty |
---|---|
rute | The rute/name of the video file |
start | The start time to cut in seconds |
end | The start time to cut in seconds |
NAME (optional) | name or rute of the final cutted video |
For default the name of the final video will be test.mp4
For example, for extract the first 5 seconds from the video a.mp4 located in the current folder:
python cut-video.py a.mp4 0 5