首页 / GO / LAL-开源Go语言音视频流媒体服务器
LAL-开源Go语言音视频流媒体服务器
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了LAL-开源Go语言音视频流媒体服务器,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2797字,纯文字阅读大概需要4分钟。
内容图文
![LAL-开源Go语言音视频流媒体服务器](/upload/InfoBanner/zyjiaocheng/1002/dd24ab1925bd42099fc6eac6716a696b.jpg)
https://github.com/q191201771/lal
LAL is an audio/video live streaming broadcast server written in Go. It's sort of like nginx-rtmp-module
, but easier to use and with more features, e.g RTMP, RTSP(RTP/RTCP), HLS, HTTP[S]-FLV/HTTP-TS, WebSocket-FLV/TS, H264/H265/AAC, relay, cluster, record, HTTP API/Notify, GOP cache.
And more than a server, act as package and client
Install
There are 2 ways of installing lal.
Prebuilt binaries
Prebuilt binaries for Linux, macOS(Darwin), Windows are available in the lal github releases page. Naturally, using the latest release binary is the recommended way. The naming format is lal_<version>_<platform>.zip
, e.g. lal_v0.20.0_linux.zip
LAL could also be built from the source wherever the Go compiler toolchain can run, e.g. for other architectures including arm32 and mipsle which have been tested by the community.
Building from source
First, make sure that Go version >= 1.13
For Linux/macOS user:
$git clone https://github.com/q191201771/lal.git
$cd lal
$make build
Then all binaries go into the ./bin/
directory. That's it.
For an experienced gopher(and Windows user), the only thing you should be concern is that the main function
is under the ./app/lalserver
directory. So you can also:
$git clone https://github.com/q191201771/lal.git
$cd lal/app/lalserver
$go build
Or using whatever IDEs you'd like.
So far, the only direct and indirect dependency of lal is naza(A basic Go utility library) which is also written by myself. This leads to less dependency or version manager issues.
Using
Running lalserver:
$./bin/lalserver -c ./conf/lalserver.conf.json
Using whatever clients you are familiar with to interact with lalserver.
For instance, publish rtmp stream to lalserver via ffmpeg:
$ffmpeg -re -i demo.flv -c:a copy -c:v copy -f flv rtmp://127.0.0.1:1935/live/test110
Play multi protocol stream from lalserver via ffplay:
$ffplay rtmp://127.0.0.1/live/test110
$ffplay http://127.0.0.1:8080/live/test110.flv
$ffplay http://127.0.0.1:8081/hls/test110/playlist.m3u8
$ffplay http://127.0.0.1:8081/hls/test110/record.m3u8
$ffplay http://127.0.0.1:8082/live/test110.ts
More than a server, act as package and client
Besides a live stream broadcast server which named lalserver
precisely, project lal
even provides many other applications, e.g. push/pull/remux stream clients, bench tools, examples. Each subdirectory under the ./app/demo
directory represents a tiny demo.
Our goals are not only a production server but also a simple package with a well-defined, user-facing API, so that users can build their own applications on it.
LAL
stands for Live And Live
if you may wonder.
Contact
Bugs, questions, suggestions, anything related or not, feel free to contact me with lal github issues.
License
MIT, see License.
https://github.com/q191201771/lal
内容总结
以上是互联网集市为您收集整理的LAL-开源Go语言音视频流媒体服务器全部内容,希望文章能够帮你解决LAL-开源Go语言音视频流媒体服务器所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。