Macromedia Flash Server - weird webcam idea

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > December 2005 > weird webcam idea





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author weird webcam idea
heisen

2005-12-28, 5:46 pm

=EF=BB=BFhi,=0A=0Ajust a thought,=0Aif i capture the webcam and serializ=
e the output and send it to a xml socket server,=0Aand from a client sid=
e connect to the socket server and get the data,=0Aand reconstruct the=
image using flash 8 bitmap class. is this possible...?=0A=0Aregards,=0A=
heisen.
________________________________________
__
Get your own goowy now @ http://www.goowy.com

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Gerard van den Elzen vde

2005-12-28, 5:46 pm

Basically a good Idea but I think you have to wait till Flash 8.5 .
There is no method I am aware of to serialize bitmap data fast.
In Flash 8.5 you can use binary arrays and send those , flash 8 is not =
able to send/receive binary data and interpret it





Sch=F6ne Gr=FC=DFe aus K=F6nigsborn

G=E9rard van den Elzen
FlashMX Programmierung&Seminare
Multimedia CD-Rom/Internet
+49-(0)2303 962741
+49-(0)170-200 6291
----- Original Message -----=20
From: heisen=20
To: flash=20
Sent: Wednesday, December 28, 2005 6:48 PM
Subject: [FlashComm] weird webcam idea


hi,

just a thought,
if i capture the webcam and serialize the output and send it to a xml =
socket server,
and from a client side connect to the socket server and get the data,
and reconstruct the image using flash 8 bitmap class. is this =
possible...?

regards,
heisen.
________________________________________
__
Get your own goowy now @ http://www.goowy.com

=3D---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D---------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Beto A

2005-12-28, 5:46 pm

>flash 8 is not able to send/receive binary data and interpret it

From what I understand it is possible in 8 but not easily done. you can=
encode binary data to form an image, but you will have to code the image=
encoding/decoding functions in AScript. There is also the issue of how y=
our binary data is encoded, RLE or JPG(*rather difficult). To make it eas=
ier go with RLE but the size is much greater than that of JPG or like Ger=
ard said wait for 8.5.
=20
cheers
Beto

Gerard van den Elzen vde <gerard-se2PCB666ZnAVMDmWPUVSw@public.gmane.org> wrote:
Basically a good Idea but I think you have to wait till Flash 8.5 .
There is no method I am aware of to serialize bitmap data fast.
In Flash 8.5 you can use binary arrays and send those , flash 8 is not ab=
le to send/receive binary data and interpret it





Sch=F6ne Gr=FC=DFe aus K=F6nigsborn

G=E9rard van den Elzen
FlashMX Programmierung&Seminare
Multimedia CD-Rom/Internet
+49-(0)2303 962741
+49-(0)170-200 6291
----- Original Message -----=20
From: heisen=20
To: flash=20
Sent: Wednesday, December 28, 2005 6:48 PM
Subject: [FlashComm] weird webcam idea


hi,

just a thought,
if i capture the webcam and serialize the output and send it to a xml soc=
ket server,
and from a client side connect to the socket server and get the data,
and reconstruct the image using flash 8 bitmap class. is this possible...=
?

regards,
heisen.
________________________________________
__
Get your own goowy now @ http://www.goowy.com

=3D---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D---------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=20


=09
---------------------------------
Yahoo! for Good - Make a difference this year.=20

=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

John Berzy

2005-12-28, 5:46 pm

did anyone manage to implement jpeg or RLE in flash 8 yet?




>From: Beto A <astro_sk-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
>Reply-To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>Subject: Re: [FlashComm] weird webcam idea
>Date: Wed, 28 Dec 2005 10:42:16 -0800 (PST)
>
>
> From what I understand it is possible in 8 but not easily done. you can
>encode binary data to form an image, but you will have to code the image
>encoding/decoding functions in AScript. There is also the issue of how your
>binary data is encoded, RLE or JPG(*rather difficult). To make it easier go
>with RLE but the size is much greater than that of JPG or like Gerard said
>wait for 8.5.
>
> cheers
> Beto
>
>Gerard van den Elzen vde <gerard-se2PCB666ZnAVMDmWPUVSw@public.gmane.org> wrote:
> Basically a good Idea but I think you have to wait till Flash 8.5 .
>There is no method I am aware of to serialize bitmap data fast.
>In Flash 8.5 you can use binary arrays and send those , flash 8 is not able
>to send/receive binary data and interpret it
>
>
>
>
>
>Schöne Grüße aus Königsborn
>
>Gérard van den Elzen
>FlashMX Programmierung&Seminare
>Multimedia CD-Rom/Internet
>+49-(0)2303 962741
>+49-(0)170-200 6291
>----- Original Message -----
>From: heisen
>To: flash
>Sent: Wednesday, December 28, 2005 6:48 PM
>Subject: [FlashComm] weird webcam idea
>
>
>hi,
>
>just a thought,
>if i capture the webcam and serialize the output and send it to a xml
>socket server,
>and from a client side connect to the socket server and get the data,
>and reconstruct the image using flash 8 bitmap class. is this possible...?
>
>regards,
>heisen.
> ________________________________________
__
>Get your own goowy now @ http://www.goowy.com
>
>=---------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=---------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
>
>
>---------------------------------
>Yahoo! for Good - Make a difference this year.
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


________________________________________
_________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen
Technology.
http://join.msn.com/?pgmarket=en-ca..._MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Beto A

2005-12-28, 5:46 pm

here's a thread to get you started:
http://chattyfig.figleaf.com/piperm...uly/144943.htm=
l
=20
-Beto

John Berzy <passbad-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:
did anyone manage to implement jpeg or RLE in flash 8 yet?




>From: Beto A=20
>Reply-To: FlashComm Mailing List=20
>To: FlashComm Mailing List=20
>Subject: Re: [FlashComm] weird webcam idea
>Date: Wed, 28 Dec 2005 10:42:16 -0800 (PST)
>
>
> From what I understand it is possible in 8 but not easily done. you can=

=20
>encode binary data to form an image, but you will have to code the image=

=20
>encoding/decoding functions in AScript. There is also the issue of how y=

our=20
>binary data is encoded, RLE or JPG(*rather difficult). To make it easier=

go=20
>with RLE but the size is much greater than that of JPG or like Gerard sa=

id=20
>wait for 8.5.
>
> cheers
> Beto
>
>Gerard van den Elzen vde wrote:
> Basically a good Idea but I think you have to wait till Flash 8.5 .
>There is no method I am aware of to serialize bitmap data fast.
>In Flash 8.5 you can use binary arrays and send those , flash 8 is not a=

ble=20
>to send/receive binary data and interpret it
>
>
>
>
>
>Sch=F6ne Gr=FC=DFe aus K=F6nigsborn
>
>G=E9rard van den Elzen
>FlashMX Programmierung&Seminare
>Multimedia CD-Rom/Internet
>+49-(0)2303 962741
>+49-(0)170-200 6291
>----- Original Message -----
>From: heisen
>To: flash
>Sent: Wednesday, December 28, 2005 6:48 PM
>Subject: [FlashComm] weird webcam idea
>
>
>hi,
>
>just a thought,
>if i capture the webcam and serialize the output and send it to a xml=20
>socket server,
>and from a client side connect to the socket server and get the data,
>and reconstruct the image using flash 8 bitmap class. is this possible..=

..?
>
>regards,
>heisen.
> ________________________________________
__
>Get your own goowy now @ http://www.goowy.com
>
>=3D---------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=3D---------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>=3D-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=3D-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
>
>
>---------------------------------
>Yahoo! for Good - Make a difference this year.
>
>=3D-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=3D-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


________________________________________
_________________________
Take charge with a pop-up guard built on patented Microsoft=AE SmartScree=
n=20
Technology.=20
http://join.msn.com/?pgmarket=3Den-...D=3D1994&DI=3D=
1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines=20
Start enjoying all the benefits of MSN=AE Premium right now and get the=20
first two months FREE*.


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=20


=09
---------------------------------
Yahoo! DSL Something to write home about. Just $16.99/mo. or less

=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

John Berzy

2005-12-28, 5:46 pm

I think RLE isn't the best soloution for encoding bitmapData. The reason I
say that is because getPixel gives you an integer with an undetermined
length for one pixel for example it might be 210222 and another it would be
2221022 . so pretty much you would have to encode it pixel by pixel i.e.

(210,32) <---- same size as 210222. both 6 characters in length.

rather then concatnating a whole bunch of the pixels which would give you
better compression i.e.

210222 + 2221022 = 2102222221022 or using RLE 210,62 10,22

but then you would lose the length of the integer for each pixel. i.e.
this can go both ways.

px1: 210222 px2: 2221022 or px1: 2102222 px2: 221022

the only way I can think of a way around this would be when your looping
through the width and height of the image and using getPixel you keep track
of the length of each integer returned by pixel data and then encode that
using RLE aswell. and when your decoding the RLE values on the other end you
have an idea of how to devide up each pixel.

anyone have any thoughts about that, am I missing anything?





>From: Beto A <astro_sk-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
>Reply-To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>Subject: Re: [FlashComm] weird webcam idea
>Date: Wed, 28 Dec 2005 11:07:08 -0800 (PST)
>
>here's a thread to get you started:
> http://chattyfig.figleaf.com/piperm...uly/144943.html
>
> -Beto
>
>John Berzy <passbad-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:
> did anyone manage to implement jpeg or RLE in flash 8 yet?
>
>
>
>
>your
>go
>said
>able
>possible...?
>
> ________________________________________
_________________________
>Take charge with a pop-up guard built on patented Microsoft® SmartScreen
>Technology.
>http://join.msn.com/?pgmarket=en-ca..._MSNIS_Taglines
>Start enjoying all the benefits of MSN® Premium right now and get the
>first two months FREE*.
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
>
>
>---------------------------------
> Yahoo! DSL Something to write home about. Just $16.99/mo. or less
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


________________________________________
_________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen
Technology
http://join.msn.com/?pgmarket=en-ca..._MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

ryanm

2005-12-28, 5:46 pm

> did anyone manage to implement jpeg or RLE in flash 8 yet?
>

Here is an AS2 RLE class I started on a while back. It's open, but if
you improve it I would appreciate getting back the modified class.

http://www.horsefish.net/rle.zip

ryanm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

John Berzy

2005-12-28, 5:46 pm

hmmm broken link i think.


>From: "ryanm" <ryanm-7P97d3Wh0QeLZ21kGMrzwg@public.gmane.org>
>Reply-To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>Subject: Re: [FlashComm] weird webcam idea
>Date: Wed, 28 Dec 2005 15:27:21 -0600
>
> Here is an AS2 RLE class I started on a while back. It's open, but if
>you improve it I would appreciate getting back the modified class.
>
>http://www.horsefish.net/rle.zip
>
>ryanm
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


________________________________________
_________________________
Designer Mail isn't just fun to send, it's fun to receive. Use special
stationery, fonts and colors.
http://join.msn.com/?pgmarket=en-ca..._MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

ryanm

2005-12-28, 5:46 pm

> hmmm broken link i think.
>

Sorry, fixed now...

http://www.horsefish.net/rle.zip

ryanm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com