Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abarbu/ffmpeg-matlab
Matlab FFmpeg bindings for decoding videos
https://github.com/abarbu/ffmpeg-matlab
Last synced: 25 days ago
JSON representation
Matlab FFmpeg bindings for decoding videos
- Host: GitHub
- URL: https://github.com/abarbu/ffmpeg-matlab
- Owner: abarbu
- Created: 2014-05-20T17:58:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-29T04:49:09.000Z (about 8 years ago)
- Last Synced: 2024-04-15T01:18:13.901Z (7 months ago)
- Language: C
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```matlab
ffmpegOpenVideo('video.mov');
imshow(ffmpegGetFrame());
ffmpegNextFrame();
imshow(ffmpegGetFrame());
ffmpegCloseVideo();
```An example of writing video frames to disk:
```matlab
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.