简体   繁体   English

如何在Lion上使用AVFoundation确定媒体文件的像素长宽比?

[英]How can I determine the pixel aspect ratio of a media file using AVFoundation on Lion?

As part of a 64 bit Objective-C program I need to determine some parameters of media files on Lion. 作为64位Objective-C程序的一部分,我需要确定Lion上媒体文件的一些参数。 For example for a video file, what is the pixel aspect ratio and is the video anamorphic? 例如,对于视频文件,像素长宽比是多少,视频是变形的? I've been searching the AVFoundation API with no luck. 我一直在搜索AVFoundation API,但没有运气。 Any ideas on how to determine this information? 关于如何确定此信息的任何想法?

Thanks, 谢谢,

Barrie 巴里

尽管我不是AVFoundation专家,但我将开始在视频设置中查看AVVideoWidthKey和AVVideoHeightKey字典键。.请参阅http://developer.apple.com/library/IOs/#documentation/AVFoundation/Reference/AVFoundation_Constants/Reference/reference .html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM