{"id":20110623,"url":"https://github.com/deepch/rtmptowebrtc","last_synced_at":"2025-05-06T10:31:58.938Z","repository":{"id":43394453,"uuid":"451867226","full_name":"deepch/RTMPtoWebRTC","owner":"deepch","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T14:32:45.000Z","size":1472,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T11:50:16.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/deepch.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":"2022-01-25T12:24:56.000Z","updated_at":"2025-02-07T18:04:36.000Z","dependencies_parsed_at":"2022-09-05T19:40:58.156Z","dependency_job_id":null,"html_url":"https://github.com/deepch/RTMPtoWebRTC","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/deepch%2FRTMPtoWebRTC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepch%2FRTMPtoWebRTC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepch%2FRTMPtoWebRTC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepch%2FRTMPtoWebRTC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepch","download_url":"https://codeload.github.com/deepch/RTMPtoWebRTC/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252666088,"owners_count":21785194,"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":[],"created_at":"2024-11-13T18:12:48.333Z","updated_at":"2025-05-06T10:31:58.092Z","avatar_url":"https://github.com/deepch.png","language":"JavaScript","funding_links":["https://www.paypal.me/AndreySemochkin"],"categories":[],"sub_categories":[],"readme":"# RTMPtoWebRTC\n\nRTMP Stream to WebBrowser over WebRTC based on Pion (full native! not using ffmpeg or gstreamer).\n\n**Note:** [RTSPtoWeb](https://github.com/deepch/RTSPtoWeb) is an improved service that provides the same functionality, an improved API, and supports even more protocols. *RTSPtoWeb is recommended over using this service.*\n\n\nif you need RTSPtoWSMP4f use https://github.com/deepch/RTSPtoWSMP4f\n\n\n![RTMPtoWebRTC image](doc/demo4.png)\n\n### Download Source\n\n1. Download source\n   ```bash \n   $ git clone https://github.com/deepch/RTMPtoWebRTC  \n   ```\n3. CD to Directory\n   ```bash\n    $ cd RTMPtoWebRTC/\n   ```\n4. Test Run\n   ```bash\n    $ GO111MODULE=on go run *.go\n   ```\n5. Open Browser\n    ```bash\n    open web browser http://127.0.0.1:8083 work chrome, safari, firefox\n    ```\n\n## Configuration\n\n### Edit file config.json\n\nformat:\n\n```bash\n{\n  \"server\": {\n    \"http_port\": \":8083\"\n  },\n  \"streams\": {\n    \"demo1\": {\n      \"on_demand\" : false\n      \"url\": \"rtmp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa\"\n    },\n    \"demo2\": {\n      \"on_demand\" : true\n      \"url\": \"rtmp://admin:admin123@10.128.18.224/mpeg4\"\n    },\n    \"demo3\": {\n      \"on_demand\" : false\n      \"url\": \"rtmp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa\"\n    }\n  }\n}\n```\n\n## Livestreams\n\nUse option ``` \"on_demand\": false ``` otherwise you will get choppy jerky streams and performance issues when multiple clients connect. \n\n## Limitations\n\nVideo Codecs Supported: H264\n\nAudio Codecs Supported: pcm alaw and pcm mulaw \n\n## Team\n\nDeepch - https://github.com/deepch streaming developer\n\nDmitry - https://github.com/vdalex25 web developer\n\nNow test work on (chrome, safari, firefox) no MAC OS\n\n## Other Example\n\nExamples of working with video on golang\n\n- [RTSPtoWeb](https://github.com/deepch/RTSPtoWeb)\n- [RTMPtoWebRTC](https://github.com/deepch/RTMPtoWebRTC)\n- [RTSPtoWSMP4f](https://github.com/deepch/RTSPtoWSMP4f)\n- [RTSPtoImage](https://github.com/deepch/RTSPtoImage)\n- [RTSPtoHLS](https://github.com/deepch/RTSPtoHLS)\n- [RTSPtoHLSLL](https://github.com/deepch/RTSPtoHLSLL)\n\n[![paypal.me/AndreySemochkin](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/AndreySemochkin) - You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepch%2Frtmptowebrtc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepch%2Frtmptowebrtc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepch%2Frtmptowebrtc/lists"}