EVP Toolbox
video_open - open video for reading
Calling Sequence
handle = video_open(filename);
Parameters
* filename : A string, the video filename to be open. The extension determines the type of the video.
Description
We use FFmpeg. FFmpeg is a complete solution to record, convert and stream audio and video. It includes libavcodec, the leading audio/video codec library. FFmpeg is a charming library. Now we can open almost all type of video file under both Linux and windows. For more information, go to http://ffmpeg.mplayerhq.hu/
Examples
Here is a example for converting video format:
in = video_open( 'ww.mpg');
out = video_open_w ('out.swf', 400000, 352, 288, 25);
[frame, num ] = video_info(in)
for i=1:num
im = video_read_frame(in);
video_write_frame( im, out );
end
video_close_w( out );
video_close(in);