我想使用Gstreamer执行HLS(HTTP实时流) [英] I want to perform HLS (HTTP Live Streaming) using Gstreamer

查看:733
本文介绍了我想使用Gstreamer执行HLS(HTTP实时流)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将网络摄像头视频流式传输到http网页.我知道如何从网络摄像头读取并将其存档到文件.

I would like to stream web cam video to http web page. I know how to read from web cam and archive it to file.

但是如何通过网络流式传输.有什么管道?

But how to stream via web. What is the pipeline for that?

推荐答案

使用它将生成播放列表和片段文件.您需要提供对这些文件的HTTP访问权限,例如,您可以使用任何网络服务器,例如 nginx Apache .

It will generate playlist and segments files. You need to provide HTTP access to these files, you can use any webserver, nginx or Apache, for example.

您可以调整hlssink的参数以指定目标位置,段数等.所有选项都可以列出:

You can tweak hlssink's parameters to specify target location, segments count, etc. All options can be listed with:

gst-inspect-1.0 hlssink

如果您需要更好的底层控制,则最好使用 libsoup 创建自己的Web服务器,手动将MPEG-TS分割成段并添加自己的播放列表端点.

If you need better low-level control, you'd better create your own web server with libsoup, manually split MPEG-TS into segments and add your own playlist endpoint.

这篇关于我想使用Gstreamer执行HLS(HTTP实时流)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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