Video objects |
Top Previous Next |
Whisker version required
Video support requires WhiskerServer v4.0 (summer 2011).
In brief, Whisker plays videos using DirectShow. This means it supports any video filetype for which a decoder is available and registered with DirectShow (with a very few caveats as below). WMV9 (Windows Media Video 9) is supported as the default filetype.
Like any other object, video objects are placed in display documents, which may then be shown on display devices.
To play audio tracks from a video file, the display device must additionally be associated with a (claimed) audio device.
Caveats
There are some important caveats, as follows.
More on supported video file types
THESE WORK: - video codec type Windows Media Video 9 (and audio codec type Windows Media Audio 9.2) ... known as WMV9 ... uses the "WMVideo Decoder DMO" filter and works - things encoded with video codec "wmv2" and audio codec "wmav2" by ffmpeg (see below) SOME FILES WON'T LOAD, and say so. Convert them (see below). SOMETIMES AUDIO FAILS: - in which case the server log might say e.g. "Couldn't use bridge to create source graph - DirectX error in CSourceGraph::CSourceGraph: Cannot play back the audio stream: the audio format is not supported." - use the -noaudio flag in this case SOME FILES LOAD AND DON'T COMPLAIN BUT VIDEO PLAYS AS A BLANK SCREEN. - example: video codec type Windows Media Screen V7 (and audio codec type Windows Media Audio V8) ... fail because the VMR9 renderer insists on a colour space converter when used from an infinite tee, and the "WMV Screen decoder DMO" filter used by this format won't play through a CSC (as tested in GraphBuilder), unlike the "WMVideo Decoder DMO" filter TO INSPECT WMV VIDEO CODE TYPES: - run Windows Media Player; load file; then File > Properties GENERAL PROCEDURE TO MAKE SOMETHING WORK: - Install ffmpeg. On a Ubuntu/Debian Linux box: sudo apt-get install ffmpeg On a Windows box: see http://www.ffmpeg.org/ - ffmpeg -i INPUTVIDEO.XXX -vcodec wmv2 -acodec wmav2 OUTPUT.wmv - This also allows conversion from FLV, MPEG, etc. - Or with the newer avconv system: avconv -i INPUTVIDEO.XXX -c:v wmv2 -c:a wmav2 OUTPUT.wmv - In the case of a video with no audio, or to remove audio, you can do: avconv -i INPUTVIDEO.XXX -c:v wmv2 -an OUTPUT.wmv
Video configuration on the server
See Server – Video configuration
Video commands
Video objects are controlled using these conventional object-manipulation commands:
... and these video-specific commands:
|