This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?act=Print&client=printer&f=17&t=165 as retrieved on 31 Jul 2007 21:58:58 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:RdDWFTwNKGAJ:www.flashsandy.org/forum/index.php%3Fact%3DPrint%26client%3Dprinter%26f%3D17%26t%3D165+act%3DPrint+%22index+php%22+-lofiversion+site:www.flashsandy.org&hl=en&ct=clnk&cd=77


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: act print index php

Printable Version of Topic

Click here to view this topic in its original format

Sandy's Forum _ AS2 1.x versions _ Using video with Distort Image?

Posted by: ravenblight Nov 1 2006, 10:24 PM

Hey guys, I was wondering if you could help me. I've been playing around with the DistortImage class on video files recently. I am using the example found http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html/source-files/ as a template. (I'm still learning)

The problem is that the video on screen is un-naturally pixelated (the video object off screen looks perfect) and this is before I have begun distorting it in any way. I've double checked the dimensions of my video and they are the same as the distortImage video on screen.

Anyone have any ideas? I would really appreciate it if someone could help!!

P.S. Sandy Rocks!!

Posted by: kiroukou Nov 1 2006, 10:47 PM

Hi,
hum I didn't play so much with videos, so sorry if my answer isn't very smart ^^

When you compare the video in distortImage and off screen, what do you mean by off screen? Outside flash player?
If yes, it would be better to compare the video rendered by flash in a flv player for example..
Why? Because it is possible that flash resample the data itself, and that lead to this non natural pixelation.
Just a 2 cents idea smile.gif

Posted by: ravenblight Nov 1 2006, 11:26 PM

When I say the video object is off stage, I mean it is in the grey area in my fla (it's not visible when I preview my movie, but it is there)

As for the flv player comment, that is the source of my question. When I play my flv in an external flv player, it plays the video at a far superior quality to my swf flash movie. I dont understand why? Although I am playing my videos from an external folder on my hard drive. Do you think it would help to embed them into my movie?

Posted by: Petit Nov 6 2006, 07:43 AM

QUOTE(ravenblight @ Nov 2 2006, 12:26 AM) *

When I say the video object is off stage, I mean it is in the grey area in my fla (it's not visible when I preview my movie, but it is there)
Do you think it would help to embed them into my movie?


When you say the "grey area of my fla", that means you are using Flash MX authoring tool I suppose - some use other tools, you know wink.gif

No, I don't think the quality will be higher if you embed the flv in the movie. In fact it should not make any difference. Loading it from outside the movie gives you the possibility to load different flv:s into the same movie, and to load it progressively from a small SWF.

Maybe the lower quality is an artifact of the DistortImage class. Even before you apply any real distortion, the pixel positions are calculated. Just a guess, as I haven't worked with the class myself.

Posted by: ravenblight Nov 11 2006, 09:52 PM

Thanks for the feedback guys. If I find out a way to improve the picture quality i'll let you know. It's not too important anymore, but would make things look more polished.

Cheers guys!

Posted by: ravenblight Nov 15 2006, 12:24 AM

I managed to find a workaround for my problem!

Rather than create a video object inside the library, I now import my videos into the library which creates an FLVPlayback object for each video I use. I give it the same instance name as in the code and it works perfectly without any pixelation!

I am using the DistortImage example found http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html/source-files/ although trying my hand at using video with it.

I hope this might help someone with a similar problem in the near future.

Thanks again guys

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)