适当的时间间隔将视频文件流式传输到客户端? [英] Approriate time interval to streaming a video file to client?

查看:169
本文介绍了适当的时间间隔将视频文件流式传输到客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建流式视频服务器.现在,我必须将视频文件的序列数据(数据包)传输到客户端.但我不知道定时器滴答滴答传输数据包.如果我传输太快,客户端没有足够的时间解码和显示.我不知道它是否取决于视频文件的比特率或其他信息?我正在使用的视频文件是WMV.我用于流式传输的协议是Windows Media Http流式传输协议.我正在使用的编程语言是C#.

视频文件信息:

音频:Windows Media音频48000Hz立体声64Kbps [原始音频0]

视频:Windows Media Video 9 320x240 24.00fps 230Kbps [原始视频1]

I''m building a streaming video server. Now I must transfer sequence data (data packets) of a video file to client. But I don''t know timer tick to transfer a data packet. If i transfer too fast, client don''t have enough time to decode and display.I don''t know whether it depend on Bitrate or other information of a video file ?.Video file i''m using is WMV. Protocol i''m using to streaming is Windows Media Http Streaming protocol. Programing language I''m using is C#.

Information of video file :

Audio: Windows Media Audio 48000Hz stereo 64Kbps [Raw Audio 0]

Video: Windows Media Video 9 320x240 24.00fps 230Kbps [Raw Video 1]

Whether have formular to calculate time interval to transfer data?

推荐答案

我不熟悉流式视频,但没有找到首先计算出的比特率检查我是否会收到客户端的缓冲区通知.例如.像串口一样可以提供80%的缓冲区.根据基础网络的稳定性/负载,计算播放速率可能会导致视频演示出现毛刺.
I''m not familiar with streaming video but instead of finding a calculated bit rate i''d first check if i would get buffer notifications of the client. E.g. Buffer 80% like serial ports can provide. Calculating the play rate may lead to glitches in your video presentation depending on the stability/load of the underlying network.


这篇关于适当的时间间隔将视频文件流式传输到客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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