【问题标题】:TokBox API video resolution issue in iOS appiOS 应用中的 TokBox API 视频分辨率问题
【发布时间】:2016-07-30 08:17:36
【问题描述】:

我一直在尝试将视频发布到服务器:

_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。可以告诉如何设置从服务器录制和存档视频所需的分辨率吗?

【问题讨论】:

    标签: ios video resolution opentok tokbox


    【解决方案1】:

    组合档案的尺寸固定为 VGA (640x480)。如果您更喜欢捕获已发布的完整分辨率,请考虑评估单个流存档。

    详情请参阅此链接。 https://support.tokbox.com/hc/en-us/community/posts/206241666-Archived-video-resolution-is-supposed-to-be-720x1280-but-reports-as-640x480

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-13
      • 1970-01-01
      • 2017-05-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多