{"id":13437240,"url":"https://github.com/c-bata/rtmp","last_synced_at":"2025-03-19T06:30:53.748Z","repository":{"id":60241077,"uuid":"117211384","full_name":"c-bata/rtmp","owner":"c-bata","description":"Server implementation of Adobe's RTMP 1.0 protocol in Go.","archived":true,"fork":false,"pushed_at":"2018-06-23T04:51:12.000Z","size":22,"stargazers_count":139,"open_issues_count":1,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-27T21:50:28.787Z","etag":null,"topics":["rtmp","rtmp-server"],"latest_commit_sha":null,"homepage":"https://developers.cyberagent.co.jp/blog/archives/13739","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/c-bata.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-01-12T07:55:27.000Z","updated_at":"2024-09-24T20:13:34.000Z","dependencies_parsed_at":"2022-09-27T04:40:12.803Z","dependency_job_id":null,"html_url":"https://github.com/c-bata/rtmp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Frtmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Frtmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Frtmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Frtmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-bata","download_url":"https://codeload.github.com/c-bata/rtmp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244370912,"owners_count":20442316,"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":["rtmp","rtmp-server"],"created_at":"2024-07-31T03:00:55.300Z","updated_at":"2025-03-19T06:30:51.969Z","avatar_url":"https://github.com/c-bata.png","language":"Go","funding_links":[],"categories":["Multimedia content processing","Go"],"sub_categories":[],"readme":"# rtmp\n\nServer implementation of RTMP 1.0 protocol in Go.\n\n## Getting Started\n\nUsage is like this:\n\n```go\npackage main\n\nimport (\n\t\"flag\"\n\t\"log\"\n\n\t\"github.com/c-bata/rtmp\"\n)\n\nfunc main() {\n\tvar addr string\n\tflag.StringVar(\u0026addr, \"addr\", \":1935\", `TCP address to listen on, \":1935\" if empty`)\n\tflag.Parse()\n\n\tlog.Printf(\"Serving RTMP on %s\", addr)\n\terr := rtmp.ListenAndServe(addr)\n\tif err != nil {\n\t\tlog.Fatalf(\"Catch Error: %s\", err)\n\t}\n}\n```\n\nBuild [an example server script](./_example/server/main.go) via Make and Run it.\n\n```\n$ make build\n$ ./bin/server -addr :1935\n2018/01/28 17:09:53 Serving RTMP on :1935 (rev-a669378)\n```\n\nAfter that, you can send a RTMP stream using RTMP client like ffmpeg or Wirecast.\nIn the case of using ffmpeg, please execute a following command.\n\n```console\n$ ffmpeg -re -i /path/to/your_video.mp4 -map 0 -c:v libx264 -c:a aac -f flv rtmp://127.0.0.1:1935/appName/appInstance\n```\n\n![GIF Animation - Receiving RTMP Stream.](https://github.com/c-bata/assets/raw/master/rtmp/rtmp-receiving-data-original.gif)\n\n## Bibliography\n\n* [RTMP 1.0 Specification - Adobe Systems Inc](http://www.adobe.com/devnet/rtmp.html)\n* [Action Message Format 0 (AMF 0) specification - Adobe Systems Inc](http://wwwimages.adobe.com/content/dam/acom/en/devnet/pdf/amf0-file-format-specification.pdf)\n* [Action Message Format 3 (AMF 3) specification - Adobe Systems Inc](http://wwwimages.adobe.com/content/dam/acom/en/devnet/pdf/amf-file-format-spec.pdf)\n* [RTMP: A Quick Deep-Dive, Nick Chadwick - Youtube](https://www.youtube.com/watch?v=AoRepm5ks80)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Frtmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-bata%2Frtmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Frtmp/lists"}