{"id":13907417,"url":"https://github.com/bigsillybear/livego","last_synced_at":"2026-01-12T03:02:31.538Z","repository":{"id":48658496,"uuid":"385504829","full_name":"bigsillybear/livego","owner":"bigsillybear","description":"live streaming server in golang","archived":false,"fork":false,"pushed_at":"2021-07-15T13:18:19.000Z","size":287,"stargazers_count":30,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-07T23:51:48.983Z","etag":null,"topics":["audio","flash","flv","golang","h264","hls","live","rtmp","stream","streaming","video"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigsillybear.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-13T06:51:41.000Z","updated_at":"2024-05-15T20:41:04.000Z","dependencies_parsed_at":"2022-09-11T03:01:16.132Z","dependency_job_id":null,"html_url":"https://github.com/bigsillybear/livego","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigsillybear%2Flivego","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigsillybear%2Flivego/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigsillybear%2Flivego/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigsillybear%2Flivego/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigsillybear","download_url":"https://codeload.github.com/bigsillybear/livego/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226353666,"owners_count":17611742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","flash","flv","golang","h264","hls","live","rtmp","stream","streaming","video"],"created_at":"2024-08-06T23:01:55.760Z","updated_at":"2024-11-25T15:31:51.035Z","avatar_url":"https://github.com/bigsillybear.png","language":"Go","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"\u003cp align='center'\u003e\n    \u003cimg src='./logo.png' width='200px' height='80px'/\u003e\n\u003c/p\u003e\n\n[中文](./README_cn.md)\n\n[![Test](https://github.com/bigsillybear/livego/workflows/Test/badge.svg)](https://github.com/bigsillybear/livego/actions?query=workflow%3ATest)\n[![Release](https://github.com/bigsillybear/livego/workflows/Release/badge.svg)](https://github.com/bigsillybear/livego/actions?query=workflow%3ARelease)\n\nSimple and efficient live broadcast server:\n- Very simple to install and use;\n- Pure Golang, high performance, and cross-platform;\n- Supports commonly used transmission protocols, file formats, and encoding formats;\n\n#### Supported transport protocols\n- RTMP\n- AMF\n- HLS\n- HTTP-FLV\n\n#### Supported container formats\n- FLV\n- TS\n\n#### Supported encoding formats\n- H264\n- AAC\n- MP3\n\n## Installation\nAfter directly downloading the compiled [binary file](https://github.com/bigsillybear/livego/releases), execute it on the command line.\n\n#### Boot from Docker\nRun `docker run -p 1935:1935 -p 7001:7001 -p 7002:7002 -p 8090:8090 -d gwuhaolin/livego` to start\n\n#### Compile from source\n1. Download the source code `git clone https://github.com/gwuhaolin/livego.git`\n2. Go to the livego directory and execute `go build` or `make build`\n\n## Use\n1. Start the service: execute the livego binary file or `make run` to start the livego service;\n2. Get a channelkey(used for push the video stream) from `http://localhost:8090/control/get?room=movie` and copy data like your channelkey.\n3. Upstream push: Push the video stream to `rtmp://localhost:1935/{appname}/{channelkey}` through the` RTMP` protocol(default appname is `live`), for example, use `ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/{appname}/{channelkey}` push([download demo flv](https://s3plus.meituan.net/v1/mss_7e425c4d9dcb4bb4918bbfa2779e6de1/mpack/default/demo.flv));\n4. Downstream playback: The following three playback protocols are supported, and the playback address is as follows:\n    - `RTMP`:`rtmp://localhost:1935/{appname}/movie`\n    - `FLV`:`http://127.0.0.1:7001/{appname}/movie.flv`\n    - `HLS`:`http://127.0.0.1:7002/{appname}/movie.m3u8`\n\nall options:\n```bash\n./livego  -h\nUsage of ./livego:\n      --api_addr string       HTTP manage interface server listen address (default \":8090\")\n      --config_file string    configure filename (default \"livego.yaml\")\n      --flv_dir string        output flv file at flvDir/APP/KEY_TIME.flv (default \"tmp\")\n      --gop_num int           gop num (default 1)\n      --hls_addr string       HLS server listen address (default \":7002\")\n      --hls_keep_after_end    Maintains the HLS after the stream ends\n      --httpflv_addr string   HTTP-FLV server listen address (default \":7001\")\n      --level string          Log level (default \"info\")\n      --read_timeout int      read time out (default 10)\n      --rtmp_addr string      RTMP server listen address\n```\n\n### [Use with flv.js](https://github.com/gwuhaolin/blog/issues/3)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigsillybear%2Flivego","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigsillybear%2Flivego","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigsillybear%2Flivego/lists"}