Extract audio, individual frames, short clips and GIFs from videos.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file videoxt-1.1.6.tar.gz.
File metadata
- Download URL: videoxt-1.1.6.tar.gz
- Upload date:
- Size: 42.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a63b8388987401b680a6d6d01b282f2e57e6830293ce845abf8151bfa39318a
|
|
| MD5 |
5e896a1b05c1cbe7b122cb9fd3d8b59e
|
|
| BLAKE2b-256 |
6fac42eff656c4d329386bf24b72f7b7add8638d6f1c7109f3a6be987ca0591d
|
File details
Details for the file videoxt-1.1.6-py3-none-any.whl.
File metadata
- Download URL: videoxt-1.1.6-py3-none-any.whl
- Upload date:
- Size: 49.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb683d34d340d2b120d443051b9f727ad207ca23cc67d19179918f255afdb789
|
|
| MD5 |
6924448a046395bb421d98f4c13b6838
|
|
| BLAKE2b-256 |
addfd4456652a677f55750a2d84c99eaf83cfe075774760ceb41c2271b4aa53b
|