关于我网站上视频加载速度的问题
目前,我的网站上嵌入了一个 mp4 视频,并且我正在使用名为 FlowPlayer 的 Flash 视频播放器来播放该视频。您可以在此处观看视频:http://www.verolinens.com。
视频文件大约有 14mb 大,我希望它更大以提高视频质量。然而,我还需要播放流畅,没有任何中断或暂停。有没有办法让这成为可能?我可以制作一个可以无缝播放、没有任何停顿的高质量视频吗?
和我使用的flash播放器(flowplayer)有什么关系吗?对于这种类型的事情有更好的选择吗?
任何有关此事的建议或指导将不胜感激。
谢谢,
德文
I currently have an mp4 video embedded on my website, and I am using a flash video player called FlowPlayer to play the video. You can see the video here: http://www.verolinens.com.
The video file is about 14mb big, and I would like it to be even bigger to improve the video quality. However, I also need the playback to be smooth and without any breaks or pauses. Is there any way to make this possible? Can I have a high quality video that will play back seamlessly without any pauses?
Does it have anything to do with the flash player (flowplayer) that I am using? Is there a better alternative out there for this type of thing?
Any advice or direction on the matter would be greatly appreciated.
Thanks,
Devin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您流式传输视频时,您必须假设最低连接速度。不是某人到家的速度,而是他们从流式传输视频文件的服务器获得的实际 K/s。
一旦您知道了这一点,您就可以通过在编码时指定最大 kbps 来近似确定视频的大小(甚至只需将最小速度乘以长度即可获得最大大小。)
请注意,速度会出现波动,并且某些服务器已配置(如果您通过 http 进行流式传输)以降低特定大小/时间长度内的传输速度)。
我不了解 flowplayer,所以我无法直接与它对话,但如果您可以控制缓冲区大小,这是让视频在较长时间内良好播放的好方法。这是缓冲区长度和视频长度之间的良好平衡,但是当我编写自己的流媒体播放器时,我会比较文件的长度和比特率的平均下载速度,以确保我有足够的下载量当整个文件在本地缓存时,视频的播放率只能达到 90%。
请注意,如果您使用流媒体服务器,它将从文件中间进行流式传输,并且上述内容仅与何时开始播放文件有关。
When you're streaming video, you have to make an assumption about your minimum connection speed. Not the speed someone has to their house, but the actual K/s they're getting from the server streaming your video file.
Once you know that, you can approximately taylor the size of the video by specifying the max kbps when encoding it (or even just multiply minimum speed by length to get max size.)
Note there will be fluctuations on speed, and some servers are configured (if you're streaming over http) to reduce the speed of a transfer over a certain size/length of time).
I don't know flowplayer, so I can't speak to it directly, but if you can control your buffer size, that's a good way of getting the video to play well over longer periods of time. It's a fine balance between buffer length and video length, but when I've written my own streaming players I'd compare the average download speed I'm getting to the length and bitrate of the file to make sure I had enough downloaded that I'd only be 90% throught the video when the entire file was locally cached.
Note, if you're using a streaming media server, it will stream from the middle of files and the above is only relevant to when to start playing a file.