适用于Safari的最佳HTML5视频格式(或在Windows上使用VP8在Safari中播放) [英] Best HTML5 Video Format for Safari on Window (or getting VP8 to play in Safari on Windows)

查看:807
本文介绍了适用于Safari的最佳HTML5视频格式(或在Windows上使用VP8在Safari中播放)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一笔交易,通过大量的活动,我在Windows上使用Safari在HTML5中播放视频。

Here's the deal, through a huge series of events, I am stuck using Safari on Windows for video playback in HTML5.

我不能使用任何其他浏览器,Chrome是不可能的,我必须使用Safari,它必须在Windows上才能兼容硬件。

I can't use any other browser, Chrome is out of the question, I must use Safari and it has to be on Windows for hardware compatibility.

我发现的最佳格式是h.264 Quicktime文件,但我仍然会丢失一些帧并且有点撕裂。

The best format I've found is a h.264 Quicktime file, but I'm still getting some frames dropped and a bit of tearing.

视频以1920x1080分辨率播放,我尝试下采样到720p ,这会导致明显的质量损失,并且没有明显的性能提升。

The video is being played in 1920x1080 resolution and I have tried down-sampling to 720p, which causes noticeable quality loss and no noticeable gain in performance.

我正在寻找以下两种解决方案之一:
- 一个插件Safari(与Windows兼容)使用Quicktime以外的HTML5视频。我看过,WebM(VP8)插件仅适用于OSX。
- 任何视频格式配置,可在Windows上的Quicktime中更快地解码。我甚至试过ProRes无济于事,它甚至比h.264慢。

I'm looking for one of the following two as a solution: - A plugin for Safari (that's Windows compatible) to use something other than Quicktime for HTML5 video. I've looked and the WebM (VP8) plugin is only for OSX. - Any video format configuration that will decode faster in Quicktime on Windows. I've even tried ProRes to no avail, it's even slower than h.264.

推荐答案

更新...
Ogg Theora可以使用XiphQT在Quicktime中播放,但在尝试播放各种Ogg视频格式时遇到了很多问题。

Update... Ogg Theora can be played in Quicktime with XiphQT, but I've ran into many issues when trying to playback various Ogg video formats.

h.264,如果你正在使用x264(例如:Handbrake)对视频进行转码/编码,可以在高级模式下设置以下内容:

With h.264, if you are using x264 (eg: Handbrake) to transcode/encode video, the following can be set in advanced mode:

cabac=0:ref=1:me=umh:bframes=0:weightp=0:8x8dct=0:trellis=0:subq=6:tune=fastdecode

这些参数:


  • ref = 1 ,设置参考帧限制为1,使用更多参考帧需要更多处理。

  • bframes = 0 ,禁用b帧,不确定此但我相信力P -frame更快

  • cabac = 0 ,禁用CABAC压缩,这会使输出更小但需要更多处理

  • 调= FA stdecode ,设置调谐预设以优化输出专门用于解码

  • ref=1, set the reference frame limit to 1, using more reference frames requires more processing.
  • bframes=0, disables b-frames, not sure on this but I believe that forces P-frame which are faster
  • cabac=0, disables CABAC compression, which would make the output smaller but take more processing
  • tune=fastdecode, set's the tune preset to optimize the output specifically for decoding

其他选项我不确定和尚未找到关于它们对解码影响的确凿证据,更不用说它们对解码有什么影响了。例如,我设置用于转码过程中的子像素强度,它对视频质量有影响,但是理解帧如何改变,它可能对解码过程产生影响(在某些视频中)。这是我不知道的事情,但我正在声明要更好地了解我的来源。

The other options I am not as sure of and have yet to find solid evidence on their impact towards decoding, let alone if they have any impact on decoding. For example, the "me" setting is for subpixel strength in the transcoding process, it has an effect on video quality, but understanding how frames change, it could have an impact (in some videos) on the decoding process. That is something I do not know, but am stating for a better understanding of where I am coming from.

有关这些设置的更多信息,请点击此处:

More about these settings can be found here:

http://mewiki.project357.com/wiki/X264_Settings

这篇关于适用于Safari的最佳HTML5视频格式(或在Windows上使用VP8在Safari中播放)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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