使用 QTKit 导出电影时如何指定轨道编码?
我正在构建一个导出电影的应用程序。电影有一个或多个音频和视频轨道。这些曲目是从包含不同压缩方案媒体的其他电影中提取的。当我使用 QTKit 导出合成的电影时,我想指定每个轨道的编码。就目前情况而言,我只看到一种通过传递给 QTMovie writeToFile 的 QTMovieExportType 键来指定导出格式的方法。如何指定每个轨道的编码?
I'm building an application that exports movies. The movies have one or more audio and video tracks. These tracks are pulled from other movies that contain media of varying compression schemes. When I export my composed movie using QTKit, I want to specify the encoding of each track. As it stands, I only see a way to specify the export format through the QTMovieExportType key passed to QTMovie writeToFile. How can I specify the encoding of each track?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短回答
你不能!
更长的答案
据我所知,QuickTime 只允许您设置导出属性...
(我不知道这对于多通道音频是如何工作的,因为我从来没有对无法通过混音描述为单声道或立体声的东西做过任何事情。)
因此,如果您需要为您的音频定义压缩/编码方案单独的曲目,您需要为每个曲目创建一个临时影片,您可以按照您认为合适的格式导出该影片。 (查看
QTMovieExportSettings
属性和旧的“组件创建”文档以获取其他/更高级的设置。)然后您可以继续将所有这些电影合并为一个电影。
Short answer
You can't!
Longer answer
As far as I know, QuickTime only ever allowed you to set the export attributes for either...
(I don't know how this worked for multi-channel audio, as I never did anything with something that couldn't be described as mono or stereo through a mixdown.)
So if you need to define the compression/encoding schemes for your tracks individually, you'll need to create a temporary movie for each track which you can export in the format as you see fit. (Have a look at the
QTMovieExportSettings
-attribute and the legacy "Component Creation" documentation for additional/more advanced settings.)You can then go on and combine all these movies into a single one.