Skip to main content

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-python package and just call ffmpeg ourselves.
  • Make the generic video class receive FrameReader and FrameWriter and make FFmpegVideo inherit FrameReader so 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


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.4.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file vre_video-0.1.4.tar.gz.

File metadata

  • Download URL: vre_video-0.1.4.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

Hashes for vre_video-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e8216c4ef597fe8e40c39b2b2d6b6447e9e4d4e640c6ffcf359c889362719e5e
MD5 13f846a63bcdf5e33b40b8fd17dd40e4
BLAKE2b-256 e1218de7c6d452c822cc0bb161b8d19c22aa6275ddf46d14175ef047ccb01bb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page