FFmpeg Encoder Decoder for Python

Date: May 24, 2018
Last Updated: May 27, 2018
Categories:
Projects python
Tags:
ffmpeg python python-c-api rtsp-player video-stream

Contents


Introduction

As a python-c-api implementation, this project allows users to use pure python codes to read/write video files as easily as calling open function series. Currently it supports the formats including mpeg2, h254, h265(hevc), vp8, vp9, etc.

By designing a dual-thread architecture, it could also demux the remote video stream including rtp, rstp, etc. Because it is used for analytical purposes, this project does not extract the audio stream in the video file/stream. It only returns video frames from the file/stream, in the format of numpy/ndarray.

Example

We have giving some basic instructions on the main page of this project. To give users a better imagination about how to implement this tool, we also provide an example of a video-stream player. Click here to see how it works.

Example Player

Project Page

See here to view the main page of this project. You could also download the compiled binary files on this page.

Git Page