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.tar.gz
(8.6 kB
view details)
File details
Details for the file vre_video-0.1.tar.gz.
File metadata
- Download URL: vre_video-0.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 |
e1be2a511c0a974f2a89abc216982d79c0debdd41dae98a6e6dcc1b938dc5129
|
|
| MD5 |
31c85917920eb51a9b97109d5ff4deb5
|
|
| BLAKE2b-256 |
9fcc0003ef3f6cbb86474f071eccc6135416ba9ca66b103f1703b20707cab8ca
|