jjzjj

movieFileOutput

全部标签

ios - startRecordingToOutputFileURL 没有事件/启用的连接 ios

我想录制一个短片(30秒),应该在30秒后自动停止。我使用AVCAPTURESESSION启动了相机,现在我想开始自动录制视频。这是我的代码:AVCaptureSession*session=[[AVCaptureSessionalloc]init];session.sessionPreset=AVCaptureSessionPresetHigh;AVCaptureDevice*device=[AVCaptureDevicedefaultDeviceWithMediaType:AVMediaTypeVideo];NSError*error=nil;AVCaptureDeviceInpu

iOS:未调用 captureOutput:didOutputSampleBuffer:fromConnection

我想从AVCaptureSession的实时馈送中提取帧,我正在使用Apple的AVCam作为测试用例。这是AVCam的链接:https://developer.apple.com/library/ios/samplecode/AVCam/Introduction/Intro.html我发现captureOutput:didOutputSampleBuffer:fromConnection没有被调用,我想知道为什么或我做错了什么。这是我所做的:(1)我让AVCamViewController成为委托(delegate)@interfaceAVCamViewController()(2)

ios - 在 WebView 中播放视频意外结束后台视频录制?

我正在使用WKWebView在我的应用程序中显示全屏YouTube视频,并使用AVCaptureSession在后台录制音频和视频,同时在YouTube上浏览和播放视频。按下按钮时捕获session开始。However,whilstarecordingisinprocess,whenaYouTubevideoisselectedandstartsplayinginfullscreen,itimmediatelyendstherecordingunexpectedlyasthedelegatemethodthathandlestheendingofarecordingiscalled.有

ios - 以错误的方向保存视频 AVCaptureSession

我正在尝试录制视频(不显示相机)并保存。但是正在保存的视频没有以正确的方向保存。我试过强制UIViewController处于特定方向,但这没有帮助。所有视频均以纵向录制。我的代码如下:session=[[AVCaptureSessionalloc]init];[sessionbeginConfiguration];session.sessionPreset=AVCaptureSessionPresetHigh;AVCaptureDevice*device=[AVCaptureDevicedefaultDeviceWithMediaType:AVMediaTypeVideo];for(

ios - 以错误的方向保存视频 AVCaptureSession

我正在尝试录制视频(不显示相机)并保存。但是正在保存的视频没有以正确的方向保存。我试过强制UIViewController处于特定方向,但这没有帮助。所有视频均以纵向录制。我的代码如下:session=[[AVCaptureSessionalloc]init];[sessionbeginConfiguration];session.sessionPreset=AVCaptureSessionPresetHigh;AVCaptureDevice*device=[AVCaptureDevicedefaultDeviceWithMediaType:AVMediaTypeVideo];for(