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.1.tar.gz
(8.6 kB
view details)
File details
Details for the file vre_video-0.1.1.tar.gz.
File metadata
- Download URL: vre_video-0.1.1.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 |
aa604f90c2d27d5301f07b54dcae9088908523374f614130ac39856479836299
|
|
| MD5 |
ad46b0684ddf5501da1a33df901f7889
|
|
| BLAKE2b-256 |
e4f6536f3b2f871ea91b72ba6bcfafe827f454f5bb0a9d637ee5d9745901c154
|