Posts Tagged ‘video’

Create video mash

Monday, December 15th, 2008

Looking for a tool to merge videos into reel server-side, I came accross the following:
http://www.moviemasher.com/
It’s an open-source tool allowing video (flv) manipulation through a web interface.

Unfortunately, it doesn’t seem to provide video export features – your video mash is saved as a set of media asset and meta-data, which means it can be seen only through the video player shipped with the product (at least as far as I understand…)

Video cue points

Wednesday, October 29th, 2008

If you want to trigger some events at certain times of a playing video, an easy solution is to use cue points.

You need to

a) place an instance of the VideoPlayer component on the stage

b) on the as file for your animation, add cue point on the video:

this.videoComponent.addASCuePoint(5, "firstCuePoint");
this.videoComponent.addASCuePoint(10, "secondCuePoint");

This add 1 cue point at 5.00 seconds of the video, and another at 10.00 seconds

c) add a listener

this.videoComponent.addEventListener(MetadataEvent.CUE_POINT, _handleCuePoint);

d) on the listening function, find out which cue point was triggered, and play along!

private function _handleCuePoint(pEvent:MetadataEvent) {
trace("CUE POINT REACHED!");
if (pEvent.info.name == "firstCuePoint"){
  //do something regarding the first cue point
}else{
  //do something regarding the second cue point
}
}