ios - 从 ios 流式传输实时视频

标签 ios ffmpeg

<分区>

我需要将视频从 iPhone/iPad 摄像头流式传输到服务器。看起来这需要使用 AVCaptureSession 来完成,但我不知道如何最好地构建它。

我找到了这篇文章:

streaming video FROM an iPhone

但它不处理“实时”部分,延迟最多需要 2 或 3 秒。如果需要,设备可以限制为 4 或 4S 能力,并且不需要 HD,VGA 可能是我们最终得到的。我假设任何解决方案都会使用 ffmpeg,我还没有找到任何更合适的库。

如何最好地实现这一目标?

最佳答案

根据 Apple 的说法,如果您从 iPhone 应用程序发送大量数据,您将不得不使用 HTTP Live Streaming。

HTTP Live Streaming Overview

It's possible, here's an App that does it called Livu

尝试使用 ffmpeg for iPhonesegmenter来自 Carson Macdonald 出色的 Ion Cannon 网站,该网站有很多关于 HTTP Live Streaming 的有用信息。他也是这里的用户,可以提供宝贵的建议。

关于ios - 从 ios 流式传输实时视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8841169/

相关文章:

android - FFMPEG 源代码编译失败,Android NDK Clang 编译器 (r16b) 出现错误 "the clang compiler does not support ' -mcpu=arm'"

Android FFmpeg 日志显示 “File://protocol not found”

iOS,支持视网膜显示

html - 在 iOS 上的 Quicktime 中启动嵌入的 YouTube 视频

ffmpeg - 连接 2 个不同图像大小的多轨视频

video - ffmpeg webm 到无损 h264 或 avi

ios - 在 iOS 上构建期间出现多个依赖项错误

ios - 如何创建一个内部有透明圆圈的 UIView(快速)?

ios - 用户壁纸作为背景

video - 使用 ffmpeg 将视频分成几部分