tkvideo - Tk video widget
This package provides a Tk widget that can display video streams from streaming video sources or from files. At this time the package only supports DirectShow sources on Windows. It should be possible to extend the backend in the future to support other platforms.
Create a new instance of a video widget and configures it using the provided options and their values.
Returns information about the current configuration of the widget, for the specified option. For options and their meaning see the widget options section.
Modifies the configuration of the widget. For options and their meaning see the widget options section.
This command is used to query and change the horizontal position of the information in the widget's window.
This command is used to query and change the vertical position of the information in the widget's window
This command shows the DirectShow property pages for the video source. There may not be a property page to show, in which case nothing happens. For camera sources it is usually possible to configure the device with these pages. The filter page is the device driver page while the pin page is a lower level DirectShow page.
Start streaming the video source. For a file based source this will start at the beginning of the stream. For camera sources the video becomes live.
Pause the video stream.
Stop the stream.
Returns a list of available input devices. An index into this list should be specified for use with the -source configuration option.
Capture a photo image from the video stream. The image name may be specified. If no name is provided then an automatic name is provided using the normal "image photo create" command. The command returns the name of the Tk image created.
Returns a three element list giving the current position, the stop position and the maximum position for the current stream. The stop position is not currently available to be changed but is the location that the current playback will halt at.
Moves the current seek position to the specified location. The start or the stream will always be 0 and the end of the stream is provided as the third list item returned by the tell command.
Get or set the volume of the audio channel if one is present. The volume values are a floating-point linear range from silent at 0 to maximum at 100. If no value is provided, the current volume is returned.
% pack [tkvideo .v -source 0] -expand 1 -fill both .v % .v start
Pat Thoyts <email@example.com>
avi, mpeg, video, webcam
Copyright © 2004, Pat Thoyts