FLV 视频显示错误的播放头时间
我正在使用 Red5 服务器录制 FLV 视频并在 Flex 应用程序中播放它们。我知道 Red5 无法正确注入 FLV 元数据,因此我使用外部命令行工具来获取其中的元数据。
因为我正在注入元数据,所以我的视频时长是正确的。
我遇到的问题是,对于我尝试播放视频的所有 FLV 播放器(甚至是第 3 方独立视频播放器)来说,PlayHead 时间永远不会从 0 开始。当我加载要播放的 FLV 时假设视频长度为 10 秒,播放头上的当前时间标签从 1-2 秒而不是 0 开始,并且水平滑块当前时间指示器也从 0 移开,并沿着滑块设置为 1-2 秒。 从我所看到的来看,视频播放得很好。
FLV 中是否有一个字节需要更改,以便播放头从 0 开始?我意识到这可能与 Red5 有关,所以如果有人有任何解决方法或需要注意可能导致此问题的潜在问题,我将非常感激!
I am recording FLV videos with Red5 server and playing them back in a Flex app. I am aware that Red5 does not properly inject the FLV MetaData, so I am using an external commandline tool to get the metadata in there.
Because I am injecting the metadata, my duration of the video is correct.
The problem I am having, and this is true with all FLV players I try to play the video with (even 3rd party stand-alone video players), is the PlayHead time is never started at 0. When I load up the FLV to play and lets say the video is 10 seconds long, the current time label on the playhead starts at 1-2seconds instead of 0 and the horizontal slider current time indicator also is moved away from 0 and is set to 1-2 seconds along the slidebar. the video plays back fine from what I can see though.
Is there a byte in the FLV that I need to change so that it will start the playhead at 0? I realize this is probably something to do with Red5, so if anyone has any work-arounds or potential things to watch out for that may be causing this, I would really appreciate it!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是为了更新这个以防其他人遇到这个问题,事实证明我使用的 Red5 版本(我相信是 0.9)是问题所在。我升级到 1.0RC1,视频时间线立即被纠正为 0.00 - 10.00(假设它是一个 10 秒的视频)。
我害怕升级到 1.0RC1,因为我担心我创建的 java 应用程序会遇到升级问题,因为我在早期版本上开发了它,并阅读了很多关于升级不起作用的帖子。但我想我很幸运,它工作完美!
Just to update this in case someone else encounters this, it turned out that the version of Red5 I was using (0.9 I believe) was the issue. I upgraded to 1.0RC1 and immediately the video timeline was corrected to 0.00 - 10.00 (assuming it was a 10 second video).
I was afraid to upgrade to 1.0RC1 because I feared the java app I created would encounter issues with the upgrade since I developed it on an earlier version and read so many posts about things not working with upgrading.. but I guess I got lucky, it works perfectly!