VideoXT is a simple library and CLI tool for extracting audio, individual frames, short clips and GIFs from videos.
See the documentation for more details.
Installation
Available on pypi.
pip install videoxt
Usage
From the command-line:
# extract audio from a video file (default: 'mp3')
$ videoxt audio MyVideo.mp4
{"video": {"filepath": "C:/Users/gurrutia/MyVideo.mp4", ...}, "start_time": 0, ...}
# extracting audio...
{"success": true, ...}
$ ls
MyVideo.mp4 MyVideo.mp3
As a library:
$ python
>>> # extract all frames from a video file (default: 'jpg')
>>> import videoxt
>>> filepath = 'C:/Users/gurrutia/MyVideo.mp4' # or <class 'pathlib.Path'>
>>> result = videoxt.extract_frames(filepath) # or videoxt.extract('frames', filepath)
>>> result.destpath
pathlib.Path('C:/Users/gurrutia/MyVideo.mp4_frames')
>>> result.elapsed_time
3.14159265358979323
>>> len(list(result.destpath.glob('*.jpg'))) # default: 'jpg'
100 # number of frames extracted
>>> result.json()
{'success': True, ...}
Contributing
For guidance on setting up a development environment and to make a contribution, see the contributing guidelines.
Used By
- Best Buy Teen Tech Center at Grand St. Settlement, allowing filmmaking instructors to gather film stills that aid in constructing lesson plans for their youth workshops. Download a workshop example here.
Metadata
Release files for videoxt 1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| videoxt-1.1.6.tar.gz | 42.9 kB | Without provenance | Details for videoxt-1.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| videoxt-1.1.6-py3-none-any.whl | Python 3 | none | any | Details for videoxt-1.1.6-py3-none-any.whl |
Total release size: 91.8 kB
Release files / videoxt-1.1.6.tar.gz
| Download URL | videoxt-1.1.6.tar.gz |
|---|---|
| Size | 42.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a63b8388987401b680a6d6d01b282f2e57e6830293ce845abf8151bfa39318a
|
|
BLAKE2b-256 checksum How to use checksums |
6fac42eff656c4d329386bf24b72f7b7add8638d6f1c7109f3a6be987ca0591d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / videoxt-1.1.6-py3-none-any.whl
| Download URL | videoxt-1.1.6-py3-none-any.whl |
|---|---|
| Size | 49.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb683d34d340d2b120d443051b9f727ad207ca23cc67d19179918f255afdb789
|
|
BLAKE2b-256 checksum How to use checksums |
addfd4456652a677f55750a2d84c99eaf83cfe075774760ceb41c2271b4aa53b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for videoxt 1.1.6
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.