iOS 应用中的 TokBox API 视频分辨率问题
TokBox API video resolution issue in iOS app
我一直在尝试 post 视频到服务器:
_capturePreset = AVCaptureSessionPresetHigh;
[[self class] dimensionsForCapturePreset:_capturePreset
width:&_captureWidth
height:&_captureHeight];
_capture_queue = dispatch_queue_create("com.tokbox.OTVideoCapture",
DISPATCH_QUEUE_SERIAL);
_videoFrame = [[OTVideoFrame alloc] initWithFormat:[OTVideoFormat videoFormatNV12WithWidth:screenWidth
height:screenHeight]];
我想捕获与在设备上录制视频时相同的屏幕分辨率,但它始终返回 640*480。可以告诉如何设置所需的分辨率以从服务器录制和存档视频吗?
合成档案具有固定尺寸的 VGA (640x480)。如果您更喜欢捕获完整的已发布分辨率,请考虑评估单个流存档。
我一直在尝试 post 视频到服务器:
_capturePreset = AVCaptureSessionPresetHigh;
[[self class] dimensionsForCapturePreset:_capturePreset
width:&_captureWidth
height:&_captureHeight];
_capture_queue = dispatch_queue_create("com.tokbox.OTVideoCapture",
DISPATCH_QUEUE_SERIAL);
_videoFrame = [[OTVideoFrame alloc] initWithFormat:[OTVideoFormat videoFormatNV12WithWidth:screenWidth
height:screenHeight]];
我想捕获与在设备上录制视频时相同的屏幕分辨率,但它始终返回 640*480。可以告诉如何设置所需的分辨率以从服务器录制和存档视频吗?
合成档案具有固定尺寸的 VGA (640x480)。如果您更喜欢捕获完整的已发布分辨率,请考虑评估单个流存档。