{"id":18610994,"url":"https://github.com/beangreen247/twitch-stream-script","last_synced_at":"2026-04-04T22:33:55.795Z","repository":{"id":153757223,"uuid":"281111744","full_name":"BeanGreen247/twitch-stream-script","owner":"BeanGreen247","description":"A script that uses ffplay, ffmpeg and flv to stream to Twitch","archived":false,"fork":false,"pushed_at":"2021-08-22T09:45:57.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-02T02:19:19.757Z","etag":null,"topics":["247","bash","bean","beangreen247","comamnd","ffmpeg","ffplay","flv","green","linux","record","script","stream","terminal","twitch","twitchflv","unix"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BeanGreen247.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-20T12:35:31.000Z","updated_at":"2022-09-13T08:28:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"feec442a-28cf-4ca0-876f-5bf6e4da1163","html_url":"https://github.com/BeanGreen247/twitch-stream-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BeanGreen247/twitch-stream-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeanGreen247%2Ftwitch-stream-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeanGreen247%2Ftwitch-stream-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeanGreen247%2Ftwitch-stream-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeanGreen247%2Ftwitch-stream-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeanGreen247","download_url":"https://codeload.github.com/BeanGreen247/twitch-stream-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeanGreen247%2Ftwitch-stream-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["247","bash","bean","beangreen247","comamnd","ffmpeg","ffplay","flv","green","linux","record","script","stream","terminal","twitch","twitchflv","unix"],"created_at":"2024-11-07T03:12:21.155Z","updated_at":"2026-04-04T22:33:55.761Z","avatar_url":"https://github.com/BeanGreen247.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twitch-stream-script\nA script that uses ffplay, ffmpeg and flv to stream to Twitch\n\nInstall the packages\n```\nsudo apt install vlc libluajit-5.1-2 libluajit-5.1-common libobs0 libxcb-xinput0 vlc-bin vlc-l10n vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-splitter vlc-plugin-visualization ffmpeg wget\n```\nGet the script\n```\nwget -O ~/streamscript.sh https://raw.githubusercontent.com/BeanGreen247/twitch-stream-script/master/streamscript-sample.sh\n```\nThings to change\n\nffmpeg part\n\n* **1680x1050** to your resolution\n* **:0.0+1280** to **:0.0** if you use one monitor\n* **xxxx_xxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx** in **\"rtmp://live-lax.twitch.tv/app/xxxx_xxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"** by replacing the Xs with your **[Twitch dashboard](https://dashboard.twitch.tv/) \u003e\u003e Preferences \u003e\u003e Channel** \u003e\u003e Clik on **Copy** button in **Primary Stream key section** and put the copied stuff like this **\"rtmp://live-lax.twitch.tv/app/1234_567891234_567891234567891234567891234567\"** (just an example)\n\n* in the **-f pulse -filter_complex amerge -ac 2 -i 3** section change the **3** acording to the output of the following command\n```\npacmd list-sources\n```\n* And look for Monitor of **CM106 Like Sound Device Analog Stereo** and replace the **2** in **-f pulse -ac 2 -i 2** with the index number\n\n* **-f alsa -i default -vol 2000** - sets microphone input volume and make sure that your default microphone is the one you want to use\n\n* **-f pulse -i 2** - get desktop audio from pulse\n\n* **-filter_complex \"[1:0][2:0]amix=inputs=2:duration=shortest\"** - mix both audio streams into one\n\nffplay part\n\n* **-left 1325 -top 730 -video_size 380x360** - make sure to change these values as you need\n\nMake executable\n```\nchmod +x streamscript.sh\n```\n\nTo use\n```\n./streamscript.sh\n```\n\n## videos\n[screenrecorder.sh - screen recording script finalized, new features](https://www.youtube.com/watch?v=08LH4z8QC_A)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeangreen247%2Ftwitch-stream-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeangreen247%2Ftwitch-stream-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeangreen247%2Ftwitch-stream-script/lists"}