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 | |
|---|---|---|---|
| videoxt-1.1.6.tar.gz | 42.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| videoxt-1.1.6-py3-none-any.whl | Python 3 | none | any | Details |
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
|