玩慢动作,快进,快退在视频播放器中Flash视频播放器 [英] playing slow motion, fast forward , rewind in a video player in flash video player

查看:1513
本文介绍了玩慢动作,快进,快退在视频播放器中Flash视频播放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望建立一个Flash视频播放器播放FLV视频。除了基本的视频控件,客户也希望下面的功能对于视频播放器

We want to build a flash video player to play FLV videos. In addition to basic video controls, client also wants below features for that video player

  1. 在慢动作
  2. 快进
  3. 后退

我们正在使用的ffmpeg转换视频(从PHP脚本),以FLV视频。从这段视频的Flash Player必须执行这些操作。我们被告知,这是不可能做到的FLV这些功能,我们需要这个FLV转换为SWF开发这些功能。如果是这样的话,我们要做多了一个转换是从FLV到SWF和我想的转换过程将是很长的。

We are using ffmpeg to convert videos (from a PHP script) to flv videos. From this video flash player has to perform these operations. We were told that it is not possible to do these features in flv and we need to convert this flv to swf for developing these features. If that is the case, we have to do one more conversion which is from flv to swf and I think the conversion process is going to be very long.

有没有什么办法来实现Flash动作脚本这些功能,无需转换FLV视频到SWF?

Is there any way to achieve these features in flash action script without converting flv videos to swf?

推荐答案

快进和倒带是很容易的事,虽然不是传统意义上的。

Fast Forward and Rewind are easy enough to do, though not in the conventional sense.

两者都涉及到定时器,其中你只是试图在间隔的previous或将来的点。这是不可以播放视频时增加的速度前进和倒退。

Both involve timers wherein you simply seek to a previous or future point on an interval. This is not playing the video at increased speed forward and backwards.

至于慢动作......你是在一个更严格的固定在那里。有2(理论值)的方式,我知道,实现慢动作的Flash视频播放器。正如你所看到的,这些都不是理想的解决方案。 (我有codeD 3倍全功能的闪存播放器+录音机和处理这同一个兔子洞):

As for slow motion... you are in a much tighter fix there. There are 2 (theoretical) ways I know of to achieve slow motion in a flash video player. As you will see, neither of these are desirable solutions. (I have coded 3x full featured flash players + recorders and dealt with this very same rabbit hole):

1)不通过RTMP蒸玩,而是HTTP渐进式下载。一旦您已加载数据到闪存的视频,你通过一种算法,要么会删除或重复P帧运行。因此增加或减少视频的时间。音频同步将是一场噩梦,即使你把这事办成。

1) You do not play via rtmp steaming but rather http progressive download. Once you have loaded the data into flash for the video you run it through an algorithm that either removes or duplicates p-frames. Thus increasing or decreasing video time. Audio syncing would be a nightmare even if you pull this off.

2)你连接的速度在任何他们希望的慢镜头codeA秒的视频是。您可以同时加载两个视频,以及它们之间的互换在适当的时候,按钮是pressed /发表。

2) You encode a second video at whatever speed they wish for "slow motion" to be. You load the two videos simultaneously, and swap between them at appropriate times when the button is pressed/released.

这篇关于玩慢动作,快进,快退在视频播放器中Flash视频播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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