VideoSnapshotΒΆ
VideoSnapshot creates a bitmap snapshot for the specified position of the given video file. The snapshot is displayed instead of the video.
- ret = VideoSnapshot(hVideo)
- ret = VideoSnapshot(hVideo, ssBitmapFile)
- ret = VideoSnapshot(hVideo, ssBitmapFile, pos)
- ret = VideoSnapshot(hVideo, ssBitmapFile, pos, ssVideoFile)
Return Value
ret
Parameters
- hVideo
hVideo is the handle of the video object.
- ssBitmapFile
ssBitmapFile is the complete bitmap file.
- pos
pos is the position in milliseconds or -1 for the current position.
- ssVideoFile
ssVideoFile is the name of the video file.
Comment
If FFmpeg.exe is installed and the path name is set in the environment
variable path, the program is used to create the snapshot.
(see http://www.ffmpeg.org und https://de.wikipedia.org/wiki/FFmpeg).
If FFmpeg.exe is not found, DirectX (DirectShow) is used to create the
snapshot. Sometimes the DirectX function fails to create the bitmap. Therefore
FFmpeg.exe is preferable.
History
Version |
Description |
|---|---|
R2013.3 |
New. |
See also
id-515123