GithubHelp home page GithubHelp logo

kanryu / pipeffmpeg Goto Github PK

View Code? Open in Web Editor NEW
56.0 8.0 10.0 617 KB

A frontend for ffmpeg using only pipes, not under GPL, but under BSD license.

License: Other

Python 100.00%
ffmpeg python pipe video frame

pipeffmpeg's Introduction

PipeFFmpeg

A frontend for ffmpeg(libav) using only pipes, to encode/decode/convert videos by each frame, not under GPL, but under BSD license.

Features:

  • To get ffmpeg's infomation (versions,codecs,formats,pix_fmts,...)
  • To decode frames from a video
  • To encode a video within posting frames in Python

You can install and test pipeffmpeg as follows:

  1. download ffmpeg(libav) binary or source and build that (not necessary as shared-library).
  2. set bin/ffmpeg or ffmpeg.exe(under Windows) into PATH environment
  3. download pipeffmpeg.py into your current directory or site-packages

pipeffmpeg (currently version 0.1.1) is also available at PyPI

pip install pipeffmpeg

Please report issues as well as configuration details for your working PipeFFmpeg installations at [email protected]

Thus, your feedback is welcome at [email protected].

pipeffmpeg's People

Contributors

kanryu avatar st92 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pipeffmpeg's Issues

Reading video file halts after a while

After installed, I found it can't manage larger files, it will generally suspend reading after reading 1k frames.

import pipeffmpeg

vid = pipeffmpeg.InputVideoStream()
vid.open("A Long Video.mp4")

for i, img in enumerate(vid.readframe()):
    print i

subprocess PIPE objects have finite buffer size

Hello,

Me again. I've been fiddling with pipeffmpeg to get it working, and I've run across a reasonably large problem. subprocess PIPE objects have a limited buffer size, and once this buffer is overrun, the process will simply hang (without error). Basically, this limits the allowable size of videos that can be accessed via this strategy. Details on the larger issue can be found here.

A different strategy is to read the frames one at a time, or in cached batches. I've taken this strategy in https://github.com/davidcox/pipeffmpeg/tree/indexable_not_iterable

Basically, it computes time offsets from the video meta data and uses ffmpeg's -ss and -vframes options to pull out small batches of frames.

Thanks,
Dave

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.