Re: [swfmill] swfmill-0.2.12.2 prerelease doesn't find libswft.so.0

2007-03-05 Thread Mark Winterhalder
On 3/5/07, daniel fischer <[EMAIL PROTECTED]> wrote:
> "Mark Winterhalder" <[EMAIL PROTECTED]> (on Mon, 5 Mar 2007 11:59:24 +0100):
>
>   > swfmill: error while loading shared libraries: libswft.so.0: cannot
>   > open shared object file: No such file or directory
>
> hum, did "make install" install a libswft.so[.0[.0.0]]? it should've.

Oh. Yes, it was hiding in /usr/local/lib/, which indeed wasn't in my
library path yet... *cough*

> if it indeed did, try adding the path (likely /usr/local) to LD_LIBRARY_PATH. 
> if that works, there's still sth wrong with your setup. running "ldconfig" 
> once (as root) might help, but i'm unsure.

Added it to /etc/env.d/... hmm... that's probably where my haXe and
neko env vars would rather live instead of .bashrc... will do that
when I'm back from the party (Gabl's 30th, she happens to live across
the street from me now, btw. I guess I'll see some other Weimar ppl
there.)

> greetings from (sunny :P ) barcelona.

G... :|

That explains you lack of online presence. I jabbered you because this:
> http://0xDF.com/
is giving me a DB error.

Thanks and enjoy Barcelona,

Mark

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] newbie: creating animation from a series of jpg files various timings

2007-03-05 Thread Jon Molesa
Nils beat me to it.

* Nils Millahn <[EMAIL PROTECTED]> wrote:

> I've just skimmed over this but it occurred to me that you could simply 
> set the framerate of the SWF to that of the frame-grabber, in which case 
> the millisecond values should correspond exactly to frames in the SWF. 
> That approach would remove any rounding issues you may have at the moment...
> 
> 
> Jon Molesa wrote:
> > I only skimmed this, but it may be useful to you.  More so than my
> > explaination
> >
> > http://www.science.uva.nl/ict/ossdocs/java/tutorial/ui/drawing/animLoop.html
> >
> > It talks about an animation loop.  Appears to be java or js, but that's
> > close enough to AS to gleen something useful maybe.
> >
> > * Seth Markowitz <[EMAIL PROTECTED]> wrote:
> >
> >   
> >> On 3/5/07, Jon Molesa <[EMAIL PROTECTED]> wrote:
> >> 
> >>> Nice solution to a problem.  Mind if I include this in the wip
> >>> documentation as an example?
> >>>   
> >>
> >> what is the "wip" documentation? -- sure.. you can use the example in the
> >> doc.
> >>
> >>
> >> In either case, your issue isn't so much with swfmill as it is a
> >> 
> >>> mathematical conversion from ms to fps.  Is that a correct assessment?
> >>>   
> >>
> >> You're absolutely right.  The real question here is what is a good formula
> >> for converting milliseconds to frames.  Right now I'm doing this in my perl
> >> script:
> >>
> >> $fps = 15;
> >> $frameNum = int($millisecondTimeStamp/1000 * $fps);
> >>
> >>
> >>
> >> My first thought is to decide on a fps rate that you'd like to have.
> >> 
> >>> Then there _could_ be total of 1000 fps with the framegrabber. A fps of
> >>> 12 fps is a good speed for the human eye I believe?? Double check on that.
> >>> You'd have to figure out which block the captured frame fell into and
> >>> place it
> >>> in that frame.  On a 12 second frame rate, 1 frame would contain
> >>> 83.33ms.  So you'd just have to figure out what which block the captured
> >>> frame fell into.  swfmill frame second1-frame1~=84ms,
> >>> second1-frame2~=168ms... and so on.
> >>> It's too early to come up with a formula, but maybe later, or maybe
> >>> someone else can develop that.  Anyway, I hope it helps and is close to
> >>> correct.  But that's the way I see it.
> >>>
> >>> * Seth Markowitz <[EMAIL PROTECTED]> wrote:
> >>>
> >>>   
>  Hi,
> 
>  I'm a newbie to swfmill, but I did get it working for my purposes... I'm
>  just trying to figure out how to make it more efficient.  Here is my
>  situation:
> 
>  Here's my inventory:
>  1. I have 1000 jpg images taken from a vga frame grabber - NOT in frames
>  
> >>> per
> >>>   
>  second... the timing is variable.  For example, file1.jpg was grabbed at
>  30ms, file2.jpg was grabbed at 400ms, file3.jpg at 410ms, an so on. The
>  
> >>> time
> >>>   
>  starts from Time == 0ms when the frame grabber was turned on.
> 
>  2. I have an XML file called capture.xml  that contains the timestamp in
>  milliseconds for when each jpg was captured:
> 
> 
>   Slide_0020.jpg
>   20
>   64174
> 
> 
>   Slide_0021.jpg
>   21
>   64869
> 
> 
>  So
>  By putting all the jpg files together into a SWF via swfmill, I should
>  
> >>> have
> >>>   
>  a fairly descent "flipbook" type animation.  I've created a perl script
>  
> >>> to
> >>>   
>  parse the capture.xml file and creates a swfml file that looks like
>  
> >>> this:
> >>>   
>  
>  
>   
>  
> 
> 
> 
> 
> 
>  
>  
> 
> 
> 
> 
> 
>  
>  
> 
> 
> 
> 
> 
>  
> 
>  .
> 
>  Right now this is klunky because I'm trying to convert the millisecond
>  timestamp into frames per second.  For example, if I want to run this
>  animation at 10fps, I know that the jpg captured at 100ms will appear in
>  frame 1 and so on (is that right??).  So what happens in between each
>  frame... if  file1.jpg is captures at 10seconds before file2.jpg, I just
>  stick (10x10) 100  tags as filler in between the two
>  
> >>> images.  There
> >>>   
>  must be a better way than this.  Also, since I'm converting from
>  milliseconds to frames per second... I think I'm losing a lot of
>  
> >>> precision.
> >>>   
>  How could I create this "flipbook" effect, given the inventory above
>  
> >>> using
> >>>   
>  swfmill simple?
> 
>  I think this is a pretty interesting problem and I really wanted to
>  
> >>> thank
> >>>   
>  the creators of swfmill... it's a great solution to this type of
>  
> >>> thing.  I
> >>>   
> >

Re: [swfmill] newbie: creating animation from a series of jpg files various timings

2007-03-05 Thread Nils Millahn
I've just skimmed over this but it occurred to me that you could simply 
set the framerate of the SWF to that of the frame-grabber, in which case 
the millisecond values should correspond exactly to frames in the SWF. 
That approach would remove any rounding issues you may have at the moment...


Jon Molesa wrote:
> I only skimmed this, but it may be useful to you.  More so than my
> explaination
>
> http://www.science.uva.nl/ict/ossdocs/java/tutorial/ui/drawing/animLoop.html
>
> It talks about an animation loop.  Appears to be java or js, but that's
> close enough to AS to gleen something useful maybe.
>
> * Seth Markowitz <[EMAIL PROTECTED]> wrote:
>
>   
>> On 3/5/07, Jon Molesa <[EMAIL PROTECTED]> wrote:
>> 
>>> Nice solution to a problem.  Mind if I include this in the wip
>>> documentation as an example?
>>>   
>>
>> what is the "wip" documentation? -- sure.. you can use the example in the
>> doc.
>>
>>
>> In either case, your issue isn't so much with swfmill as it is a
>> 
>>> mathematical conversion from ms to fps.  Is that a correct assessment?
>>>   
>>
>> You're absolutely right.  The real question here is what is a good formula
>> for converting milliseconds to frames.  Right now I'm doing this in my perl
>> script:
>>
>> $fps = 15;
>> $frameNum = int($millisecondTimeStamp/1000 * $fps);
>>
>>
>>
>> My first thought is to decide on a fps rate that you'd like to have.
>> 
>>> Then there _could_ be total of 1000 fps with the framegrabber. A fps of
>>> 12 fps is a good speed for the human eye I believe?? Double check on that.
>>> You'd have to figure out which block the captured frame fell into and
>>> place it
>>> in that frame.  On a 12 second frame rate, 1 frame would contain
>>> 83.33ms.  So you'd just have to figure out what which block the captured
>>> frame fell into.  swfmill frame second1-frame1~=84ms,
>>> second1-frame2~=168ms... and so on.
>>> It's too early to come up with a formula, but maybe later, or maybe
>>> someone else can develop that.  Anyway, I hope it helps and is close to
>>> correct.  But that's the way I see it.
>>>
>>> * Seth Markowitz <[EMAIL PROTECTED]> wrote:
>>>
>>>   
 Hi,

 I'm a newbie to swfmill, but I did get it working for my purposes... I'm
 just trying to figure out how to make it more efficient.  Here is my
 situation:

 Here's my inventory:
 1. I have 1000 jpg images taken from a vga frame grabber - NOT in frames
 
>>> per
>>>   
 second... the timing is variable.  For example, file1.jpg was grabbed at
 30ms, file2.jpg was grabbed at 400ms, file3.jpg at 410ms, an so on. The
 
>>> time
>>>   
 starts from Time == 0ms when the frame grabber was turned on.

 2. I have an XML file called capture.xml  that contains the timestamp in
 milliseconds for when each jpg was captured:


  Slide_0020.jpg
  20
  64174


  Slide_0021.jpg
  21
  64869


 So
 By putting all the jpg files together into a SWF via swfmill, I should
 
>>> have
>>>   
 a fairly descent "flipbook" type animation.  I've created a perl script
 
>>> to
>>>   
 parse the capture.xml file and creates a swfml file that looks like
 
>>> this:
>>>   
 
 
  
 





 
 





 
 





 

 .

 Right now this is klunky because I'm trying to convert the millisecond
 timestamp into frames per second.  For example, if I want to run this
 animation at 10fps, I know that the jpg captured at 100ms will appear in
 frame 1 and so on (is that right??).  So what happens in between each
 frame... if  file1.jpg is captures at 10seconds before file2.jpg, I just
 stick (10x10) 100  tags as filler in between the two
 
>>> images.  There
>>>   
 must be a better way than this.  Also, since I'm converting from
 milliseconds to frames per second... I think I'm losing a lot of
 
>>> precision.
>>>   
 How could I create this "flipbook" effect, given the inventory above
 
>>> using
>>>   
 swfmill simple?

 I think this is a pretty interesting problem and I really wanted to
 
>>> thank
>>>   
 the creators of swfmill... it's a great solution to this type of
 
>>> thing.  I
>>>   
 was orginally trying to create an AVI file from this series of jpg
 
>>> files,
>>>   
 but it got way too complicated for me.

 Looking forward to some suggestions!!

 Seth
 
 ___
 swfmill mailing list
 swfmill@osflash.org
 http://osflash.org/mailman/listinfo/swfmill_osf

Re: [swfmill] swfmill-0.2.12.2 prerelease doesn't find libswft.so.0

2007-03-05 Thread daniel fischer
"Mark Winterhalder" <[EMAIL PROTECTED]> (on Mon, 5 Mar 2007 11:59:24 +0100):

  > swfmill: error while loading shared libraries: libswft.so.0: cannot
  > open shared object file: No such file or directory

hum, did "make install" install a libswft.so[.0[.0.0]]? it should've. 

if it indeed did, try adding the path (likely /usr/local) to LD_LIBRARY_PATH. 
if that works, there's still sth wrong with your setup. running "ldconfig" once 
(as root) might help, but i'm unsure.

greetings from (sunny :P ) barcelona.
-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] newbie: creating animation from a series of jpg files various timings

2007-03-05 Thread Jon Molesa
I only skimmed this, but it may be useful to you.  More so than my
explaination

http://www.science.uva.nl/ict/ossdocs/java/tutorial/ui/drawing/animLoop.html

It talks about an animation loop.  Appears to be java or js, but that's
close enough to AS to gleen something useful maybe.

* Seth Markowitz <[EMAIL PROTECTED]> wrote:

> On 3/5/07, Jon Molesa <[EMAIL PROTECTED]> wrote:
> >
> >Nice solution to a problem.  Mind if I include this in the wip
> >documentation as an example?
> 
> 
> 
> what is the "wip" documentation? -- sure.. you can use the example in the
> doc.
> 
> 
> In either case, your issue isn't so much with swfmill as it is a
> >mathematical conversion from ms to fps.  Is that a correct assessment?
> 
> 
> 
> You're absolutely right.  The real question here is what is a good formula
> for converting milliseconds to frames.  Right now I'm doing this in my perl
> script:
> 
> $fps = 15;
> $frameNum = int($millisecondTimeStamp/1000 * $fps);
> 
> 
> 
> My first thought is to decide on a fps rate that you'd like to have.
> >Then there _could_ be total of 1000 fps with the framegrabber. A fps of
> >12 fps is a good speed for the human eye I believe?? Double check on that.
> >You'd have to figure out which block the captured frame fell into and
> >place it
> >in that frame.  On a 12 second frame rate, 1 frame would contain
> >83.33ms.  So you'd just have to figure out what which block the captured
> >frame fell into.  swfmill frame second1-frame1~=84ms,
> >second1-frame2~=168ms... and so on.
> >It's too early to come up with a formula, but maybe later, or maybe
> >someone else can develop that.  Anyway, I hope it helps and is close to
> >correct.  But that's the way I see it.
> >
> >* Seth Markowitz <[EMAIL PROTECTED]> wrote:
> >
> >> Hi,
> >>
> >> I'm a newbie to swfmill, but I did get it working for my purposes... I'm
> >> just trying to figure out how to make it more efficient.  Here is my
> >> situation:
> >>
> >> Here's my inventory:
> >> 1. I have 1000 jpg images taken from a vga frame grabber - NOT in frames
> >per
> >> second... the timing is variable.  For example, file1.jpg was grabbed at
> >> 30ms, file2.jpg was grabbed at 400ms, file3.jpg at 410ms, an so on. The
> >time
> >> starts from Time == 0ms when the frame grabber was turned on.
> >>
> >> 2. I have an XML file called capture.xml  that contains the timestamp in
> >> milliseconds for when each jpg was captured:
> >>
> >>
> >>  Slide_0020.jpg
> >>  20
> >>  64174
> >>
> >>
> >>  Slide_0021.jpg
> >>  21
> >>  64869
> >>
> >>
> >> So
> >> By putting all the jpg files together into a SWF via swfmill, I should
> >have
> >> a fairly descent "flipbook" type animation.  I've created a perl script
> >to
> >> parse the capture.xml file and creates a swfml file that looks like
> >this:
> >>
> >> 
> >> 
> >>  
> >> 
> >>
> >>
> >>
> >>
> >>
> >> 
> >> 
> >>
> >>
> >>
> >>
> >>
> >> 
> >> 
> >>
> >>
> >>
> >>
> >>
> >> 
> >>
> >> .
> >>
> >> Right now this is klunky because I'm trying to convert the millisecond
> >> timestamp into frames per second.  For example, if I want to run this
> >> animation at 10fps, I know that the jpg captured at 100ms will appear in
> >> frame 1 and so on (is that right??).  So what happens in between each
> >> frame... if  file1.jpg is captures at 10seconds before file2.jpg, I just
> >> stick (10x10) 100  tags as filler in between the two
> >images.  There
> >> must be a better way than this.  Also, since I'm converting from
> >> milliseconds to frames per second... I think I'm losing a lot of
> >precision.
> >>
> >> How could I create this "flipbook" effect, given the inventory above
> >using
> >> swfmill simple?
> >>
> >> I think this is a pretty interesting problem and I really wanted to
> >thank
> >> the creators of swfmill... it's a great solution to this type of
> >thing.  I
> >> was orginally trying to create an AVI file from this series of jpg
> >files,
> >> but it got way too complicated for me.
> >>
> >> Looking forward to some suggestions!!
> >>
> >> Seth
> >
> >> ___
> >> swfmill mailing list
> >> swfmill@osflash.org
> >> http://osflash.org/mailman/listinfo/swfmill_osflash.org
> >
> >
> >--
> >Jon Molesa
> >[EMAIL PROTECTED]
> >
> >___
> >swfmill mailing list
> >swfmill@osflash.org
> >http://osflash.org/mailman/listinfo/swfmill_osflash.org
> >

> ___
> swfmill mailing list
> swfmill@osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org


-- 
Jon Molesa
Owner - Consoltec
336.844.4104
828.994.2067
866.433.0835
[EMAIL PROTECTED]
http://www.consoltec.net

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] newbie: creating animation from a series of jpg files various timings

2007-03-05 Thread Seth Markowitz

Jon.. I think i'm making this too complicated.  The way the capture program
works is that you can set a capture rate in FPS.  So I capture the jpg files
around 10 "grabs" per second.  The logic behind the capture, however,
discards duplicate images.  So if the VGA output hasn't changed for 60
seconds, there is only 1 jpg file.  But if there is a lot going on, say the
VGA is capturing mouse movents/video then there are a bunch of jpg files
being created.  The XML document records in milleseconds when each jpg is
captured. My goal is to create some kind of "movie" (swf, flv, wmv, avi)
format to ease the pain of having to swap in and out a 1000 jpg files.
Essentially you are right, I am NOT capturing 1000 jpg in one second, in a
rare case it could get as frequent as 25 "grabs" per second, basically I
have control of the "grab rate".

So the easiest case would be 10fps.  If the frame "grab rate" is around
10fps I should have 10 jpg images.  Then I would need to look at the time
stamps on those images and figure out what frame they belong in.  Simply, a
time stamp of 5000ms, would mean the image goes into frame #5.  What about a
timestamp of 6637ms ?  My current logic would put the image into frame 7.
So you can start to see where the precision starts to break down.
Typically, the jpg images are spaced far enough apart so you won't really
see two images where the timestamps are causing a problem, like file1.jpg is
at 5600ms and file2.jpg is at 5700ms.. although that's a good point you
make.





On 3/5/07, Jon Molesa <[EMAIL PROTECTED]> wrote:


* Seth Markowitz <[EMAIL PROTECTED]> wrote:

> what is the "wip" documentation? -- sure.. you can use the example in
the
> doc.

wip=work in progress

> You're absolutely right.  The real question here is what is a good
formula
> for converting milliseconds to frames.  Right now I'm doing this in my
perl
> script:
>
> $fps = 15;
> $frameNum = int($millisecondTimeStamp/1000 * $fps);
>

IMHO that would only give you which "block" of frames the jpg should be
inserted into.  Suppose you use a 12fps, then there are potentially 84
jpgs from a 1000ms capture rate that could "fit" into each frame.

If you capture program did(i believe that is doesn't) capture a frame
each ms then after 1 second = 1000 jpgs = 12 frames.  But your capture
programs capture an image randomly.  Now to get down to the simple we'll
just look at one frame or 1/12th of a second, or ~84ms.  The way I see
it is that your challenge is to figure out which frame/fraction of
second/or 84th ms your picture "fits" into.  There should be someway to
dispose of an image if two occur within the same frame.  How to handle
the missing frame though I'm not so sure.


--
Jon Molesa
[EMAIL PROTECTED]
http://www.consoltec.net

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] newbie: creating animation from a series of jpg files various timings

2007-03-05 Thread Jon Molesa
* Seth Markowitz <[EMAIL PROTECTED]> wrote:

> what is the "wip" documentation? -- sure.. you can use the example in the
> doc.

wip=work in progress

> You're absolutely right.  The real question here is what is a good formula
> for converting milliseconds to frames.  Right now I'm doing this in my perl
> script:
> 
> $fps = 15;
> $frameNum = int($millisecondTimeStamp/1000 * $fps);
> 

IMHO that would only give you which "block" of frames the jpg should be
inserted into.  Suppose you use a 12fps, then there are potentially 84
jpgs from a 1000ms capture rate that could "fit" into each frame.

If you capture program did(i believe that is doesn't) capture a frame
each ms then after 1 second = 1000 jpgs = 12 frames.  But your capture
programs capture an image randomly.  Now to get down to the simple we'll
just look at one frame or 1/12th of a second, or ~84ms.  The way I see
it is that your challenge is to figure out which frame/fraction of
second/or 84th ms your picture "fits" into.  There should be someway to
dispose of an image if two occur within the same frame.  How to handle
the missing frame though I'm not so sure.


-- 
Jon Molesa
[EMAIL PROTECTED]
http://www.consoltec.net

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] newbie: creating animation from a series of jpg files various timings

2007-03-05 Thread Seth Markowitz

On 3/5/07, Jon Molesa <[EMAIL PROTECTED]> wrote:


Nice solution to a problem.  Mind if I include this in the wip
documentation as an example?




what is the "wip" documentation? -- sure.. you can use the example in the
doc.


In either case, your issue isn't so much with swfmill as it is a

mathematical conversion from ms to fps.  Is that a correct assessment?




You're absolutely right.  The real question here is what is a good formula
for converting milliseconds to frames.  Right now I'm doing this in my perl
script:

$fps = 15;
$frameNum = int($millisecondTimeStamp/1000 * $fps);



My first thought is to decide on a fps rate that you'd like to have.

Then there _could_ be total of 1000 fps with the framegrabber. A fps of
12 fps is a good speed for the human eye I believe?? Double check on that.
You'd have to figure out which block the captured frame fell into and
place it
in that frame.  On a 12 second frame rate, 1 frame would contain
83.33ms.  So you'd just have to figure out what which block the captured
frame fell into.  swfmill frame second1-frame1~=84ms,
second1-frame2~=168ms... and so on.
It's too early to come up with a formula, but maybe later, or maybe
someone else can develop that.  Anyway, I hope it helps and is close to
correct.  But that's the way I see it.

* Seth Markowitz <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm a newbie to swfmill, but I did get it working for my purposes... I'm
> just trying to figure out how to make it more efficient.  Here is my
> situation:
>
> Here's my inventory:
> 1. I have 1000 jpg images taken from a vga frame grabber - NOT in frames
per
> second... the timing is variable.  For example, file1.jpg was grabbed at
> 30ms, file2.jpg was grabbed at 400ms, file3.jpg at 410ms, an so on. The
time
> starts from Time == 0ms when the frame grabber was turned on.
>
> 2. I have an XML file called capture.xml  that contains the timestamp in
> milliseconds for when each jpg was captured:
>
>
>  Slide_0020.jpg
>  20
>  64174
>
>
>  Slide_0021.jpg
>  21
>  64869
>
>
> So
> By putting all the jpg files together into a SWF via swfmill, I should
have
> a fairly descent "flipbook" type animation.  I've created a perl script
to
> parse the capture.xml file and creates a swfml file that looks like
this:
>
> 
> 
>  
> 
>
>
>
>
>
> 
> 
>
>
>
>
>
> 
> 
>
>
>
>
>
> 
>
> .
>
> Right now this is klunky because I'm trying to convert the millisecond
> timestamp into frames per second.  For example, if I want to run this
> animation at 10fps, I know that the jpg captured at 100ms will appear in
> frame 1 and so on (is that right??).  So what happens in between each
> frame... if  file1.jpg is captures at 10seconds before file2.jpg, I just
> stick (10x10) 100  tags as filler in between the two
images.  There
> must be a better way than this.  Also, since I'm converting from
> milliseconds to frames per second... I think I'm losing a lot of
precision.
>
> How could I create this "flipbook" effect, given the inventory above
using
> swfmill simple?
>
> I think this is a pretty interesting problem and I really wanted to
thank
> the creators of swfmill... it's a great solution to this type of
thing.  I
> was orginally trying to create an AVI file from this series of jpg
files,
> but it got way too complicated for me.
>
> Looking forward to some suggestions!!
>
> Seth

> ___
> swfmill mailing list
> swfmill@osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org


--
Jon Molesa
[EMAIL PROTECTED]

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] PrintJob question

2007-03-05 Thread Jon Molesa
Not certain, but there should be params that the job.start() function
would accept.  I'd check the API.

* Joseph Donth <[EMAIL PROTECTED]> wrote:

> Is there any way to bypass the print dialog when using the job.start() 
> function of PrintJob?
> 
> I want to be able to prevent a user from sending the output to a file by 
> graying the 'Print To File' checkbox.
> 
> Thanks,
> Joe
> 
> 

> ___
> swfmill mailing list
> swfmill@osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org


-- 
Jon Molesa
Owner - Consoltec
336.844.4104
828.994.2067
866.433.0835
[EMAIL PROTECTED]
http://www.consoltec.net

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] PrintJob question

2007-03-05 Thread Joseph Donth
Is there any way to bypass the print dialog when using the job.start() function 
of PrintJob?

I want to be able to prevent a user from sending the output to a file by 
graying the 'Print To File' checkbox.

Thanks,
Joe


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] newbie: creating animation from a series of jpg files various timings

2007-03-05 Thread Martin Wood-Mitrovski
alternatively (and if its possible in your setup) you could code a playback 
engine and compile that into a swf. Then create a swfmill file that converts 
the 
image sequence data into a flash array, also in that swfmill file you can pull 
in the code from the other swf into a movieclip which will read the data and 
playback the images, either from the library or a constructed timeline.

I use a setup just like this to create downloadable stories which are built 
from 
a wide variety of assets online.

I have the story playback engine compiled into one swf, then when a user 
chooses 
to download the story, all the assets are built into a single swf and the 
engine 
is added to the swfmill swf like so :

;

Then various story related data (text, speech bubbles) are converted into flash 
arrays and objects in the swfmill file and swfmill generates just one 
standalone 
swf that when launched plays back the story automatically.

If this sounds like something you might want to do and you need more 
information 
just ask :)


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] newbie: creating animation from a series of jpg files various timings

2007-03-05 Thread Jon Molesa
Nice solution to a problem.  Mind if I include this in the wip
documentation as an example?

In either case, your issue isn't so much with swfmill as it is a
mathematical conversion from ms to fps.  Is that a correct assessment?

My first thought is to decide on a fps rate that you'd like to have.
Then there _could_ be total of 1000 fps with the framegrabber. A fps of
12 fps is a good speed for the human eye I believe?? Double check on that.
You'd have to figure out which block the captured frame fell into and place it
in that frame.  On a 12 second frame rate, 1 frame would contain
83.33ms.  So you'd just have to figure out what which block the captured
frame fell into.  swfmill frame second1-frame1~=84ms, second1-frame2~=168ms... 
and so on.
It's too early to come up with a formula, but maybe later, or maybe
someone else can develop that.  Anyway, I hope it helps and is close to
correct.  But that's the way I see it.

* Seth Markowitz <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I'm a newbie to swfmill, but I did get it working for my purposes... I'm
> just trying to figure out how to make it more efficient.  Here is my
> situation:
> 
> Here's my inventory:
> 1. I have 1000 jpg images taken from a vga frame grabber - NOT in frames per
> second... the timing is variable.  For example, file1.jpg was grabbed at
> 30ms, file2.jpg was grabbed at 400ms, file3.jpg at 410ms, an so on. The time
> starts from Time == 0ms when the frame grabber was turned on.
> 
> 2. I have an XML file called capture.xml  that contains the timestamp in
> milliseconds for when each jpg was captured:
> 
>
>  Slide_0020.jpg
>  20
>  64174
>
>
>  Slide_0021.jpg
>  21
>  64869
>
> 
> So
> By putting all the jpg files together into a SWF via swfmill, I should have
> a fairly descent "flipbook" type animation.  I've created a perl script to
> parse the capture.xml file and creates a swfml file that looks like this:
> 
> 
> 
>  
> 
>
>
>
>
>
> 
> 
>
>
>
>
>
> 
> 
>
>
>
>
>
> 
> 
> .
> 
> Right now this is klunky because I'm trying to convert the millisecond
> timestamp into frames per second.  For example, if I want to run this
> animation at 10fps, I know that the jpg captured at 100ms will appear in
> frame 1 and so on (is that right??).  So what happens in between each
> frame... if  file1.jpg is captures at 10seconds before file2.jpg, I just
> stick (10x10) 100  tags as filler in between the two images.  There
> must be a better way than this.  Also, since I'm converting from
> milliseconds to frames per second... I think I'm losing a lot of precision.
> 
> How could I create this "flipbook" effect, given the inventory above using
> swfmill simple?
> 
> I think this is a pretty interesting problem and I really wanted to thank
> the creators of swfmill... it's a great solution to this type of thing.  I
> was orginally trying to create an AVI file from this series of jpg files,
> but it got way too complicated for me.
> 
> Looking forward to some suggestions!!
> 
> Seth

> ___
> swfmill mailing list
> swfmill@osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org


-- 
Jon Molesa
[EMAIL PROTECTED]

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] swfmill-0.2.12.2 prerelease doesn't find libswft.so.0

2007-03-05 Thread Mark Winterhalder
Hi,

after running ./configure, make, make install I'm getting...

[EMAIL PROTECTED] ~/.swfmill/swfmill-0.2.12.2 $ swfmill
swfmill: error while loading shared libraries: libswft.so.0: cannot
open shared object file: No such file or directory

...when I try to run swfmill.

Any help would be appreciated.

Mark

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] newbie: creating animation from a series of jpg files various timings

2007-03-05 Thread Mark Winterhalder
> So what happens in between each
> frame... if  file1.jpg is captures at 10seconds before file2.jpg, I just
> stick (10x10) 100  tags as filler in between the two images.  There
> must be a better way than this.  Also, since I'm converting from
> milliseconds to frames per second... I think I'm losing a lot of precision.

I don't know if you're familiar with the timeline in the Flash IDE,
but this is exactly how Flash would do it. Each image would be in a
keyframe, followed by frames until it's time for the next. There is
nothing wrong with that, except the loss of precision you already
mentioned.

A small improvement would be to always use the same depth. What's
currently happening is that the next image gets placed on top of the
previous one. If you use the same depth, it will replace it, so you
won't end up with 1000 images stacked on top of each other.
Another thing I would change is the library tag -- you don't need it,
unless you want to place the images by script.

Mark



On 3/5/07, Seth Markowitz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm a newbie to swfmill, but I did get it working for my purposes... I'm
> just trying to figure out how to make it more efficient.  Here is my
> situation:
>
> Here's my inventory:
> 1. I have 1000 jpg images taken from a vga frame grabber - NOT in frames per
> second... the timing is variable.  For example, file1.jpg was grabbed at
> 30ms, file2.jpg was grabbed at 400ms, file3.jpg at 410ms, an so on. The time
> starts from Time == 0ms when the frame grabber was turned on.
>
> 2. I have an XML file called capture.xml  that contains the timestamp in
> milliseconds for when each jpg was captured:
>
> 
>   Slide_0020.jpg
>   20
>   64174
> 
> 
>   Slide_0021.jpg
>   21
>   64869
> 
>
> So
> By putting all the jpg files together into a SWF via swfmill, I should have
> a fairly descent "flipbook" type animation.  I've created a perl script to
> parse the capture.xml file and creates a swfml file that looks like this:
>
> 
> 
>   
> 
> 
> 
>  import="Slide_0001_Full_resize.jpg" />
> 
> 
> 
> 
> 
> 
>  import="Slide_0002_Full_resize.jpg" />
> 
> 
> 
> 
> 
> 
>  import="Slide_0003_Full_resize.jpg" />
> 
> 
> 
>
> .
>
> Right now this is klunky because I'm trying to convert the millisecond
> timestamp into frames per second.  For example, if I want to run this
> animation at 10fps, I know that the jpg captured at 100ms will appear in
> frame 1 and so on (is that right??).  So what happens in between each
> frame... if  file1.jpg is captures at 10seconds before file2.jpg, I just
> stick (10x10) 100  tags as filler in between the two images.  There
> must be a better way than this.  Also, since I'm converting from
> milliseconds to frames per second... I think I'm losing a lot of precision.
>
> How could I create this "flipbook" effect, given the inventory above using
> swfmill simple?
>
> I think this is a pretty interesting problem and I really wanted to thank
> the creators of swfmill... it's a great solution to this type of thing.  I
> was orginally trying to create an AVI file from this series of jpg files,
> but it got way too complicated for me.
>
> Looking forward to some suggestions!!
>
> Seth
>
>
>
>
> ___
> swfmill mailing list
> swfmill@osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>
>

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] newbie: creating animation from a series of jpg files various timings

2007-03-05 Thread Ian Thomas
As a sideways thought - not that I want to put you off swfmill! - you
might want to take a look at ffmpeg, which can take a sequence of
stills as input and produce a flash video (or nearly any other kind of
video) as output. Don't know if it can handle your odd timings, but I
think it's worth a look. If only to save your users the pain of
loading 1000 jpegs!

http://ffmpeg.mplayerhq.hu/

Ian

On 3/5/07, Seth Markowitz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm a newbie to swfmill, but I did get it working for my purposes... I'm
> just trying to figure out how to make it more efficient.  Here is my
> situation:
>
> Here's my inventory:
> 1. I have 1000 jpg images taken from a vga frame grabber - NOT in frames per
> second... the timing is variable.  For example, file1.jpg was grabbed at
> 30ms, file2.jpg was grabbed at 400ms, file3.jpg at 410ms, an so on. The time
> starts from Time == 0ms when the frame grabber was turned on.
>
> 2. I have an XML file called capture.xml  that contains the timestamp in
> milliseconds for when each jpg was captured:
>
> 
>   Slide_0020.jpg
>   20
>   64174
> 
> 
>   Slide_0021.jpg
>   21
>   64869
> 
>
> So
> By putting all the jpg files together into a SWF via swfmill, I should have
> a fairly descent "flipbook" type animation.  I've created a perl script to
> parse the capture.xml file and creates a swfml file that looks like this:
>
> 
> 
>   
> 
> 
> 
>  import="Slide_0001_Full_resize.jpg" />
> 
> 
> 
> 
> 
> 
>  import="Slide_0002_Full_resize.jpg" />
> 
> 
> 
> 
> 
> 
>  import="Slide_0003_Full_resize.jpg" />
> 
> 
> 
>
> .
>
> Right now this is klunky because I'm trying to convert the millisecond
> timestamp into frames per second.  For example, if I want to run this
> animation at 10fps, I know that the jpg captured at 100ms will appear in
> frame 1 and so on (is that right??).  So what happens in between each
> frame... if  file1.jpg is captures at 10seconds before file2.jpg, I just
> stick (10x10) 100  tags as filler in between the two images.  There
> must be a better way than this.  Also, since I'm converting from
> milliseconds to frames per second... I think I'm losing a lot of precision.
>
> How could I create this "flipbook" effect, given the inventory above using
> swfmill simple?
>
> I think this is a pretty interesting problem and I really wanted to thank
> the creators of swfmill... it's a great solution to this type of thing.  I
> was orginally trying to create an AVI file from this series of jpg files,
> but it got way too complicated for me.
>
> Looking forward to some suggestions!!
>
> Seth
>
>
>
>
> ___
> swfmill mailing list
> swfmill@osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>
>

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org