Skip to content

A tiny python wrapper on top of FFMpeg

License

Notifications You must be signed in to change notification settings

alesanfra/pycord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version

Pycord - A tiny python wrapper on top of FFMpeg

Pycord is a simple python wrapper on top of ffmpeg designed to load videos into numpy ndarrays quickly and easily.

You can use Pycord in place of more complex video loader as OpenCV or Decord in your Computer Vision or Machine Learning projects.

Example

from pycord.video_reader import VideoReader

vr = VideoReader("video.mp4")

b = vr.get_batch([5, 8])

Documentation

There's no documentation at the moment, take a look to the tests to find some examples of use.

Contributing

The main idea of this project is to provide a decord-like interface completely written in python (hance the name pycord, a python implementation of decord).

Any contribution is welcome as long as it is implemented in pure python.

I'm looking for something faster...

If you think pycord is slow, and you don't mind to deal directly with some low-level code, take a look to my other project iterframes! It's a python module implemented in Rust with the aim to be as fast as possible.