GithubHelp home page GithubHelp logo

youxuan1 / ffmpeg-matlab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abarbu/ffmpeg-matlab

0.0 0.0 0.0 5 KB

Matlab FFmpeg bindings for decoding videos

C 90.22% Objective-C 1.06% MATLAB 2.19% M 3.92% Makefile 2.60%

ffmpeg-matlab's Introduction

FFmpeg/libav bindings for Matlab

These bindings use ffmpeg to read videos into Matlab. Just run make and addpath this directory.

Frames are decoded on the fly. The API is tiny and simple:

ffmpegOpenVideo('video.mov');
imshow(ffmpegGetFrame());
ffmpegNextFrame();
imshow(ffmpegGetFrame());
ffmpegCloseVideo();

An example of writing video frames to disk:

ffmpegOpenVideo('video.mp4');
frame = 1;
while(not(ffmpegIsFinished()))
    imwrite(ffmpegGetFrame(),sprintf('frame-%06d.ppm',frame));
    sprintf('frame-%06d.ppm',frame)
    frame = ffmpegNextFrame();
end
ffmpegCloseVideo();

For the moment only one video can be open at a time.

 This repository contains software developed by the Purdue University under
 the DARPA Mind's Eye program. This work was supported, in part, by NSF
 grant CCF-0438806, by the Naval Research Laboratory under Contract
 Number N00173-10-1-G023, by the Army Research Laboratory accomplished
 under Cooperative Agreement Number W911NF-10-2-0060, and by
 computational resources provided by Information Technology at Purdue
 through its Rosen Center for Advanced Computing.  Any views, opinions,
 findings, conclusions, or recommendations contained or expressed in
 this document or material are those of the author(s) and do not
 necessarily reflect or represent the views or official policies,
 either expressed or implied, of NSF, the Naval Research Laboratory,
 the Office of Naval Research, the Army Research Laboratory, or the
 U.S. Government.  The U.S. Government is authorized to reproduce and
 distribute reprints for Government purposes, notwithstanding any
 copyright notation herein.

ffmpeg-matlab's People

Contributors

abarbu avatar

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.