VideoCreateΒΆ

VideoCreate creates a video object.

hVideo = VideoCreate()
hVideo = VideoCreate(ssFilename)

Return Value

hVideo is the object handle.

Parameters

ssFilename

ssFilename is the complete file name of a video file.

Comment

The video object uses the Microsoft Media Control Interface (MCI).

This interface supports the following formats: WMV, MPG, AVI. On some computers the .mp4 format is supported, if the file extension is .mpg. Unfortunately the MCI interface does not provide a detailed specification of the supported formats.

Other formats can be converted with FFmpeg, see http://www.ffmpeg.org.

Example: Create MPG file from a MP4 file:

ffmpeg -i test.mp4 -qmax 8 test.mpg

Create a snap shot from the position 4.5 seconds:

ffmpeg -ss 4.5  -i test.mpg -vframes 1 -f image2 test.jpg

Example

See VideoCommand.

History

Version Description
R2013.3 New.

id-1105160