Adapt app runtime for diferent aspect ratio

as I can scale and position the sprites of a stage and that they are in an area defined by the screen size (the image of serious background constant) but to adapt the sprites within a frame or area that would be the screen size.
The algorithm would be:
- Detect screen size
- Create an area to locate the position and size of the sprites
They can help me with this I'm trying to adapt a workable app to suit 1920x1080 (1.7)  960x640 (1.5)  without the sprites are stretched.

They can give me a hint of this.
Regards

Similar Messages

  • Editing two files together for proper aspect ratio output

    hello,
    i have 2 files that are 720 x 480 which i'll edit into one project playing together side by side.
    this will then show on a projector with a native resolution of 1280x800.
    i do not want to crop the sides of two source files by half, but to crop them by a lesser amount to make a wider pairing that will play well with the projector's 16:10 aspect ratio, with no black banding.
    to begin my project: 768x480 (same 16:10 ratio as the projector) is not an option to select as a project starting point. 1280x800 is also not an option, and although the crop is actually perfect in a 1280x720 project, i don't want fcpx to do the upscaling, and i believe the 16:9 aspect ratio would lead to black banding top/bottom when shown on the projector.
    i'm not sure where to begin, any advice would be appreciated,
    thanks.

    Unfortunately, FCPX does not offer any 16:10 project settings. The different resolutions offered for HD formats refer to pixel ratio rather than actual dimensions. A project in FCPX is going to be either 4:3 or 16:9. There are a couple of things you can try, but my recommendation would depend on what program will be used to output the movie to the projector (QuickTime?). The 1280x720 dimensions are the standard 720p resolution and is as close as you will get to your desired resolution. If you are worried about the banding that would occur when displaying a 16:9 file on a 16:10 projector, the easiest solution would be to use the media player to stretch the movie to fill the screen. If you have Compressor you could encode your FCPX output to your desired resolution, but you will still be stretching the image. If you want more assistance provide a little more info, are the soure files 4:3 or 16:9 for example, and I may be able to offer more advice if I know a little more.  

  • Actions for converting aspect ratios

    Here is a little tip if you want to resize your camera images for a slide show.
    I needed to convert and resize my 3008 x 2000 RAW images to PAL Standard for a slide show.  I use PS CS3 and I was using IMAGE>Pixel Aspect Ratio to convert the file then IMAGE>Size to resize to 720 x 576.  I decided to create an Action to autoamte the process and when I opened up ACTIONS lo & behold Adobe have already created an Action for all the NTSC and PAL formats.
    All it takes is to open your image, select Actions and select the format you want, that is it.   All I need to do now is create a Batch File to automate a over 200 image files.
    If like me you use PSD files then they must be flattened first and the Action is not written for images in portrait mode, these have to be done through IMAGE>Pixel Aspect Ration and then IMAGE>Size  with the width and height transposed and Constrain Proportions unticked.
    Doug.

    Doug,
    I agree that Actions are the way to go in PS. Mine also change the Color Bit Depth Mode to 8-bit, as I am almost always working in 16-bit, when I process my Camera RAW files. Not sure about the included PS Actions, but in PS CS2, I have just written several that do all the pre-processing, and then do a Automate>Batch for entire folders of these images. I also will keep the files in PSD format, when I do the final Save_As.
    This ARTICLE covers most of my operations, using your workflow.
    Nice to know that PS installs with Actions that can do most of this. I never saw them in CS/CS2, but maybe just did not look, or perhaps Adobe has added them in CS3/CS4. Nice to know.
    Thank you,
    Hunt

  • Tips for import aspect ratio (4:3 & 16:9 widescreen)

    I have spent several weeks importing video footage from various types of DVDs (old, new, PAL, NTSC, 4:3 and 16:9), and have encountered just about every aspect ratio problem known to Mac. Along the way, I have discovered a few things by trial and error, and wanted to share them with any other poor souls out there who are dealing with similar issues.
    Note that this does not, as far as I know, apply to camcorder footage.
    Please respect all local laws regarding copying of DVDs!
    Useful programs:
    • MacTheRipper (freeware)
    • Cinematize (you have to pay, but it's downloadable and not expensive) for processing and converting video footage into a format iMovie can understand (.mov files for video and .aiff files for sound)
    • Amadeus II (freeware) for processing and converting sound files
    • iMovie HD
    • iDVD
    If your aspect ratio is coming out wrong (stretched or squashed), try the following:
    • If you want to import just an excerpt, rip the entire DVD with MacTheRipper, then isolate the required excerpt with Cinematize & import into iMovie. This tends to work better than ripping only excerpts with MacTheRipper.
    • Import into iMovie all elements together (i.e. the sound .aiff, the video video.mov, and the combined file .mov). One or the other will probably be in the correct aspect ratio. This works better than importing just the .mov file by itself. Whatever you don’t need can be deleted later.
    • If you want to make a Widescreen project, do this first (choose ‘DV Widescreen’ when creating the project). Then create a separate project in ‘DV’ (not ‘ DV Widescreen’) format. This option is available only when creating a new project in iMovie. Then import the 4:3 video (all elements together, as above) into the DV project. Lastly, copy the 4:3 video clip ('copy' in th Edit menu), close the new project, open your Widescreen project and paste the clip (see iMovie The Missing Manual (Pogue) page 261 ‘Grabbing Clips From Other Projects’). It should appear properly pillarboxed and looking like 4:3!
    • In iMovie/Preferences/Import, there's an option 'Automatic DV Pillarboxing and Letterboxing' which you might need to fool around with. It may solve some, but not all of your problems!
    • A tip about Themes in iDVD: They may appear in 4:3 even if your project is 16:9 widescreen. I have an old DVD player which played the DVD I burned with the theme stretched. When I played the DVD on my computer, however, it recognized the different aspect ratios (4:3 for the theme, 16:9 for the video) and played them correctly. I suspect that a modern DVD player would do the same.
    Good luck, and happy movie-making!

    Connect two camcorders using a 4-pin-to-4-pin FireWire cable. Press Play on one and Record (..in VCR mode..) on the other.
    However (..but I haven't tried it, and it's a bit too late tonight to plug two camcorders together; maybe tomorrow..) I'd guess that the 16:9 will be transferred as 16:9 ..I don't know if it'd be possible to force the 2nd camcorder to crop it as 4:3.
    However, two other points: Dan reminds us that you can always crop 16:9 to 4:3 just by creating a mask, and Bob Whatsisname? ..Hudson, of course!.. shows how you can unsqueeze squashed 16:9 using QuickTime Pro.

  • Resizing a photograph for print (aspect ratio)

    Hi, I am hoping someone can help me with something that seems like it should be very simple, but I can't seem to figure out.
    When I import my pictures from my DSLR into Bridge and then open in Photoshop the image size is varies, but typical size is 16"x22" and I want to be able to print the full image as an 8"x10" without cropping or loosing any parts of the image.  Is there a way to do this?  When I try to simply decrease the image size, the measurements never come out to 8"x10", sometimes it actually gets larger and not smaller.  I have even tried resizing the canvas and that makes it worse.
    Ideally once I get this figured out i would like to try to make it an action so that I can prepare multiple photographs at the same time.
    Thanks :-)

    Increase the ppi.
    Use this formula:
    inches X ppi = pixels
    Knowning any two of the above values will give you the third. 
    So 1200 px / 300 ppi = 4"
    1200 px / 72 ppi = 16.66"
    Luckily Photoshop will do the work for you.
    Image>Image Size  Unselecting the box for resampling will fix the pixels so they do not change therefore no adding or subtracting pixels.
    By editing the physical size the ppi will change - editing the ppi will change the physical size. Try it out, you will see they are tied together, one goes up the other must go down.

  • Graphic for web , aspect ratio 16/9 to be displayed in any monitor

    i have to realize an animation 15 sec as intro for a web page, what is best preset in motion to wirk with hdv? dvdpro?
    and what is the right deliver format for web? ( web page maker asked me an AVI i don't have in compressor that extension, i am supplying an h264)

    hi,
    work in any preset you like. It depends on what footage you are using if any. You will just want to make sure its set to anamorphic so it will be 16 x 9.
    When you deliver you can choose what size ( ie width and height in pixels) to output at.
    As has been discussed here recently avi is a container for many different flavours of codec. I would ask the web page man to be more specific ( and not to choose an avi style but thats my opinion ). Compressor doesnt save as this so you will have to save as some other format and then convert with a someother software. Unless there is a quicktime extension like Perian or flp4mac that handles it?
    hth
    adam

  • How to make diferent aspect ratio's  look the same

    Hi. I probably haven't put the question correctly, but I am putting together a show reel and my footage is 16.9 widescreen and some is 4.3 square. So I want to put the 4.3 into the same shape as the 16.9. Is there a way without stretching or cropping

    Edit the 16:9 into a 4:3 sequence and it will letterbox. Stick some fancy graphics trickery or something over the letterbox area at top and bottom to mask it.
    Edit the 4:3 into a 16:9 sequence and it will pillarbox (vertical black bars). Stick some fancy graphics trickery or something over the pillarbox area at left and right to mask it.
    I have done something like this one once, duplicating the current video track over and over, shrinking them down and stacking in columns at each side. then I offset each one by a few frames, so they never show exactly the same thing. To illustrate, here's a horizontal version done using the same principles:

  • Sequence Aspect Ratio for HD

    I am transferring HD video from AVCHD into FCP 6.0.4, and I need to know what the correct setting is for the aspect ratio (in the sequence preset editor). The footage is captured 1920x1080 at 30p. I plug that all in, but the only choice for plain HD at 16:9 is at 1440x1080. If I want to select 16:9 it's called HDTV 1080i???
    Can someone help me understand why there is not a setting for HD 1920x1080 in that window? Is it normal for me to have to select 1440x1080? Even though all the other settings are at 1920x1080???
    Also, do i have to check anamorphic 16:9?
    Thanks in advance!

    I'm sorry, I'm a bit confused.
    this time I set up my session/sequence to be for 1440x1080, transferred the media into the session. When I drag my first clip into the Canvas - the FCP pops up a window saying that the clip and the sequence don't match. I tell it to correct it - and it puts it back to the 1920x1080 - HDTV 1080i setting.
    What am I doing wrong? Should I be converting it differently?
    And which is correct - anamorphic or no???
    Thanks

  • The (new) Premiere pixel aspect ratio is wrong for my PAL DV cam footage

    I've had a Sony TRV-950E DV-cam since 2003. I've been shooting DV PAL in widescreen.
    I just bought Elements 12 to edit my footage, and discovered that the pixel aspect ratio for D1/DV PAL Widescreen has been updated to 1.46 (old value 1.42).
    The theory behind this change is that video recorded on 720x576 is slightly wider than 16:9 and that the 16:9 portion is 704x576.
    Unfortunately this is not correct for my footage! I've captured the video from my DV-cam (by firewire) and opened it in Premere and it is streched to be shown as 1050x576.
    So I did a test:
    I filmed a steady shot of a perfect circle and captured the video from the camera and opened it in Premiere. The pixel ascpect ratio 1.46 makes the display 1050x576.
    The question is: Am I seeing this displayed as a perfect circle now?
    This can be tested:
    I make a picture of a perfect circle in Photoshop (square pixels) with size 1024x576. I imported this picture into the Premiere project, and match the two circles: The filmed one, and the Photoshop one.
    They DO NOT match! The one on the video is slightly stretched in width.
    So then I stretch the Photoshop picture in width to become 1050x576. I then import this picture into the project. And now I have a perfect match between the circles!
    This means that my DV camera actually records a 100% 16:9 picture on all the pixels 720x576 - and not a slightly wider picture with the 16:9 part being in 704x576 (which is the reason for the change in pixel aspect ratio from 1.42 to 1.46).
    I have some HD scenes that I want to import (and downscale) into my SD project also, and I also have a lot of still pictures.
    Unless I can change the setup i Elements to the correct ratio 1.42, these stills and sqare-pixel-video (HD) should ideally be streched from 1024x576 to 1050x576 to match (become equally stretched as) all the SD footage.
    How do I solve this?
    I just bought Elements 12 three days ago.
    (I just tried opening the captured video in Windows Movie Maker - and that program must use pixel aspect ratio 1.42 since the video is diplayed correctly as 1024x576 with a perfect circle)
    Regards,
    Tom from Norway

    Tom
    After much thought and exploration and experimentation, I have come to the conclusion that there is no practical purpose for doing anything other than importing your media into the project and editing/exporting. I find no distortion in doing so, be it in the video samples that you posted or in still models that I created for the pixel aspect ratio 1.422 vs 1.4587 for D1/DV PAL Widescreen.
    If you have not already, please read the following about the Adobe DV Widescreen Pixel Aspect Ratio change from 1.422 to 1.456.
    Please start in the first link which gives some get subsequent links in it
    http://forums.adobe.com/thread/673877
    http://www.mikeafford.com/blog/2009/03/pal-d1-dv-widescreen-square-pixel-settings-in-after -effects-cs4-vs-cs3/
    Also, you may find the following article on square and non square pixels of interest. It uses the PAL DV Widescreen 1.422 pixel aspect ratio in its discussion.
    http://library.creativecow.net/articles/gerard_rick/pixel_madness.php
    Aside from the explanation for the rights and wrongs of the matter, this is what I actually observed taking your PAL DV AVI Widescreen  and PAL MPEG2.mpg Widescreen  into the same Premiere Elements 12 Windows PAL DV Widescreen project. Along with your video files were still images that I created in Photoshop Elements 11 Full Editor:
    1024 x 576 document with a red circle on Layer 2 of the Layers Palette
    1050 x 576 document with a red circle on Layer 1 of the Layers Palette.
    The red circles were superimposed in creation. The difference in the pixel dimensions between the two are evidenced by Layer 1 content peaking through on the left and right.
    The gpsot readout for pixel aspect ratio for each of the videos was
    a. Your PAL DV AVI 720 x 576 Widescreen = 1.422
    b. Your PAL MPEG2.mpg 720 x 576 Widescreen = 1.422
    Each of the Photoshop Elements documents (circles) saved as .psd files 1050 x 576 pixels.
    When all were taken into Premiere Elements 12 project manually set for PAL DV Widescreen, they looked like the following, no display of distortion.......
    PAL DV AVI Widescreen 720 x 576 (now the pixel aspect ratio in Premiere Elements Properties was shown as 1.4587, not the 1.422 seen in gspot before import)
    PAL MPEG2.mpg Widescreen 720 x 576 (now the pixel aspect ratio in Premiere Elements 12 Properties was shown as 1.4587, not the 1.422 seen in gspot before import)
    Edit Menu/Preferences/General with check mark next to "Default Scale to Frame Size" was in effect.
    As for the red circles stills (1050 x 576 to equate to the square pixel version of 720 x 576 widescreen) did not distort when brought into the Premiere Elements 12 Edit area monitor which is established by the PAL DV Widescreen project preset with the pixel aspect ratio = 1.4587.
    The jpg version of the Photoshop Elements document (.psd) 1050 x 576 pixels (square pixels) looked like:
    And, when this Timeline was exported Publish+Share/Computer/AVI with the DV PAL Widescreen preset, there was no distortion in the export. It looked undistorted as it did before export.
    So, unless I am overlooking a key point here, I cannot see a reason why you cannot use the video sources that you presented for sampling as weil as stills with the 1050 x 576 pixel dimensions.
    The only time I see any distortion possibilities is if you use a player that does not recognize the 16:9 flag that stretches the 720 x 576 to 1050 x 576 for display after encoding.
    Trying to convert Premiere Elements 12 which uses the 1.4587 pixel aspect ratio for PAL DV Widescreen into a Premiere Elements 7 which uses the 1.422 pixel aspect ratio for PAL DV Widescreen is up hill in spite of creative thinking on your side.
    Please review and let me know if you are seeing another different from what I am reporting with the samples that you posted.
    Thank you.
    ATR

  • Labview Remote Panel and Client Aspect Ratio

    Dear all professionals,
    I had create an application with remote panel (webserver) enabled. I found that there is relationship between aspect ratio of client device display and the remote panel screen size. Here i attached two images of remote panel in browser which both remote panel are opened using different aspect ratio of client device. 
    The left 1 is the device with 1.5 aspect ratio while the right 1 is the device with 1.78 aspect ratio. 
    As you can seen from the images, both remote panel are shown in different size. May i ask do i miss something in the remote panel configuration? 

    Hi Michel,
    Thank you for your reply. I also notice that the zoom % of browser is one of the issue that caused this behaviour. In the same aspect ratio with server computer( where the application running), changing zoom to 100% will help to fit remote panel that I already set when I developing the remote panel vi. But if for different aspect ratio, no matter how u change the zoom % , it won't fit the frame. I just wondering whether got another solution for this issue or not :-(

  • Aspect ratio issues in iDVD with mov files exported from FCE

    Please help. I believe this is an iDVD bug. I have found some relevant discussion of it on online forums - but have not found a solution that works for me. I am looking for a workaround.
    http://discussions.apple.com/thread.jspa?threadID=1356500&tstart=31
    PROBLEM STATEMENT:
    My 4:3 movies, exported from FCE in QT-with-conversion formats (any 4:3 format) - appear in iDVD with gray side-pillars (as expected for 4:3) AND with a black line (letter-boxing) at top and bottom - as would be for 16:9. It appears the aspect ratio is also distorted i.e. 16:9. (The iDVD project is set to 4:3.)
    1- A 4:3 mov file exported from FCE using Quicktime Movie format (no conversion) does not have the problem, but I cannot de-interlace the video using this export mode.
    2) A 4:3 mov file exported using QT-with-conversion mode (any 4:3 format) DOES have the problem. I need to use this mode in order to get de-interlace.
    (Exception: 640x480 VGA mode does not have the black lines, and it displays correctly in dvd player on my computer screen - but on the TV screen, it crops content from the top and bottom of the movie, so this is not an option.)
    3) In Finder, if you click on mov file exported QT-only (no conversion), it opens in the FCE viewer. If you click on mov file exported in any other 4:3 mode, it opens in Quicktime viewer (i.e. there is absolutely something different in the header/ID of these files.)
    4) All mov files, regardless of export mode, show correctly in Quicktime viewer - no black line, no distortion. The problem does not occur outside of iDvd.
    5) I tried passing the QT-with-conversion mov files through an Inverse-Anamorphicizer (per suggestion on forum - this apparently fixed the problem for some people) but the resulting output mov (i.e. the inverted product) still had the same problem.
    I am, so far, left with this trade-off: Give up the de-interlacing, or live with the letter-boxing/ distortion. Neither is acceptable.
    I am looking for a workaround:
    1) A way to export de-interlaced 4:3 mov from FCE that shows in correct ratio in iDVD
    2) A way to "convert" / re-head mov file after exported so that it displays corrrectly (inverse-anamorphicize) so that iDVD reads it correctly
    3) Can the mov be de-interlaced after the fact (so I could use QT export without conversion)?
    4) Something besides iDVD to put this together - that doesn't have this problem? (I like and want to use the iDVD menu/theme.)
    5) Other?????
    I also notice that all the QT-with-conversion mov files are 1/3 to 1/2 the size of the QT-only mov file, which is valuable and preferable to me. (I don't see any quality difference in the display...)

    In the Preview window > top frame > middle button
    do you have correct for pixel aspect ratio checked or not?
    !http://i533.photobucket.com/albums/ee340/gogiangigo/Picture1-4.png!

  • Aspect ratio problem (stretched vertically)

    I have a DVD that was apparently converted from 16:9 to 4:3 by stretching vertically. Is there any way I can squeeze it back down to 16:9 and include black strips on top and bottom? As I recall, iMovie offers a choice for the aspect ratio. So I'm hoping this might be a reasonable place to pose the question. What I have in mind is to import the footage from the DVD into iMovie. I'm hoping that I will then be able to squeeze it back down in the vertical direction and restore it back to the proper aspect ratio.

    A 4:3 DVD has the same number of pixels as a 16:9 DVD. There is a flag on the DVD that tells the TV how much to stretch the pixels horizontally. There are never any black bars on the DVD per se.
    Playing a 4:3 DVD on a widescreen (16:9) TV, black bars are placed left and right by the DVD Player.
    Playing a widescreen (16:9) DVD on a 4:3 TV, black bars are placed top and bottom by the DVD Player.
    It seems as someone rendered your DVD with the black bars imposed on the image on the DVD, which is not the proper way. There isn't anything you can do about that: You can't get back the pixels lost in the process.

  • Aspect ratio converter

    Hello...
    a while ago on this forum i stumbled into a link to a nifty little java script for pixel aspect ratio convertion... i've got to scale down some 16:9 stuff into mpeg's.
    Anyone know the funky little converter I'm talking about...
    oh, and yes... i did a search but couldn't find the thing i'm after.
    Cheers,
    J

    James, I think this is what you were looking for:
    http://www.scottsimmons.tv/blog/2006/08/08/useful-tools-for-editors-part-5/
    Here's another:
    http://www.scottsimmons.tv/blog/2007/01/19/useful-tools-for-editors-part-10

  • 19:9 Aspect Ratio

    Hi,
    I'm don't work with video much but have to convert things from time to time into DVD. I was given a 19:9 ratio to work w/ this time but I only see 4:3 and 16:9 as options on DVDSP.
    What pixel dimensions(width, height) should the video be created at for this aspect ratio? What are the settings I need in Compressor and DVDSP for this to display well in a 19:9 ratio TV.
    I haven't been able to find anything so far. Any help would be greatly appreciated.
    Thanks.

    Hi:
    Can you pst the pixel dimension of such video?
    My best guess is use Compressor to encode it and use the Geometry options to add a letterbox to fit to 16:9 or 4:3.
    You can make some test in Compressor with a short part to avoid loosing too much time while you find the right settings. You can use the IN and OUT points in Compressor to set just a few seconds from the movie.
    Hope it helps !
      Alberto

  • Optimal Aspect Ratio

    What is the optimal aspect ratio for share pods in Connect? I've logged into two computers to test connect- one as a host and another as a participant.  The sizes and shapes of the pods are vastly different from one screen to another (b/c the actual screens are different shapes-one is more square, the other is widescreen). I end up having to adjust the dimensions fairly drastically on the computer I will be hosting the seminar for it to look presentable on the participant computer. Are their any recommendations for optimal aspect ratio to suit all parties?

    Do you want to maintain visual parity on both the screens?
    Visual experience across different resolutions used to remain consistent till Connect 7.5. But to maintain that Connect had to waste quite a bit of space from bottom-left side of the screen.
    So, to avoid that wastage of space, Connect now occupies all the available space and allots it to each pod proportionally. Then each pod lays out it's content according to what seems fit. e.g. chat pod, notes pod, etc would re-flow the content to occupy all possible space. But share pod tries to maintain visual parity across all clients and hence has to resort to letter-boxing of pillar-boxing.
    As a result, over-all screen space utilization get increased (as wastage of space is now done on pod-type-basis. Look and feel wise, the whole meeting room would not be consistent. But there should not be any drop in quality of content viewing.
    So, all that being said, do you feel that viewing experience of the presentation across resolution is worse than previous version of Connect? (Personally, I had to break out of the comfort zone...and now feel that the new way is better).

Maybe you are looking for