如何同时编码和分段?
我想实现HTTP流媒体服务器,与此类似(http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/) 但是,我不想在 ffmpeg 完全转换后对视频文件进行分段,而是想同时进行编码和分段(就像编码器的输出流立即发送到分段器一样)。
谢谢
lvreiny
I want to implement HTTP streaming server, which is similar to this (http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/)
But, instead of segment the video file after it is completely converted by ffmpeg, I want to do encoding and segmenting at the same time (something like if the output stream from the encoder is sent to the segmenter immediately).
Thanks
lvreiny
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这几乎就是 Air Video Server 和其他类似软件正在做的事情。我不能在这里给你一个确切的解决方案,但Air Video正在使用ffmpeg,所以应该可以以ffmpeg为基础制定你自己的解决方案。通过在 Air Video 上运行实时转换时查看流程,您还将获得所使用的参数。也许这可以帮助您朝正确的方向发展:)
This is pretty much what Air Video Server and other similar software are doing. I can't give you an exact solution here, but Air Video is using ffmpeg so it should be possible to make your own solution with ffmpeg as the basis. By looking at the processes while running live conversion on Air Video you will also get the parameters used. Maybe this can help you in the right direction :)