PDA

View Full Version : FLV scaling problem


i_am_parag
05-15-2007, 09:58 AM
Hello,

I am loading a FLV file in standard FLV playback component. This component in turn is placed inside a scroll pane. The idea is to capture the screen activity, record it as FLV and playback in this component. As such, the scroll bars are required to allow the screen playback at 100%.

However, I want to allow the user to click on a button which reduces the size of FLV (width and height), so as to fit within the scrollpane (whereby he is able to see the entire screen, but may be lesser font and icon size etc.). This functionality is very similar to what Breeze is providing. However, when I try to reduce the FLV scaling by say even 10%, there is a considerable quality loss and nothing is readable.

Is there any work around to reduce the scaling and still maintain a fair quality of FLV?

Thanks in advance.

matbury
05-15-2007, 12:23 PM
Have you tried using the video object and streaming the video in with NetStream? I've done lots of stuff with this and the quality is usually pretty good.

The quality is usually better if you scale by a multiple of the original FLV file - i.e. 640X480 down to 320X240 and if you position the video object on an exact pixel position. If you're scrolling the video playback, then you'll want to add a Math.round(), Math.floor(), Math.ceil() or Math.abs() method to the _x and _y position values.

i_am_parag
05-15-2007, 04:41 PM
Hello,

Thanks for the reply. however, i did not understand by Video object... Is it a component in flash?

Kindly revert back.

Thanks

matbury
05-15-2007, 11:35 PM
Try this:

http://www.gotoandlearn.com/download.php

Check out the 8 tutorials on video basics.

i_am_parag
05-21-2007, 07:25 AM
Hi,

Kindly look at the following URL... it is my simple demo to demonstrate what i meant. I have used video object. The base size was 1024 * 768, at which i recorded the FLV. On zoom (-) we are making it 800 * 600, and on clicking it again to 640 * 480. As u can see, there is a considerable quality loss.. Any work around pls??? I can supply you the source of FLA and FLV also, if you could pls guide me towards the solution?

Look at the sample here (http://www.tscmagic.com/r2demos/myvideo.html)

Thanks in advance.

xastey
05-21-2007, 02:16 PM
I'm working on something like this also, which screen capturing drivers are you using if i may ask.. I tried to use VH Screen Capturing Drivers but i'm having problems setting the size and not to get it pixley.

i_am_parag
05-21-2007, 02:33 PM
We initially used VH Screen capturing. But currently we are using UScreenCapture, for the same. Can you kindly get back to me, in case if you find a solution to maintain the quality while scaling down the flv?