FLV 播放 - 缩放和平滑与高分辨率?

发布于 2024-07-18 09:59:55 字数 367 浏览 11 评论 0原文

我正在构建一个带有大型视频的 Flash 网站(as3),这些视频充当部分之间的过渡。 视频无法缩放; 为了适应使用大显示器的用户,我们计划播放高清视频并仅向用户显示帧的中心(取决于他们的屏幕尺寸)。 也就是说,将有一个大约 1024x768 的中心区域,我们假设所有用户都能够查看该区域,并且大部分信息都位于该区域,但我们希望使用大屏幕的用户能够查看所有信息信息及其周围的整个场景。

我的问题是:从性能角度来看,将视频编码为高清 FLV 并在不进行修改的情况下播放,或者以合理的分辨率对其进行编码,然后将其缩放为高清(带平滑)是否更有意义在飞行中? 加载时间不是问题,因为所有剪辑只有几秒钟长,并且会在播放之前完全预加载,因此瓶颈可能出现在播放方面。

非常感谢!

I'm building a flash site (as3) with large videos that act as transitions from section to section. The videos don't scale; in order to accommodate users with large monitors, we're planning on playing back HD video and only showing users the center of the frame (depending on their screen size). That is, there will be a central area of roughly 1024x768 that we'll assume that all users will be able to view and where most of the information will reside, but we'll want users with big screens to be able to view all of the information and the entire scene around it as well.

My question is this: does it make more sense from a performance perspective to encode the video as hi-def FLV and play it back without modification, or to encode it at a reasonable resolution and then scale it to hi-def (with smoothing) on the fly? Loading time is not an issue as all clips will only be a few seconds long and will preload completely prior to playback, so the bottleneck will likely be on the playback side of things.

Many thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

給妳壹絲溫柔 2024-07-25 09:59:55

我认为这取决于您的客户想要什么 - 他们的目标受众是拥有更现代计算机的人吗? 然后去高清。 如果客户认为网站尽可能进入最广泛的市场很重要,那么就应该扩大规模,但要明白这会导致质量下降。 我还建议实施带宽检测: http ://www.adobe.com/livedocs/flashmediaserver/3.0/hpdocs/help.html?content=00000072.html,尽管我猜这不在播放方面。

I think it depends what your clients want - is their target audience the type of people to have more modern computers? Then go for HD. If it's important to the client for the site to reach the broadest market possible, then go for scaling up, but with the understanding that you'll lose quality. I'd also suggest implementing bandwidth detection: http://www.adobe.com/livedocs/flashmediaserver/3.0/hpdocs/help.html?content=00000072.html, although I guess that's not on the playback side of things.

桃酥萝莉 2024-07-25 09:59:55

根据我的经验,通过平滑缩放较小尺寸的视频(因此它仍然会保持一定的质量)比仅仅播放高清质量的电影对 CPU 的负担要大得多。

另外,如果我没记错的话,我认为缩放某些东西 50% > 100%或25%> 100% 对它来说比缩放 52% 更“容易”-> 100%(即,如果它被 2 或 4 等分),但回放原始大小的处理量仍然比缩放少(而且看起来也更好)。

From what I've experienced scaling a smaller sized video with smoothing (so it'll still keep some quality) is way more heavy on the cpu than just playing back a HD quality movie.

Also, if i remember correctly, i think scaling something 50% > 100% or 25% > 100% is "easier" for it than scaling something 52% -> 100% (i.e. if it's divided evenly by 2 or 4 etc.) but playing back the original size is still less processing than scaling at all (and looks better too).

榆西 2024-07-25 09:59:55

为什么不为不同的屏幕尺寸加载不同的视频?

将 Flash 影片设置为拉伸到窗口尺寸(使用 stage.scaleMode = StageScaleMode.NO_SCALE),然后使用 stage.stageWidthstage.stageHeight 获取舞台大小

Why don't you load different videos for different screen sizes?

Setup your flash movie to stretch to the window dimensions (using stage.scaleMode = StageScaleMode.NO_SCALE) then get the stage size using stage.stageWidth and stage.stageHeight.

陌路终见情 2024-07-25 09:59:55

最终,我们需要以 1680 x 1050 的分辨率播放视频,这对于大多数观众的计算机来说太高分辨率,无法在本机播放。 我们最终要做的是使用 On2 的 VP6-S 编解码器的 720p 预设对视频进行高清编码,并缩放到所需的分辨率。 即使整个视频都可见,质量也完全可以接受,并且在大多数计算机上播放效果也不错(对于屏幕较小的用户,视频居中,而不是根据屏幕尺寸缩放,因此他们只能看到视频的一小部分) )。

无论如何,我们的情况相当不寻常,但希望这些信息对其他人有所帮助。

Ultimately, we needed to play back video at 1680 x 1050, which is too hi-res for most of our audience's computers to play back natively. What we ended up doing is encoding the video in HD using On2's VP6-S codec's 720p presets and scaling to the desired resolution. The quality is more than acceptable and playback is decent on most computers, even when the whole video is visible (for users with smaller screens, the video is centered, not scaled to their screen size, so they just see a smaller portion of the video).

Anyway, ours is a fairly unusual set of circumstances, but hopefully this information will be helpful to someone else down the road.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文