PDA

View Full Version : Problem with ratios when importing video.Help please!


shy-guy
03-23-2009, 09:34 PM
Hey there. Iīve been having this weird problem lately when importing videos filmed with my camera to After Effects, somehow they never look right... maybe its something very obvious that im missing but hey, im still learning. Thereīs a lot of technicalities related to video aspect and ratio and resolution with which I am not completely clear about their significance and corelation, so well... this is why im asking.

I did a search for the subject, but its a problem so specific and.. i dont know,blurry, that i didnīt quite find any thread that described what is happening to me.

Because i dont know what is causing the problem,i will explain the entire process that i do when working with videos so you can have more info.

First,i take my video camera, a Sony HDR - HC3, and i film some vids. I have tried with the two modes in the standard resolution option, the 4:3 and the 16:9 and the two of them give me problems... but im getting ahead of myself.

So i shot the videos,and i capture them with Premier Pro. In the the project settings,i leave everything in the default options (Capture format: Dv Capture - Device Control: DV/HDV Device Control, Video Standard: NTSC,etc)

The capture goes smoothly,and when its finished,i see the videos in Windows Media Player and everything looks alright.

So,when i import them into After Effects 7, its where my problems start. So i open the program,i throw the video into the project manager,and from there into the timeline and the program automatically makes a new composition, that should have the correct settings for the video,doesnīt it? (Thatīs what i understand).

So,when i see the video, shot in standard definition with the wide screen option 16:9 in the project window, it appears squashed. In the Composition Settings it reads:

Preset: NTSC DV Widescreen.
Width: 720. Height:480 Lock Aspect Ratio to 3:2 (Checked)
Aspect Ratio: D1 / DV NTSC Widescreen (1,2) Frame aspect ratio: 9:5
Framerarte: 29,97
Resolution full... etc etc.

So, at first i try to change the preset and the aspect ratio, but it never looks quite right no matter what i put, it either looks squashed or stretched,in comparison with the way it looks when i play it in Windows Media,which looks "right" to me.

So, i click the video in the project manager and click on interpret footage, and i see these settings:

Pixel Aspect Ratio: D1/ DV NTSC Widescreen (1,2) (just like in the comp settings)

So,i try changing some options there and nothing... it looks weird in every one of them.

So the only way i found to make the video match what i see in Windows Media is by changing the Pixel Aspect Ratio in the Comp Settings to "Square Pixels" (with the Pixel Aspect Ratio of the video set to D1/ DV NTSC Widescreen 1,2 in the "interpret footage" menu); when i do that the video looks good, but the borders are cut.So,i can scale the video down,but i get the black bars above and below the video. Is that the way its suposed to be? Or am i doing something wrong?

So... after going through all that mess i said to myself:"the hell with the widescreen, iīll shot in SD 4:3" Well... somehow i got the same problem but reversed.

This time,when i throw the video into the project window,and then in the timeline,it looks streched out. In the comp settings it says:

Preset: NTSC DV
Width: 720. Height:480 Lock Aspect Ratio to 3:2 (Checked)
Aspect Ratio: D1 / DV NTSC (0,9) Frame aspect ratio: 27:20
Framerarte: 29,97
Resolution full... etc etc.

And in the interpret footage menu: D1/DV NTSC (0,9)

So,the only way i found to make the video look right (again,compared to the way it looks in Windows Media,which looks fine to me) was the same than what i used with the widescreen vids: to change the Pixel Aspect Ratio in the Comp Settings to "Square Pixels". Then it looked right,but this time, the black bars appeared on the sides, so i have to scale the video up to make it fill the entire space (thus losing some of the image at the top and bottom).

Sorry for the long story, but this problem its really frustrating me and i wanted to explain it in the highest detail possible so there where more chance that someone could help me.

So,what am i doing wrong? Isnt there a way to import the vids into After Effects and make them look right without having black bars on the sides (or on the top and down) and without scale them up or down? Whatīs the normal procedure? I know that i havent got the grasp of the whole relation between pixel aspect ratio and image aspect ratio and the resolution of the video and all that jazz, and maybe all of this is jut one BIG stupid question, but bear with me here... :blush:

Any help would be greatly appreciated. :)

shy-guy
03-24-2009, 02:11 AM
So... iīve been reading the help files (yeah,i shouldīve done that before writing the first post) and i understand a little bit better the problem, but i didnīt solve it. The reason why i wasnīt very familiar with this subject is because i dont have much experience with importing videos in AE, i generally do animations from scratch there or import 3d animations from 3ds Max, and they all look alright.

I read this from the help files:

"If you display nonsquare pixels on a square-pixel monitor without alteration, images and motion appear distorted; for example, circles distort into ovals. However, when displayed on a broadcast monitor, the images are correct.

To view nonsquare pixels on a square pixel monitor, choose View Options from the Composition panel options menu and then select Pixel Aspect Ratio Correction. Because it slows performance, this is recommended for viewing only. (I did this and yeah... the video looks about right in the program, but it doesnīt affect the rendered video as i assumed)

-----------

When you import D1 NTSC or DV source footage into After Effects, the image looks slightly wider than it does on a D1 or DV system. (D1 PAL footage looks slightly narrower.) The opposite effect occurs when you import anamorphic footage using D1/DV NTSC Widescreen or D1/DV PAL Widescreen. Widescreen video formats have a frame aspect ratio of 16:9."

So,this info was really useful to understand the problem im having, but.. i still dont know how to solve it.

The videos im doing are just for training purposes; im doing some tutorials to learn VFX tricks, and i just want the videos to look properly (with the "correct" ratio) and not streched out or squashed,in these scenarios:

- Here in my computer for when i show the video to someone.
- When i upload it in youtube or whatever.
- If i decide to put one of the vids in my dvd reel.

From what iīve read in the help files, the solution i could come up with (i assume that it might be incorrect),for the first two scenarios i described,its what i wrote in the first post,to change the Pixel Aspect Ratio of the composition to Square Pixels, and scale the video accordingly (choosing between having black bars at the sides or top/bottom of the video, or fill the whole composition but loosing part of the image).And for the third scenario,to leave everything as it is because it will look ok when i burn the dvd and see the video in my tv.

Am i remotely correct? Again... i would greatly appreciate any help.

Mylenium
03-24-2009, 02:37 PM
Am i remotely correct?

Not at all. You simply drop your footage into a square pixel comp and that's it. For NTSC widescreen that would be 864x480 px. No scaling or additional fitting required. This way you also simply reverse it after you've done all your work by dropping your square pixel pre-comp into a proper anamorphic comp. And seriously, next time keep it brief. No need to quote the help files in full length...

Mylenium

shy-guy
03-25-2009, 08:28 AM
Hey there Mylenium. Thanks a lot for your answer,and sorry for the long posts,i see that quoting the help files was redundant.

Your name pop up a few times in threads regarding aspect ratios and the like when i was searching for info here, so im aware that you really know what youīre talking about,and that these types of questions must seem a little moronic, but still you answer them. Thats really cool.

Okey,so i read what you told me,and i read some info about anamorphic formats and aspect ratios,and my brain is starting to hurt a little. Mainly because of the meaning of the word "anamorphic"... iīve read a lot about it,in wikipedia and here,and i still havenīt had a grasp on it.

Anyways,i did what you say and yea,the video (the one shot with the 16:9 format) looks exactly the way it looks when played in Windows Media, it looks "correct",without black bars or loosing any part of the image. So, i render from this comp to solve the first and second scenarios i described earlier,right? (to see the video correctly in the computer and in youtube like websites).

And when you say that i can simply reverse it when iīve done all my work and drop the square pixel precomp into a proper anamorphic comp, do you mean (and im afraid of sounding more stupid here) dropping the pre-comp into a comp with the "NTSC DV Widescreen" preset? So,when i render the video in this comp, although it will look squashed horizontally in my computer monitor, when i import this video into a dvd authoring program and burn it,it will look correctly in my standard and/or widescreen tv? (with the black bars at the top and bottom for a standard 4:3 tv and without them in a widescreen one... i suppose?)

One last question... if this is the procedure for the videos i shot in the 16:9 mode, how would i go about with the ones shot with the 4:3 aspect ratio? What resolution would i use in the square pixels pre-comp?

Sorry if im making a whole other bunch of misconceptions,im just trying to understand these concepts.Thanks in advance mate.

Mylenium
03-25-2009, 10:52 AM
No no, don't worry. No need to feel noob-ish.

dropping the pre-comp into a comp with the "NTSC DV Widescreen" preset? So,when i render the video in this comp, although it will look squashed horizontally in my computer monitor, when i import this video into a dvd authoring program and burn it,it will look correctly in my standard and/or widescreen tv?

Yes, exactly. AE does the conversion based on its internal math. You could even do this differently with a mix & match approach, i.e. creating an anamorphic comp with the footage and another square pixel comp dropped into it that holds your text or whatever elements, which one preferably creates at square ratios to better be able to gauge their quality and things like spacing and kerning... Once you get over your initial fear and have tried it a few times, you will understand how it works intuitively. For 4:3 the proper NTSC square pixel equivalent shoudl be something like 720x504. Just choose the proper NTSCS D1 Square Pixels preset.

Mylenium

shy-guy
03-25-2009, 05:51 PM
Hey again. Thanks a lot for your help mate,really. Im beginning to understand the whole deal with the aspect ratios and square pixels and such.

One last thing.When i drop the 4:3 video into a comp with the "NTSC D1 Square pixel" (that has a resolution of 720x540 like you pointed out), the video looks right,not streched out or squashed, but it has spaces up and down and on the sides. Making some test and changes, i find that the resolution that perfectly fits the video (in the square pixel comp) is 640x480. What does that mean? If i want to watch that video in the pc monitor properly,do i render it with the 720x540 resolution and the black bars? Or do i scale the video up to make it fill the screen in that res? Or do i change the res to 640x480 and render that?

This is the last question regarding this subject, promise :)

danielHinton
03-26-2009, 10:38 PM
hey.

I feel like I may be a little late, but my views on aspect ratios in AE generally follow this format:

1. make sure I'm aware how the footage should look
2. make sure I know what the various video standards look like (fortunately, it's PAL 99% of the time here!)
3. I never work in square pixels unless I'm exporting to a web-only output
4. that means that I only ever change the aspect ratio of what I produce at export/render time
5. I start off in "anamorphic" mode (pre-stretch). in PAL terms this is 720x576. the comp settings I use are dv pal widescreen 1.42 PAR.
6. this means that - pre aspect ratio correction inside the comp viewer settings - I'm viewing horizontally squashed pictures
7. in the comp viewport i use the PAR correction option to make everything look as it should. this has worked flawlessly so far, with output direct to DVD and export to tape via an Avid.

I hope this helps - it took me a while to get my head around the whole video issue too. How are you with fields??!! ;) :banghead:

danielHinton
03-26-2009, 10:41 PM
actually looking at your last post, the thing you need to remember is: always work in square pixels when outputting for systems without pixel aspect ratio correction. as a general rule this means that only DVD players and TVs will need non-square output...

again, hope that makes sense!

shy-guy
03-28-2009, 07:09 PM
Hey daniel,thanks a lot for your answer,and its not late at all.

Yeah, what you say fits perfectly with what I have been learning about the aspect ratios deal. Little by little the whole mess its starting to make sense.

I think i have enough info and understanding now to not screw up the ratios of my vids in the different scenarios that have been discussed in this thread.

Thanks a lot for the help, Cg Talk rules :)

CGTalk Moderation
03-28-2009, 07:09 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.