Skip to content

A rust library that provided a simple iterator around video files.

Notifications You must be signed in to change notification settings

expenses/videostream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Videostream

A rust library that provided a simple iterator around video files.

Requires ffmpeg to be installed.

Example

To read the first five frames of a video and write them to files is just:

extern crate videostream;

use videostream::VideoStream;

fn main() {
    let mut stream = VideoStream::new("file.mp4").unwrap();

    for (i, frame) in stream.iter().take(5).enumerate() {
        let image = frame.as_rgb().unwrap();
        image.save(&format!("{}.png", i));
    }
}

About

A rust library that provided a simple iterator around video files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages