iOS 上的 Flash/AIR 舞台视频 - 有可能吗?表现如何? [英] Flash/AIR Stage Video on iOS - Is It Possible? How is the performance?

查看:12
本文介绍了iOS 上的 Flash/AIR 舞台视频 - 有可能吗?表现如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你们中的任何人都可以向我指出一些有关 AIR (3.2) 在 iOS 设备上的视频性能的资源.

Does any of you can point me to some resource about video performance of AIR (3.2) on iOS devices.

我感兴趣:

  • StageVideo 是否可用
  • 是否允许/启用视频流
  • 高清视频的性能好吗?
  • 是否允许 .flv 播放?(在 android 上怎么样:flash 已经存在)

推荐答案

iOS 上只有 H264 有硬件解码.这意味着仅适用于 H264 的本地播放器具有可比的视频性能Sorenson 和 VP6 的解码缓慢(充其量)(即使分辨率较低).

Only H264 has hardware decoding on iOS. This means comparable video performance with native player only for H264 and slugish (at best) decoding for Sorenson and VP6 (even with low resolutions).

AIR 3 for iOS 将 StageVideo 对象用于带硬件解码的 H.264 视频,有限地支持 NetStream 功能.AIR 3 for iOS 还通过 StageVideo 对象支持 On2 和 Sorenson 编解码器.此支持不使用硬件解码,它不限制 NetStream 功能."flash.media.StageVideo

FLV 和 MP4 是封装格式.FLV 可以包含 VP6+MP3 或 H264+AAC(或其中任何一个单独使用).MP4 可以包含 H264+AAC.文档没有说明 iOS 不支持 FLV.

FLV and MP4 are encapsulation formats. FLV can contain VP6+MP3 or H264+AAC (or any of them taken alone). MP4 can contain H264+AAC. The docs don't say anything about FLV not beeing supported on iOS.

但是,在 iOS 上,如果 FLV/H264 无法播放,您将无法即时将其重新混合为 MP4,因为以下限制(否则您将丢失硬件解码):注意:AIR 3.0 for iOS 中的 H.264 视频不支持此方法."flash.net.NetStream::appendBytes()

However, on iOS, if FLV/H264 won't play, you won't be able to remux it to MP4 on the fly because of the following restriction (otherwise you would lose hardware decoding): "Note: This method is not supported for H.264 video in AIR 3.0 for iOS." flash.net.NetStream::appendBytes()

没有说 Sorenson 或 VP6 不支持即时重新混音(因此他们应该支持).

Nothing is said about Sorenson or VP6 not beeing suported for on the fly remuxing (thus they should be).

无论如何你都不应该需要 appendBytes,除非你打算做一些非常高级的事情,比如在播放过程中没有任何中断地动态切换比特率.

You shouldn't need appendBytes anyways, unless you plan on doing some very advanced stuff, like switching bitrates on the fly without any interruption during play.

实时流媒体需要类似于 appendBytes 的功能.由于需要 H264 硬件解码,且没有软件模式,因此直播无法获得 H264.

Live streaming requires something similar of what appendBytes does. Since H264 hardware decoding is required and does not have a software mode, you won't get H264 for live streams.

事实证明,H264 视频的实时流无法在 Adob​​e Air 的 iOS 设备上呈现.其他视频编解码器可以工作(H263),但不适用于 H264.您将使用提要,但只能听到音频.我在与 Adob​​e Air 开发团队成员交谈后确认了这一点."来自 Adobe 论坛

H264 解码在不同 Apple ARM CPU 上的表现在很大程度上取决于视频编码设置(B 帧或关键帧、比特率等)以及您是否拥有动态内容、静态内容、快速切换场景、分辨率、颜色托盘等

How well H264 decoding performs on different Apple ARM CPUs really depends a lot on video encode settings (B-frames or keyframes, bitrates, etc.) and wether you have dynamic content, static content, fast switching scenes, resolution, color palletes, etc.

结论:使用 FLV 或 MP4(以最适合您的方式),内置 H264+AAC.尝试编码设置或您要定位的大量视频(如果有).确定您要定位的最低(最旧)iOS 设备,并对其进行测试.

Conclusion: Use FLV or MP4 (whichever suits you best), with H264+AAC inside. Experiment with encode settings, or lots of videos of which you are targeting (if any). Determine which is the lowest (oldest) iOS device you want to target, and test on that.

这篇关于iOS 上的 Flash/AIR 舞台视频 - 有可能吗?表现如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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