Docs @ Psychtoolbox Wiki : PlayMoviesDemoOSX

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

PlayMoviesDemoOSX

PsychtoolboxPsychDemosQuicktimeDemos


PlayMoviesDemoOSX(moviename [, backgroundMaskOut][, tolerance])

This demo accepts a pattern for a valid moviename, e.g.,
moviename='*.mpg', then it plays all movies in the current working
directory whose names match the provided pattern, e.g., the '*.mpg'
pattern would play all MPEG files in the current directory.

If you don't specify a moviename, the demo will ask you if it should play
our standard DualDiscs.mov demo movie, or rather play through a set of
videos in a playlist which are streamed from the internet. These 'c'ool
videos may provide you with useful information for your daily work.

This demo uses automatic asynchronous playback for synchronized playback
of video and sound. Each movie plays until end, then rewinds and plays
again from the start. Pressing the Cursor-Up/Down key pauses/unpauses the
movie and increases/decreases playback rate.
The left- right arrow keys jump in 1 seconds steps. SPACE jumps to the
next movie in the list. ESC ends the demo.

If the optional RGB color vector backgroundMaskOut is provided, then
color pixels in the video which are equal or close to backgroundMaskOut will be
discarded during drawing. E.g., backgroundMaskOut = [255 255 255] would
discard all white pixels, backgroundMaskOut = [0 0 0] would discard all
black pixels etc. The optional tolerance parameter allows for some
lenience, e.g., tolerance = 10 would discard all pixels whose euclidean
distance in RGB color space is less than 10 units to the backgroundMaskOut
color. Background color masking requires a graphics card with fragment
shader support and will fail otherwise.





Path   Retrieve current version of PlayMoviesDemoOSX.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychDemos/QuicktimeDemos/PlayMoviesDemoOSX.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0352 seconds