Quantcast
Channel: Adobe Community : Popular Discussions - Premiere Pro SDK
Viewing all articles
Browse latest Browse all 53010

CS5 Pixel Aspect Ratio Problems...

$
0
0

Hello All,

 

I am working on porting over an existing .mov file importer from Windows to Mac while also upgrading it from CS4 to CS5 (and also rolling in the creation of a hand-written 64-Bit QuickTime file handling library to boot, ouch).

 

In my current test bed I am having problems with certain 1920 x 1080 .mov files. Some 1920x1080 files that I have get imported properly, some files that I have get imported with the wrong aspect ratio. I have verified that both files should be displayed using square pixels and have also verified that when the selector is sent that calls SDKGetInfo8( ) that I am setting the following for **all** of the above-mentioned test files:

 

SDKFileInfo8->vidInfo.pixelAspectNum = 1
SDKFileInfo8->vidInfo.pixelAspectDen = 1

 

I have stepped line-by-line through SDKGetInfo8( ) and the stretched and non stretched clips seem to yield exact same traces through this function. However, the files that are being imported with the wrong aspect ratio, of course, preview in a stretched format. Also, in the informational area of the Source Bin, when the *stretched* clips are selected the information that is provided for these clips is:

 

NameOfTheStretchedClip.mov
Video, 1920 x 1080 (1.7778)
00:00:9:13, 23.976 fps
etc…

 

For the clips that aren't stretched, the (1.7778) is (1.0). I am not the biggest expert on the actual usage of Premiere, so I can only assume given the values displayed and the respective visual result of the clips when previewed that this value displayed in the UI is the pixel aspect ratio and not the frame ratio as the clip with (1.7778) is stretched and the clip with (1.0) is not, yet both are 1920x1080 clips. What to me is suspect is that 1920/1080.0 is 1.7778 and so somewhere for the clips that are being stretched the pixelAspect ratio values seem to be getting derived using the pixel dimensions and not the values vidInfo.pixelAspectNum and vidInfo.pixelAspectDen that are explicitly set to '1' as shown above.

 

Thus my question is, aside from setting in SDKGetInfo8() the following values:
SDKFileInfo8->vidInfo.pixelAspectNum = 1
SDKFileInfo8->vidInfo.pixelAspectDen = 1
Where else are the pixelAspect values supposed to get set?

 

Alternatively:
- During which other selector calls *CAN* pixel aspect ratio get set? As I mentioned, I am porting existing code, so perhaps these values are getting set elsewhere that I am presently unable to find.
- Is there some setting that might get set at the import of a file that says to derive the pixel aspect ratio from the pixel dimensions that might be getting triggered for the clips that are being imported as being stretched?

 

Thanks in advance for any help!
Josh


Viewing all articles
Browse latest Browse all 53010

Trending Articles