{"id":42263409,"url":"https://github.com/cs8425/ffmpeg-ws-relay","last_synced_at":"2026-01-27T06:10:30.409Z","repository":{"id":57648442,"uuid":"178999816","full_name":"cs8425/ffmpeg-ws-relay","owner":"cs8425","description":"streaming video from ffmpeg by broadcasting image frames via websocket","archived":false,"fork":false,"pushed_at":"2019-04-02T07:10:54.000Z","size":8,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T11:49:10.202Z","etag":null,"topics":["canvas","ffmpeg","html5","html5-canvas","video-streaming","websocket"],"latest_commit_sha":null,"homepage":null,"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/cs8425.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":"2019-04-02T04:38:35.000Z","updated_at":"2023-03-08T14:05:44.000Z","dependencies_parsed_at":"2022-09-13T22:00:59.687Z","dependency_job_id":null,"html_url":"https://github.com/cs8425/ffmpeg-ws-relay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cs8425/ffmpeg-ws-relay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs8425%2Fffmpeg-ws-relay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs8425%2Fffmpeg-ws-relay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs8425%2Fffmpeg-ws-relay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs8425%2Fffmpeg-ws-relay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cs8425","download_url":"https://codeload.github.com/cs8425/ffmpeg-ws-relay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs8425%2Fffmpeg-ws-relay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28805441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T05:43:52.625Z","status":"ssl_error","status_checked_at":"2026-01-27T05:43:48.957Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["canvas","ffmpeg","html5","html5-canvas","video-streaming","websocket"],"created_at":"2026-01-27T06:10:29.668Z","updated_at":"2026-01-27T06:10:30.402Z","avatar_url":"https://github.com/cs8425.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ffmpeg ws-relay\nThis is a simple example show up how to streaming video from ffmpeg by broadcasting image frames via websocket.\n\n\n## Build\n\n1. install go: [golang](https://golang.org/dl/)\n2. clone this repo : `git clone https://github.com/cs8425/ffmpeg-ws-relay.git`\n3. build: `go build -o ws-relay ws-relay.go`\n4. run with ffmpeg, see [Usage example](#usage-example)\n5. open browser to: [http://127.0.0.1:8080/](http://127.0.0.1:8080/)\n\n\n## Usage example:\n\n* transcode a file to websocket via png format:\n  * `ffmpeg -re -i v01.mp4 -c:v png -f image2pipe - | ./ws-relay -l :8080 -s png`\n* transcode a file to websocket via jpg format:\n  * `ffmpeg -re -i v01.mp4 -s 1280x720 -c:v mjpeg -qscale:v 2 -f image2pipe - | ./ws-relay -l :8080`\n  * `-s 1280x720` : output size\n  * `-qscale:v 2` : jpeg quality, range 2~31, 31 is the worst quality\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcs8425%2Fffmpeg-ws-relay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcs8425%2Fffmpeg-ws-relay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcs8425%2Fffmpeg-ws-relay/lists"}