Video Representations Extractor (VRE) Video reader
Project description
FFmpeg Video
A python video reader that can read video frames using ffmpeg behind the scenes.
Install:
git clone https://gitlab.com/meehai/ffmpeg-video/
echo "$(pwd)/ffmpeg-video" >> ~/.bashrc
source ~/.bashrc
pip install -r ffmpeg-video/requirements.txt
Handle venv/conda/uv stuff on your own!
Usage:
from ffmpeg_video import FFmpegVideo
video = FFmpegVideo("video.mp4")
frame = video[ix] # returns a numpy array
TODOs:
- A mid term plan is to get rid of
ffmpeg-pythonpackage and just callffmpegourselves. - Make the generic video class receive
FrameReaderandFrameWriterand makeFFmpegVideoinheritFrameReaderso we can have different backends for reading/writing. - More integration tests with actual videos
Potential future API:
from video_reader import Video
video = Video("video.mp4", backend="ffmpeg") # or read/write_backend ?
frame = video[ix]
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
vre_video-0.1.3.tar.gz
(8.6 kB
view details)
File details
Details for the file vre_video-0.1.3.tar.gz.
File metadata
- Download URL: vre_video-0.1.3.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcbb5d3e22a03946873e5a3d49d5d7c394d6c123dc2d6d9bbef5c70697542dcb
|
|
| MD5 |
358cabe0a227bc9284f80c400c5b63b2
|
|
| BLAKE2b-256 |
c8953b5a1525d27a34ac6a24431a14a51d324d6dd24d53fa46186848796540b6
|