{"id":17132292,"url":"https://github.com/tabmk/ffmpeg-stream-radio","last_synced_at":"2025-04-13T07:55:48.364Z","repository":{"id":45692324,"uuid":"293305585","full_name":"TABmk/ffmpeg-stream-radio","owner":"TABmk","description":"Endless stream radio like \"lofi hip hop\"","archived":false,"fork":false,"pushed_at":"2020-09-06T16:10:19.000Z","size":3,"stargazers_count":12,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T07:55:43.303Z","etag":null,"topics":["ffmpeg","hacktoberfest","stream"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/TABmk.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":"2020-09-06T15:29:19.000Z","updated_at":"2024-07-27T04:11:23.000Z","dependencies_parsed_at":"2022-07-19T05:17:17.378Z","dependency_job_id":null,"html_url":"https://github.com/TABmk/ffmpeg-stream-radio","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/TABmk%2Fffmpeg-stream-radio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TABmk%2Fffmpeg-stream-radio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TABmk%2Fffmpeg-stream-radio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TABmk%2Fffmpeg-stream-radio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TABmk","download_url":"https://codeload.github.com/TABmk/ffmpeg-stream-radio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681491,"owners_count":21144700,"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":["ffmpeg","hacktoberfest","stream"],"created_at":"2024-10-14T19:26:37.264Z","updated_at":"2025-04-13T07:55:48.326Z","avatar_url":"https://github.com/TABmk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Endless stream radio like \"lofi hip hop\"\n\n### Usage\n\nInstall `ffmpeg` and `mbuffer`\n\n```\nsudo apt update\nsudo apt install ffmpeg mbuffer -y\n```\n\nEdit variables in `stream.sh` and run it\n\n- `MUSIC_FOLDER` music folder\n- `VIDEO` background video\n- `RTMP_SERVERS` rtmp servers for stream. You can add extra server by appending `|[f=flv]rtmp://server2` to string\n\nRun `sh stream.sh`\n\n#### RTMP_SERVERS\n\n**Youtube**: https://www.youtube.com/live_dashboard\n\nExample: `rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx-xxxx`\n\n**vk.com**: https://vk.com/video\n\nExample: `rtmp://stream2.vkuserlive.com:443/vlive.123.XXXXXXX/KEY`\n\n**Twitch**: https://stream.twitch.tv/ingests\n\nExample: `rtmp://live-hel.twitch.tv/app/{stream_key}`\n\n### How it works\n\nThis bash-script is endless loop. Each iteration gets random file from `MUSIC_FOLDER` and with help of ffmpeg piping it to 20M buffer. Then buffer from `mbuffer` piping music to main `ffmpeg` process.\n\nVideo input for `ffmpeg` is `VIDEO`, audio input is pipe from buffer. Output is 1080p/30FPS stream to `RTMP_SERVERS`\n\n### TODO\n- [ ] check loop leaks\n- [ ] check ffmpeg settings\n- [ ] optimization\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftabmk%2Fffmpeg-stream-radio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftabmk%2Fffmpeg-stream-radio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftabmk%2Fffmpeg-stream-radio/lists"}