Overview
Utilities to handle video from camera. Contains various utilites that crop and split the video files.
Installation
In your virtual env do
$ pip install spvideoutils
Scripts
The following scripts are provided by the package.
- video_capture.py
- Captures a video from a camera to mp4 file on disk.
- video_split.py
- Splits a mp4 file into frames stored as png file on output dir.
- video_merge.py
- Merges the frames in png file from dir to a video file.
- video_crop.py
- Crops a video file from frame number i to j.
Developing VideoUtils
This involves
- Creating a python virtual env.
- Downloading the source code from GitHub
- Installing all the dependencies
- Installing the package in dev mode.
For example these are steps I typically do on my windows machine.
python -m venv venv_dev_spvideoutils
env_spvideoutils\Scripts\activate
git clone https://github.com/sanjeevs/spvideoutils.git
cd spvideoutils
pip install -r requirements.txt
pip install -e .
I can check that the env is correctly setup by invoking any of the scripts above from the same window.
>video_capture
usage: video_capture [-h] [--index INDEX] [--time TIME] outfile
video_capture: error: the following arguments are required: outfile
Creating a distribution package
Check the resource packaging.python.org on how to buiild the distribution.
- Bump the version of the software in setup.py
- Run the script to create the distribution in a new folder called dist.
python setup.py bist_wheel
This is done by publishing the changes to pypi. It involves the following steps.
- This is a pure python project and so a wheel distribution is required. Source distribtution (sdist) is for packages with C extensions.
- Use twine to upload the source distribution.
twine upload dist/*
Metadata
Release files for spvideoutils 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spvideoutils-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for spvideoutils-0.0.3-py3-none-any.whl |
Release files / spvideoutils-0.0.3-py3-none-any.whl
| Download URL | spvideoutils-0.0.3-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3463aa4b444c1f6e5d897c1c5134d0c497504189e90f0d0995ae1d78671eafce
|
|
BLAKE2b-256 checksum How to use checksums |
6c31dbc65326fc6b6b5cc1b071a0fa10a741207ec926be574ab71317f6196e16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Security for spvideoutils 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.