Aspect ratio correction

Hello
My videos are encoded with a resolution of 640x480, but the aspect ratio must be 16:9, so I need to scale my videos to 848x480. This is my code:
var ratioCorrection:LayoutMetadata = new LayoutMetadata();
ratioCorrection.width = 848;
ratioCorrection.height = 480;
element.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, ratioCorrection);
It works, but if I go to fullscreen the video doesn't scale at all. How can I change "internally" the size of the video, so if I scale my container it will scale the video correctly?
Please help me! thanks.

Hi,
Looking at the numbers you use - in this post and previous one - you seem to confuse two things: the aspect ratio of the picture and the aspect ratio of individual pixel.
The pixels that you initially work with - from your anamorphic video - are NOT square. They are stretched horizontally. Computer monitor always uses square pixels, therefore your numbers won't give you correct 16:9 picture. By changing the width/height in the layout property you simply change the number of pixels used.
Changing your encoding numbers should solve the problem. You may want to go to forums such as FCP to clarify the issue.
FTQuest

Similar Messages

  • I have an image that I removed from its back ground and I would like to scale the bottom portion of the image because its to wide but not have that effect the top portion of the image which is the correct with. but also keep the aspect ratio correct? how

    I have an image that I removed from its back ground and I would like to scale the bottom portion of the image because its to wide but not have that effect the top portion of the image which is the correct width. but also keep the aspect ratio correct, keep it looking as natural as possible (its a piece of jewlery) ? how can I begin to do this.

    The area circled in red is to wide (the width) the necklace's width is as wide as the models entire chest. And also the length of the necklace it's to long it should come down to the clevage area on the model/woman.

  • CS 6 Shift-Circle with Aspect Ratio Correction

    In PhotoShop CS 4 & 5.5, with a NTSC D1, 720x 486 document, a Pixel Aspect Ratio of D1.DV NTSC (0.91), and ellipse options set to unconstrained, with Aspect Ratio Correction Turned on, to draw a perfect Circle, you could hold Shift-option-cmd and you'd get a perfect Circle.
    In PhotoShop CS 6, the circle is streched to the top and bottom when I do a shift-Drag to draw a circle in a non-square Pixel document with Aspect Ratio Correction turned off.
    So, at this point, In a Non-Square Pixel document, There's no way to draw a perfect circle.
    What's changed between 5.5 and 6?? Is there a Preference somewhere that I've missed???
    TIA
    jamie

    Looking into this a little more, what I think is going on is that in previous versions, Shift dragging compensated for the non-square pixels, so that drawn items show up correctly.  If you look at the Info Box in 5.5 when shift drawing a circle, the height is greater then the width, when working in a non-square document.
    In 6.0, when you do the same thing, the height and width are the same. So, no compensation is being done for the non-square pixels.
    In 5.5, if you place a circle by entering the dimensions in the ellipse option, say 400, by 400, with PAR turned on, the image is squeezed side to side.
    So, In 5.5 Shift Compansated for nonSquare pixels. In CS6, it does not.

  • Can't get Aspect Ratio Correct

    I just bought PE9. I have an old video that I need to edit and re-do the audio track. The original AVI file is 720X480 from what I can tell but when I open it in PE9, it's narrow.It looks like it want to be 640X480. Everyone looks skinny and tall! I have searched everywhere but can't figure out how to get it to the correct aspect ratio. In the older PE versions there was a set-up screen at start-up but where is it in PE9???
    Alex.

    Alex,
    The DVD will have the video in the MPEG-2 format, wrapped in a VOB container. Depending on several factors, the VOB's should Import fine into PrE 9, with no need to convert anything. This ARTICLE goes into more detail.
    Attributes of a video file, are stored as "flags" in the header of the file. These would be FPS, Aspect Ratio (pixel x pixel dimensions), PAR, Duration, etc. When a video file is Imported, the program reads the header, and the flags, and then sets things up to match. However, not all programs write the flags clearly or properly, and the editing program can miss them.
    My guess is that something is not proper in the header info of the converted files. Some converters are better, than others. Usually, if this is the case, one can Rt-click on the AV file in the Project Panel, and choose Interpret Footage, correcting anything missed by the editing program. In your case, it seems to be the PAR that is being missed. Maybe use Interpret Footage and force PrE to see the PAR as 1.2 for 16:9.
    Even if G-Spot, or MediaInfo sees all the flags perfectly, PrE can still miss them, as it is very strict with the file's header info.
    Good luck,
    Hunt

  • How do you export a Pixel Aspect Ratio Corrected Image? (CS5)

    I have a still pulled from Premiere Pro CS5, but it's in DVCPRO HD Pixel Aspect (960x720) I pulled it up in photoshop, which corrects it for preview purposes, but I want to export the corrected (1280x720) Image... The only way I've found so far is to create a new document with the corrected Aspect and drag the image to it, then export it... BUT I have a bunch of images to pull from these videos, is there a simpler way?
    Thanks,
    Aza

    Aza,
    There are two "Aspect Ratios" with many Video Images.
    First, one has the Aspect Ratio of the Image - what you listedwith the 960 x 720. That is the width (in pixels) and the height (in pixels).
    Then, there is the Pixel Aspect Ratio. Many Video Images do not use Square Pixels (PAR = 1.0), but instead a Pixel Aspect Ratio. This will be something like PAR = 1.212 (SD Widescreen), PAR = 0.9 (SD Standard), etc..
    With a non-Square PAR, PS will display the Image with Square Pixels, as the computer uses Square Pixels.It will then warn you, that the display is in Square Pixels.
    What is the PAR, that you wish to use? This can be altered via Image>Pixel Aspect Ratio, and PS will honor that, if you Save_As PSD, TGA, and several other formats, that support non-Square Pixels. What format do you need?
    Good luck,
    Hunt
    PS - For more discussion on Video PAR, this ARTICLE should be useful.

  • How can I properly export an image with corrected pixel aspect ratio?

    Hi, I have a bunch of .png screenshots from old MS-DOS era software that I wish to convert to a 0,8 pixel aspect ratio to simulate the stretch from old CRT monitors.
    I can easily preview it by enabling the pixel aspect ratio correction under the "View" menu, and it looks great. But if I try to "save as" the file as a .png or .gif, it looks blurry and horrible:
    Any hints on how to do this?

    Ok, thanks letting me know. Only last thought is a screen cap of image 2 (that I believe you want) saved to png.
    There's a program called Greenshot that would use the Print screen key and allow you to marquee select and save the shot as a png file. Greenshot - a free and open source screenshot tool for productivity
    That's for Windows, Cmd-Shift-4 on a Mac does the same thing.
    I know it is a pain if you have a hundred of these, but I suppose if you are not in a big hurry you can get it all fixed up.
    Gene

  • How to get correct aspect ratio? Hi-8 transfer

    I am Importing through a Datavideo box but cannot get the aspect ratio correct No matter how I set the project I get a 4:3 aspect rather than 16:9.
    I don't have the problem in IMovie HD. When I open new project inImovie it asks for standard or widescreen and mports correctly.

    I posted screen shots of each step I took.
    http://www.flickr.com/photos/yoda8945
    I downloaded the file from the camera to an event.
    I created a new Project  in 720x480 anamorphic
    I went to timeline and the file is no not anamorphic.
    http://www.flickr.com/photos/yoda8945
    I a now starting to understand how this anamorphic thing works. It can stay at 4:3, but at some point I need 16:9.
    How do I batch change in the browser? I don't find anything about an anamorphic flag.

  • Aspect Ratio in Comp is good, looks bad though

    Hello, I'm working in Final Cut Pro (mac). I'm exporting my timeline sequence as 1440x1080i Quicktime Movie using the Apple Intermediate Codec (1.3 Pixel Aspect Ratio). Now I launch After Effects, import this file, from the Bin I drag this file on top of the New Composition Button so it creates a Composition to the same settings as my source file. I go to the Composition Dropdown Menu, click Comp Settings and confirm that I'm at 1080i with a 1.3 pixel Aspect ratio, the lock to 4:3 button is not checked.
    Why in After Effects does my video look like Full Screen 4:3 video?
    Anyway, I export from After Effect using these settings...
    Under Render Settings:
    Under Time Sampling I select 'Lower Field" (for interlaced footage)
    Under Output Module:
    I select Format Settings and switch to Apple Intermediate Codec and select HDV 1080i.
    Now I import this file into Final Cut Pro and it looks fine except there is a small black border on the right side of my footage, as if a few pixels of black were adopted in this process. Though this bugs me it's not the main problem.
    Lastly I send this footage from Final Cut Pro to a color correction program called Color. Color reads all of my clips from Final Cut Pro with no problems, but when i send a clip that came from After Effect, though all of my Comp settings are correct, Color reads the footage as 4:3 Full Screen (just like After Effect previews it). 2 small examples to confirm this last point. If I send 1080i footage from Final Cut Pro into Color, it maintains it's aspect ratio. If I send footage from Final Cut that has been modified in After Effects to Color, it does not maintain it's Aspect Ratio, it changes to 4:3.
    I have a feeling this is a long shot, can you see any problems in my workflow? Is there a known issue? Any ideas?
    Thanks for your time, i know this was a long one.
    -Monty

    Well, your AE thing is easily explained: You are not using the pixel aspect ratio correction for the comp viewer, hence it will look incorrect. As to why it is messed up once you export, I have no clue. I'm using my Mac and in particular FCP way too rarely to be of any help here. I could dare a guess and say there's some Advanced Option in the CoDec somewhere that's responsible for it or an interpretation setting in FCP, but it's really nothing more than a stab in the dark.
    Mylenium

  • Aspect ratio problems

    I've built a DVD with 16:9 DV movies and menus made in Photoshop using first of all the PAL DV 16:9 preset and latterly a custom size in the ratio of 16:9.
    My problem is that when I check the DVD using the simulator the menus fill the screen OK but the 16:9 DV media looks more lke 4:3. I noticed that while making menus in Photoshop using the DV16:9 preset that 'pixel aspect ratio correction' switched itself on and wonder if this is part of the problem. I've tried re-saving my menu pages with the correction unchecked but still have a problem. Is pixel aspect ratio correction just for display or does it affect what's saved. I won't get the chance to check a burned DVD until very close to my deadline so I don't know whether I have a real problem or not.
    I suppose what I'm asking is what settings do I use in Photoshop to produce menus for a 16:9 project.
    Help! Thanks!
    Message was edited by: bladerunner1712

    Thanks for your input, that clarifies things although I'm not sure I described the problem properly. I think that my Photoshop menus ARE being displayed properly and the problem is actually with my 16:9 DV movies or DVD SP itself. Here's what's happening ...
    A 16:9 DV movie set as a menu background looks more like 4:3. The same 16:9 asset used as a button on that menu appears 16:9 (hurrah) but the same 16:9 asset used as the target of the button show up in the simulator as more or less 4:3!
    I should have mentioned before that the problem only appears in the simulator and using the (sofware) DVD Player. Movies and menus all look 16:9 played on hardwrae players. What's going on.

  • Liquid Layout - aspect ratio of background

    I am working on a new site with a liquid layout and I havent been able to find a way to keep the aspect ratio correct with the different sizes.
    I wish it was as simple as
    bgimg1._width = Stage.width;
    bgimg1._height = Stage.height;
    the image size im working with is 990x600 for a 1024 display.
    I would like the image to be centered and never to have empty area, so if it needs to it would strech past the sides. Any help is really appriecated.
    Thanks,
    Randy

    when you create the symbol, make sure that 0,0 is not the top left, but the center.  for example in your case, the location of this image symbol would be -495 for x, and -300 for y coordinates.
    Now that the image symbol is centered for itself, it is now time to center it on the stage.  You can do that be finding out the center of the stage which is half of that.
    Now you can set the coordinates of the symbol equal to the center of stage.
    example, myPic.x = Stage.width/2.
    Great, the symbol is now always centered.  But how to make it scale?  It depends on how you want it to scale.  Scale when resizing the webpage, or just scale to fit once?
    If it is just to scale to fit once, you can just play with the values until it fills the screen by setting myPic.scaleX = 1.2; //or greater. Have to do scaleY too.
    If you are trying to make the background scale dynamically, you would first need to create a listener that will detect the change of the stage.
    Inside that change handler, you can set the scale of the symbol based on how much the stage has changed.  The stage would only change if the html wrapped around it is set to scale.
    Hope this helps.

  • Aspect Ratio is wrong in AE Preview

    If I bring an AVCHD into an after effects project the ratio is distorted in the preview panel. If i create a new composition it still is. Now, I know that this is not the preferred codec, so please don't go there. Because, if i rewrap/uncompress/convert (or whatever it does) the AVCHD first into a Cineform AVI file the Cineform AVI distorts the same way too.
    It looks like it would look if you took 16:9 and tried to squish it into 4:3, you know cone heads and stuff, making people taller and skinner. If try via dynamic link from premiere CS5 (a project composed of Cineform AVI files) to AE CS5 it still does this in AE, but the PPRO project even with the AE comp in it looks fine.
    How can I get AE to display correct aspect ratio?

    from After Effects Help:
    "To preview non-square pixels on a computer monitor, click the Toggle Pixel Aspect Ratio Correction button at the bottom of the Composition panel. The quality of the pixel aspect ratio correction for previews is affected by the Zoom Quality preference in the Previews category."

  • Mpeg4 Movies Aspect Ratio Problems

    Hi everyone,
    I'm a fairly new Mac user (since March 07) and this is my first post on the forums.
    I recently upgraded to Leopard and after transferring all my mpeg4 movies back, which I originally encoded using VisualHub, playing them in Quicktime (even Finder) has stretched all the video aspect ratios (way too wide).
    However, when I play the same videos using VLC, the aspect ratio is correct.
    Is there a setting in Quicktime/Leopard that affects aspect ratio correction/playback?
    Thanks for any help!

    Is there a setting in Quicktime/Leopard that affects aspect ratio correction/playback?
    Are you referring to "player" or "Full Screen" playback here?
    AFAIK, the latest update still does not have such an independent a setting for "player" viewing and the only way to do this is by changing the "display" size in the "Properties" window. Basically. if the encoded, original, and current size stats in the "Inspector" window are all the same, you movie should be playing at the correct aspect ratio to which it was encoded.
    On the other hand, if you are viewing in the "full screen" mode with "Size" preference set to "Fill" rather than the default "fit," then playback will be "distorted" to fill your entire monitor no matter what its size and shape.

  • Aspect ratio inappropriate with final result

    hi guys.. we meet again..   i get a problem here.. look at the picture below..
    above one is my comp when i make it to the final result below.. how to setting my comp to make it look the same with the final video? the final comp has a widescreen perfectly. but my comp not.. im using AE CS5 10.0.458

    You can either turn on Pixel Aspect Ratio correction in the Composition window or change your composition settings to the default NTSC DV Widescreen Square Pixel preset. Your frame rate is wrong for this preset however. If you are going to DVD then you should be either using 29.97 fps for NTSC video, or you should be using the PAL Widescreen Presets. I believe, and so does Wikipedia, that Indonesia is a PAL country until 2018. Your Comp Settings should look like this for NonSquare pixels:
    Or this for Square Pixels:
    A render from either will go into any program that builds DVD's. A render from the Square Pixel setup will work perfectly on the web for YouTube or Vimeo while a render from the NonSquare comp settings will have problems displaying correctly on a computer monitor or on the web.
    Just one more thing. If you are creating artwork for this project in Photoshop or Illustrator then you should use 1050 X 576 pixels for your frame size. That sized image will fit perfectly in either composition.

  • Import file format aspect ratio

    If I import a video in Mpeg2 format, After effects uses the wrong aspect ratio and crops off the sides of the video. Other video formats are fine but my camera records in Mpeg2 so I have to convert before import

    What size is the Mpeg2 format? What Pixel Aspect Ratio? After Effects always handles different sizes and pixel aspect ratios correctly if you have not mucked up the settings somewhere in the chain.
    Please show us info on your footage that includes frame size, frame rate, and compression. Then Please show us the information on your compositions.

  • Output aspect ratio problems

    I have a comp that's 1440 x 1080 that looks good in RAM preview and after rendering from within AE CS5.  I recently learned, however (I'm a newbie, btw), that it's generally better to export to Media Encoder and do your renders there (2-pass compression, for one thing).  So I load my comp into ME CS5, select H.264 as the output  and regardless of the preset I use (ideally Youtube widescreen HD), the output ends up being stretched horizontally.  I've tried square pixels, 4:3 pixels, and interpreting the footage, but no luck.  Anything obvious I'm overlooking?
    I realize this is probably a Media Encoder forum question, but that place looks pretty dead.  I'm hoping there are others here who use this workflow.
    Thanks for the help.

    I'm not sure what you are referring to, but to me it sounds like AME is correctly doing what it's told - un-squeeze your footage. It just surprises you because you probably never bothered to preview with pixel aspect ratio correction on in AE. In any case, why not work with a proper 1920x1080 comp in the first place? You know, AE will correctly convert PARs when dropping an HDV clip into a full HD comp and it avoids all confusion. If, for whatever reason you want to retain the elongated appearance of the HDV, then the only way of doing that is to enforce  a square PAR in the footage interpretation in AE...
    Mylenium

Maybe you are looking for