如何在iOS上的ProRes编解码器中录制视频? [英] How to record video in ProRes codec on iOS?

查看:168
本文介绍了如何在iOS上的ProRes编解码器中录制视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将设备后置摄像头的视频直接捕获到ProRes编解码器,现在 .proRes422 .proRes4444 在iOS 11中以 AVVideoCodecType 选项提供。

I would like to capture video from device’s back camera directly to ProRes codec, now that .proRes422 and .proRes4444 are available as AVVideoCodecType options in iOS 11.

但是我收到一条错误,即录音是:

But I receive an error that recording is:


根据当前配置不支持

unsupported given the current configuration

在这两款iPhone上X和第二代iPad Pro在尝试使用以下代码捕获视频时:

On both iPhone X and second generation iPad Pro, when trying to capture video with the following code:

movieFileOutput.setOutputSettings([AVVideoCodecKey: AVVideoCodecType.proRes422], 
                                  for: movieFileOutputConnection!)

如果这种方法有误,可以捕获视频使用 AVCaptureVideoDataOutput 以及 AVAssetWriter 进行编码?

If this approach is wrong, can the captured video be encoded by using AVCaptureVideoDataOutput alongside AVAssetWriter?

推荐答案

我收到了来自Apple相机软件团队的工程师Brad Ford的回复:

I received a response from Brad Ford, an engineer from camera software team at Apple:


AVVideoCodecType (字符串)可用,这意味着您可以编译引用的
代码这个常量没有编译错误。但是
AVCaptureMovieFileOutput 告诉你实话。 iOS上支持的ProRes不是

The AVVideoCodecType (string) is available, meaning you can compile code that references this constant without a compile error. But AVCaptureMovieFileOutput is telling you the truth. ProRes is not supported on iOS.

这篇关于如何在iOS上的ProRes编解码器中录制视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆