I want to perform HLS (HTTP Live Streaming) using Gstreamer

我们两清 提交于 2019-12-03 03:41:21

Use hlssink element from gst-plugins-bad:

gst-launch-1.0 videotestsrc is-live=true ! x264enc ! mpegtsmux ! hlssink

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.

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

gst-inspect-1.0 hlssink

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!