VideoReader Create object to read video files

collapse all in page

Syntax v = VideoReader(filename)

example

v = VideoReader(filename,Name,Value)

Description v = VideoReader(filename) creates object v to read video data from the file named filename.

example

v = VideoReader(filename,Name,Value) creates the object with additional options specified by one or more name­value pair arguments.

Examples

collapse all

Create VideoReader Object and Read Video Create a VideoReader object for the example movie file, xylophone.mp4. v = VideoReader('xylophone.mp4');

Read all video frames. while hasFrame(v)     video = readFrame(v); end whos video

  Name         Size                Bytes  Class    Attributes   video      240x320x3            230400  uint8              

Input Arguments

collapse all

filename — File name string File name, specified as a string. VideoReader supports these file formats: Platforms

File Formats

All Platforms

AVI, including uncompressed, indexed, grayscale, and Motion JPEG­encoded video (.avi) Motion JPEG 2000 (.mj2)

All Windows

®

MPEG­1 (.mpg) ® Windows Media  Video (.wmv, .asf, .asx) ® ® Any format supported by Microsoft  DirectShow

Windows 7 or later

MPEG­4, including H.264 encoded video (.mp4, .m4v) Apple QuickTime Movie (.mov) Any format supported by Microsoft Media Foundation

Macintosh

Most formats supported by QuickTime Player, including: MPEG­1 (.mpg) MPEG­4, including H.264 encoded video (.mp4, .m4v) Apple QuickTime Movie (.mov) 3GPP 3GPP2 AVCHD

DV Linux

®

Any format supported by your installed plug­ins for GStreamer 0.10, as listed onhttp://gstreamer.freedesktop.org/documentation/plugins.html, including Ogg Theora (.ogg). Note: Support is provided for GStreamer 0.10 only, not later versions.

Example: 'myFile.mp4' Example: '../dir/videos/myFile.avi' Data Types: char

Name­Value Pair Arguments Specify optional comma­separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order asName1,Value1,...,NameN,ValueN. Example: v = VideoReader('myFile.avi','CurrentTime',35.2) creates a VideoReaderobject to read myFile.avi, starting from the video frame that is 35.2 seconds from the beginning of the file. 'CurrentTime' — Timestamp of video frame to read 0 (default) | numeric scalar Timestamp of the video frame to read, specified as the name­value pair consisting of'CurrentTime' and a numeric scalar. The timestamp is specified in seconds from the start of the video file. The value of CurrentTime can be between zero and the duration of the video. Example: 'CurrentTime',5.6 Data Types: double

'Tag' — String data '' (default) | string String data, specified as the name­value pair consisting of 'Tag' and a string. Example: 'Tag','Experiment 109' Data Types: char

'UserData' — User­defined data [] (default) | any User­defined data, specified as the name­value pair consisting of 'UserData' and a value of any data type.

Output Arguments

collapse all

v — Output VideoReader object VideoReader object Output VideoReader object. After you create a VideoReader object, you can read video files using object functions. See Using VideoReader Objects for details.

More About Read Video Files

See Also mmfileinfo | VideoWriter

Introduced in R2010b

Create object to read video files - MATLAB VideoReader.pdf ...

Page 3 of 32. Page 3 of 32. Create object to read video files - MATLAB VideoReader.pdf. Create object to read video files - MATLAB VideoReader.pdf. Open.

125KB Sizes 5 Downloads 219 Views

Recommend Documents

Create object to write video files - MATLAB VideoWriter.pdf ...
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Create object to ...

Read Video Files - MATLAB & Simulink.pdf
Read Video Files - MATLAB & Simulink.pdf. Read Video Files - MATLAB & Simulink.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Read Video ...

Export to Video - MATLAB & Simulink.pdf
Export to Video - MATLAB & Simulink.pdf. Export to Video - MATLAB & Simulink.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Export to Video ...

Read video frame data from file - MATLAB readc.pdf
Read video frame data from file - MATLAB readc.pdf. Read video frame data from file - MATLAB readc.pdf. Open. Extract. Open with. Sign In. Main menu.

Create morphological structuring element (STREL) - MATLAB strel.pdf ...
Create morphological structuring element (STREL) - MATLAB strel.pdf. Create morphological structuring element (STREL) - MATLAB strel.pdf. Open. Extract.

Read video frame data from file - MATLAB read.pdf
Read video frame data from file - MATLAB read.pdf. Read video frame data from file - MATLAB read.pdf. Open. Extract. Open with. Sign In. Main menu.

Write video files - MATLAB.pdf
Write video files - MATLAB.pdf. Write video files - MATLAB.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Write video files - MATLAB.pdf.

Download Web Page and Files - MATLAB & Simulink.pdf
Download Web Page and Files - MATLAB & Simulink.pdf. Download Web Page and Files - MATLAB & Simulink.pdf. Open. Extract. Open with. Sign In.

Face Detection and Tracking Using Live Video Acquisition - MATLAB ...
Face Detection and Tracking Using Live Video Acquisition - MATLAB & Simulink Example.pdf. Face Detection and Tracking Using Live Video Acquisition ...

INTRODUCTION TO MATLAB
7.1 Solve a Linear System . .... a sequence of Matlab commands that will be executed from top to bottom just as if you had typed them on the command ... There is also a wealth of information under Help Desk in the Help menu of Matlab's ...

INTRODUCTION TO MATLAB
Get on a department PC or buy Student Matlab for your own machine and start the .... x=0:h:20; % build an array of points [0,h,2h,...,20] ..... looks good. ... Note: the example in the box below is available on the Physics 330 course website, as.

Motion-Based Multiple Object Tracking MATLAB & Simulink Example.pdf
Motion-Based Multiple Object Tracking MATLAB & Simulink Example.pdf. Motion-Based Multiple Object Tracking MATLAB & Simulink Example.pdf. Open.

PFLib – An Object Oriented MATLAB Toolbox for ...
Under a United States Army Small Business Technology Transfer (STTR) project, we ... paper describes its object oriented design and programming interface.

MATLAB Implementation of Modulator for Video Signals - IJEECS
Research Scholar, VISVESVARAYA TECHNOLOGICAL UNIVERSITY. Belgaum, Karnataka, ... QPSK modulator for video signals using Matlab. The. Input video ...

Create PDF files without this message by purchasing novaPDF printer ...
Page 1. 1. 2. 3. 4. 5. 6. 7. Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)

Multiple Frames Matching for Object Discovery in Video
and the corresponding soft-segmentation masks across multiple video frames. ... mation method in video, based on Principal Component Analysis. Then, we ...

Object Detection in Video with Graphical Models
demonstrate the importance of temporal information, we ap- ply graphical models to the task of text detection in video and compare the result of with and without ...

moving object segmentation in video using stationary ...
per, we propose a video segmentation algorithm for tracking .... For video sequences in CIF and .... tors,” 33rd Annual Conference on Information Sciences.

Compressed Domain Video Retrieval using Object and ...
The object features such as speed, area and trajectory are then obtained after ... With the advent of broadband networks, high-powered workstations and ... (3) With the availability of hardware encoders and decoders for MPEG, such an.