我们如何将视频实时编码为 mp4 并在 ASP.NET 中进行流式传输
我正在使用 Flow Player 将视频流式传输到我的浏览器。视频由用户上传,他们可能会上传不同的格式。将视频传输为 mp4 的解决方案是什么,他们上传的格式是什么。我目前正在使用 ffmpeg 命令。
问题是编码后视频会缩小。此外,如果用户上传大型视频文件,编码本身会花费更多时间。
我需要在视频上传到服务器后立即对其进行流式传输,无论其格式是什么(例如 YouTube 中的格式)。
I'm using flow player for streaming videos to my browser.The videos are uploaded by the users and they may upload different formats. What will be solution to stream the videos as mp4 , what ever be the format they upload. I'm currently using ffmpeg commands.
The problem is after encoding the video is getting down scaled.Also if the user upload large video file the encoding itself takes more time.
I need to stream the videos as soon as its uploaded to the server, what ever may be the format(like in youtube).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我会研究ffmpeg,因为它允许您对地球上几乎所有视频格式进行转码。
然而;我不确定它的实时功能或流式传输输出的能力。不过,这可能是一个很好的起点。
I'd look into ffmpeg as it allows yo to transcode just about every video format on the planet.
However; I'm not sure of it's real-time capabilities or it's abilities to stream it's output. Might be a good place to start though.
我认为您可以通过在服务器上自动化表达式编码器来做到这一点,即使它主要用于平滑的流格式,但表达式编码器不是开源或免费的:(
I think you could do this by automating expression encoder on the server even though it is mainly used for smooth streaming format but expression encoder isn't opensource or free :(