Flash 8 (AS2) 中的 FLVPlayback 组件并支持高清 H.264 视频

发布于 2024-08-22 09:09:43 字数 1328 浏览 2 评论 0原文

我使用 Flash 8 Professional 和 FLVPlayback 组件开发了一个视频播放器。最近,我一直在测试一些通过在编码服务器上运行的 FFMPEG 转换为 FLV 的 720p .mov 文件。我注意到这些文件无法在我的视频播放器中播放。它们似乎没有附加任何音频,但当我在 Adob​​e Media Player 中播放它们时,音频就在那里。这是因为 Flash 8 中的 FLVPlayback 组件不支持高清视频吗?当我在本地测试时,视频图片播放时没有声音,但是当我在浏览器中运行时,视频冻结并且无法播放。然而,进度条似乎在移动,就像视频正在播放一样。

因此,我想尝试将我的作品重新创建为 Flash CS4 项目,仍然发布为 AS2,但希望能够使用 CS4 中更新的 FLVPlayback 组件来支持 h264 视频。

这行得通吗?

- - - - - - - - - - - - - - - - - - 更新 - - - - - - - --------------------------------

我注意到视频在完全加载之前不会播放,这在Adobe Media Player 和 Flash Player。渐进式下载似乎不适用于我的视频,Flash Player 要求在开始播放之前加载整个视频。我找到了以下相关信息 -

关于此主题的另一个问题
Scott Morgan 关于渐进式 H264 视频的帖子

这是附加到我的 FLV 视频的元数据 -

Your Flash Version = WIN 10,0,45,2
filesize = 1936004
audiocodecid = 10
stereo = false
audiosamplesize = 16
audiosamplerate = 44100
audiodatarate = 93.75
videocodecid = 2 (This is Sorenson h263)
framerate = 24
videodatarate = 683.59375
height = 240
width = 320

I have developed a video player using Flash 8 Professional and the FLVPlayback component. Recently I have been testing a few 720p .mov files converted to FLV by FFMPEG running on an encoding server. I am noticing that these files do not play back in my video player. It appears that they do not have any audio attached to them but when I play them in Adobe Media Player the audio is there. Is this due to the FLVPlayback component in Flash 8 not supporting HD videos? When I test locally the video picture plays with no sound but when I run in a browser the video freezes and does not play. The progress bar appears to move as if the video is playing however.

So I want to try and recreate my work as a Flash CS4 project, still publish as AS2 but hopefully be able to use the updated FLVPlayback component in CS4 that can support h264 video.

Will this work?

------------------------------------ UPDATE ---------------------------------------------

I noticed that the video would not play until it had completely loaded, this was true in Adobe Media Player and Flash Player. It seems that progressive downloading is not working for my video, Flash Player requires that the whole video loads before it will begin playing. I found the following information on this -

Another SO question on this topic
Scott Morgan post about Progressive H264 video

Here is the metadata attached to my FLV video -

Your Flash Version = WIN 10,0,45,2
filesize = 1936004
audiocodecid = 10
stereo = false
audiosamplesize = 16
audiosamplerate = 44100
audiodatarate = 93.75
videocodecid = 2 (This is Sorenson h263)
framerate = 24
videodatarate = 683.59375
height = 240
width = 320

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

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

发布评论

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

评论(2

久夏青 2024-08-29 09:09:43

有一个叫做 moov 原子(是的,带有两个“o”)的东西,它是 H.264 编解码器的一部分 - 它索引文件 - 如果它不位于文件的前面,那么电影就不会能够播放直到整个内容下载完毕。当创建视频和某些产品(如 Adob​​e Premier CS3 和 Adob​​e Premier CS3)时,会放入 moovatom。 After Effects CS3 会将其放在文件末尾。不过,有说明称 Adob​​e 正在努力通过补丁来更新该问题,但我不知道它是否已得到修复。如果您从使用 Flash Media Server 的 CDN 进行流式传输,那么这就不是问题,因为视频随后会被流式传输并由 FMS 编制索引(根据文档)。来源:http://www.adobe.com/devnet/flashplayer/articles/ hd_video_flash_player_02.html

也许试试这个? http://blog.six4rty.ch/2008 /05/14/h264-and-the-moov-atom/

There's this thing called a moov atom (yes, with two "o"s) which is part of the H.264 codec—it indexes the file—and if it's not located at the front of the file then the movie won't be able to play until the entire thing is downloaded. The moov atom gets put in when the video is created and certain products like Adobe Premier CS3 & After Effects CS3 will put this at the end of the file. However there's a note that Adobe was working to update that issue with a patch but I don't know if it was ever fixed. If you are streaming from a CDN which uses Flash Media Server then this becomes a non-issue because the video is then streamed and (according to the docs) indexed by the FMS. Source: http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player_02.html

Maybe try this? http://blog.six4rty.ch/2008/05/14/h264-and-the-moov-atom/

笑红尘 2024-08-29 09:09:43

是的,您可以使用Flash CS4制作ActionScript 2项目并使用最新的FLVPlayback组件。 Flash CS4 支持 ActionScript 版本 1、2 和 3。

然而,我认为这不是这个项目的问题。您现有的项目应该使用系统上安装的任何版本的 Flash Player 软件中的视频播放代码。也许只需更新 Flash Player 即可让您播放视频。如果您要发布此 FLV 或在 Web 上使用这些视频,您可能需要检查浏览器上是否有较新版本的 Flash。

对于您提到的有关下载时修复渐进式播放的其他问题,我没有任何补充。

Yes, you can use Flash CS4 to make a ActionScript 2 project and use the latest FLVPlayback component. Flash CS4 supports versions 1, 2, and 3 of ActionScript.

Yet, I don't think that is the problem with this project. Your existing project should use the video playback code in whatever version of the Flash Player software installed on your system. Maybe just updating the Flash Player will get you working video. If you're publishing this FLV or use with these videos on the Web, you may want to check for a newer version of Flash on the browser.

I don't have any additions to the other SO question you mention on fixing progressive playback while downloading.

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