多位比特率在Windows上使用FFmpeg播放HLS [英] Multi bitrate live HLS with FFmpeg on Windows

查看:287
本文介绍了多位比特率在Windows上使用FFmpeg播放HLS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一个直播流编码到苹果HLS for Windows上。我正在看不同的选择,并且可以做到这一点,但是不能支持HLS的CDN分发,只要我能看到。此外,它花费了很多钱。



我发现这个网站是: http://www.espend.de/artikel/iphone-ipad-ipod-http-streaming-segmenter-and- m3u8-windows.html



我现在可以轻松地设置单个比特率流,但我的目标是一个适应性的多比特率直播流。可能吗?对于VOD内容,可以轻松地创建不同的品质,然后在新的m3u8中连接到他们,但是如何在现场完成?



我当然可以设置三个优质的实时流,并将它们连接到一个m3u8中,但是在这种情况下,我将如何将它们与GOP进行对齐?



我的初步想法是拥有一个ffmpeg实例创建所有质量,并将这些输出重新流向新的ffmpeg实例,只需将其重新分配并分配给分段器。但是我需要一些在实例之间本地流的方法。可以这样做吗?



如果有人有一个很好的解决方案,或者可以链接到其他能够在Windows上实现HLS的软件,我会欣赏任何输入。 p>

有一个美好的一天!
Regards
Carl

解决方案

只是让人们知道,我最终使用 http://www.ioncannon.net/projects/http-live-video -stream-segmenter-and-distributor / 在一个linux虚拟机上,它的效果非常好。编译过程中遇到麻烦,但有几个问题可以解决这些问题。


I am trying to encode a live stream into Apple HLS for iPhone on windows. I was looking at different options and wowza can do it, but doesn't support CDN distribution of HLS as far as I can see. Plus it costs a lot of money.

What I did find was this site: http://www.espend.de/artikel/iphone-ipad-ipod-http-streaming-segmenter-and-m3u8-windows.html

I can now set up a single bitrate stream easily, but my goal is an adapive multi-bitrate live stream. Is it possible? For VOD content it can easily be accomplished with creating the different qualities then linking to them in a new m3u8, but how would this be done in live?

I can of course set up three quality live streams and link to them in an m3u8, but how will I get them GOP-aligned in this case?

My initial thought was to have one ffmpeg instance create all qualities and re-stream those outputs to new ffmpeg-instances that just remux and pipe to the segmenter. But I would need some way of streaming locally between instances. Can that be done?

If anyone has a nice solution to this, or can link to other software capable of live HLS on windows, I would appreciate any input.

Have a great day! Regards Carl

解决方案

Just to let people know, I ended up using http://www.ioncannon.net/projects/http-live-video-stream-segmenter-and-distributor/ on a linux virtualbox and it works great. I had trouble compiling it, but there were a couple of forks that fixed those problems.

这篇关于多位比特率在Windows上使用FFmpeg播放HLS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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