Flash 视频流 - 寻求框架和慢/快动作
我正在开发一个将 FLV 流式传输给播放器的项目 - 播放器需要能够找到准确的帧编号并在其上暂停。
最终目标是实现可变的播放速度 - 播放器将转到一帧,暂停,然后转到下一帧,暂停,等等。 (如果请求倒带,它也可以转到先前的帧) - 仅适用于电影的一部分(例如,当用户选择“慢动作”时)。
目前,RTMP 用于提供 Flash 视频内容。
- 是否可以查找包含 Flash 视频文件的任何帧,或仅查找关键帧?
- 是否可以通过 RTMP 请求电影的一部分 - 并将内容分解为本地帧并将每帧图像存储在内存中,覆盖视频窗口并逐帧显示内容?
对上述任何建议将不胜感激!
阿尔卡迪
I am working on a project where an FLV is streamed to a player - the player needs to be able to seek to exact frame numbers and pause on them.
The end goal is to achieve a variable playing speed - the player will go to a frame, pause, then go to the next frame, pause, and so forth. (it can also go to previous frames, if rewind is requested) - only for a part of the movie (e.g. when the user selects "slow-mo").
Currently, RTMP is used to serve the flash video content.
- Is it possible to seek to any frame with flash video files, or only key-frames?
- Is it possible to request a portion of a movie via RTMP - and break down the content into frames locally and store an image-per-frame in memory, overlaying the video window and displaying content frame-by-frame?
Any advice on the above will be appreciated!
Arkadi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以仅在关键帧上进行搜索。
Adobe FMS 具有内置转码器,可以解码 GOP 内的帧并进行帧精确搜索,但这不是一个好主意,因为服务器负载非常高,结果很差。
因此,在启用了视频样本访问的 Flash 播放器上可以更轻松地完成此操作。
It is possible to seek only on key-frames.
Adobe FMS has builtin transcoder that makes possible to decode frames inside GOP and make frame-precise seeking, but it is not a good idea because of very high server load with bad results.
So easier to do it on flash player with enabled access to video samples.