Archive for the 'Video' Category

Flash: PerlinNoise+DisplacementMapFilter+WebCam

Sunday, October 2nd, 2005 by Luis

Dirty underwater simulation using perlinNoise, DisplacementMapFilter and a webCam:

SWF sample (You need a wbcam connected to your computer):

If you don't have a webCam, just click here to see the same effect apply to a static picture.

[flash]http://www.blog.lessrain.com/wp-content/upload/myperlinnoise_01.swf,250,250[/flash]

Quick And Dirty Source Code:

Actionscript:
  1. import flash.display.BitmapData;
  2. import flash.geom.*;
  3. import flash.filters.*;
  4.  
  5. var myVideoContainer:MovieClip=this.attachMovie("myVideoContainer","myVideoContainer",10);
  6.  
  7. var my_cam:Camera = Camera.get();
  8. myVideoContainer.video.attachVideo(my_cam);
  9.  
  10. var myNoise:BitmapData = new BitmapData(myVideoContainer._width, myVideoContainer._height);
  11. this.createEmptyMovieClip("bmp_mc", 9);
  12. bmp_mc.attachBitmap(myNoise, 1);
  13.  
  14. var offset:Point = new Point(0, 0);
  15. var p:Point = new Point(0, 0);
  16.  
  17. myVideoContainer._x=myVideoContainer._y=-30
  18.  
  19. onEnterFrame = function () {
  20.  
  21.     offset.y -= 15;
  22.     offset.x -= 9;
  23.    
  24.     myNoise.perlinNoise(myVideoContainer._width, 200, 1, 500, false, true, 1, false, [offset]);
  25.     displaceMap = new DisplacementMapFilter(myNoise, p, 1, 1, 100, 100, 'WRAP');
  26.     myVideoContainer.filters = [displaceMap];
  27. };


Flash: About Cue points

Friday, September 23rd, 2005 by Luis

Until now you could use a third party tool such as Captionate (fantastic piece of software developed by Manitu Group) to embed cue points (time markers within the video) directly into Flash Video (FLV) and trigger events dynamically during playback.

Now the new Flash 8 Video Encoder enables you to embed more metadata, including cue points, making extremely easy to expand the accesibility capabilities of flash, such as subtitles for the Deaf & Hearing Impaired.

Flash: Video+ Reflection+Ripples+Surfing

Thursday, September 22nd, 2005 by Luis

Nothing exceptionally new here, just testing the 'power' of the new flash 8 player putting together Video, masks and bitmap effects in the trailer of my favourite documentary (Riding Giants).

A contextual modification modification of the reflection example from Lee Bremelow.

Click the thumbnail to see the swf sample:

riding giants

Flash: EFFECTiveness in Flash 8

Monday, September 19th, 2005 by Luis

Well, probably this is not as fancy as 'fire', 'smoke', 'particles', '3d', but I would like to highlight this post from Tinic Uro where he gives some ideas of how to use the new 'Flash 8 features' in a different and practical way.

Worth to read: Using Flash Player 8 filters for good.

More ideas around this topic:

I think, since the new Flash Player has access to the pixel data of a webcam, we are close to the possibility of creating hands free devices that will enable many disable people to use their computers, such as Mouse Vision.

Related post: Flash 8 and webcams.

Flash: Standalone Video Player

Thursday, August 25th, 2005 by Luis

Following up our post Flash and Video (April 27th), and since most common video players dont support FLV, I would like to add a few more links to some tools to watch FLV files on your desktop:

Realated entries:

Flash 8 and webcams

Thursday, August 18th, 2005 by Luis

It seems that the new Bitmap Api in Flash 8 it could open new doors for the use of Flash in 'art installations' or any other form of interaction beyond the mouse, and even the possibility of creating hands free devices that will enable many disable people to use their computers, like Mouse Vision .

Keep an eye on what people is doing:

And see what other people have done in the past using other technologies (just a couple of examples) :

Flash: Captionate

Monday, May 30th, 2005 by Luis

Buraks announces Captionate 1.0. Captionate is a Win32 application for injecting multi-language caption/subtitle data into Flash video (FLV) files. You conveniently receive the injected data as callbacks in your Flash (SWF) file whether you stream the FLV file from the internet or play it locally.

Path problems when loading flv’s into NetStream object

Thursday, May 19th, 2005 by Thomas

When loading flv's into a NetStream object Flash seems to use a different base-path than normally.

Read the rest of this entry »

Sorenson Squeeze FLV meta-data bug

Tuesday, May 17th, 2005 by Thomas

Sorenson Squeeze puts the wrong height into the meta-data of FLV files. To be more precise it puts the width also as the height in it...

See also:

Flash and Video

Wednesday, April 27th, 2005 by Luis

A few links realted with the use of video in flash...

Read the rest of this entry »