Code covered by the BSD License  

Highlights from
Tools for generating and playing video realtime

Be the first to rate this file! 17 Downloads (last 30 days) File Size: 6.35 KB File ID: #35823
image thumbnail

Tools for generating and playing video realtime

by

 

22 Mar 2012 (Updated )

Generation of video in matlab, with the means of playing it realtime in a separte thread via VLC

| Watch this File

File Information
Description

This is done with perceptual studies especially in mind.

For example output:
http://islab.hh.se/mediawiki/index.php/Stefan_Karlsson/PersonalPage

The function generateMotionStimulus shows the principle of making proper motion based stimulus without bias stemming from the discrete nature of the pixels. An example of making a moving disk INACCURATELY is provided by rendering 'aliasedDisk', and is contrasted with the proper way. Gabor patches type of stimulus in motion can be generated, to illustrate the usefullness of this script.

script playVid only works in windows. It shows how to call the VLC player using command line arguments from matlab, in a new thread with realtime priority. It is used to display the generated videos.

script runMe provides a demo.

Required Products MATLAB
MATLAB release MATLAB 7.11 (R2010b)
Other requirements VLC player, open-source project http://www.videolan.org/vlc/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
25 Mar 2012

No longer using the matlab function getFrame (crashes when resizing and introduces artefacts).

Better threshold for the anti-aliasing.

"threePatterns" now have non-uniform motion and time-varying fuzziness.

26 Mar 2012

Added link to example output in description: http://islab.hh.se/mediawiki/index.php/Stefan_Karlsson/PersonalPage

Contact us