{"id":29835216,"url":"https://github.com/livekit/gstreamer-publisher","last_synced_at":"2025-07-29T12:17:32.433Z","repository":{"id":243545498,"uuid":"812540291","full_name":"livekit/gstreamer-publisher","owner":"livekit","description":"Command-line app that publishes any GStreamer pipeline to LiveKit","archived":false,"fork":false,"pushed_at":"2025-07-22T18:24:18.000Z","size":90,"stargazers_count":19,"open_issues_count":5,"forks_count":7,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-07-22T20:25:52.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/livekit.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-09T07:27:08.000Z","updated_at":"2025-07-02T14:57:23.000Z","dependencies_parsed_at":"2024-06-21T12:37:21.295Z","dependency_job_id":"aa010131-bbee-4b9a-b316-550204bd3b03","html_url":"https://github.com/livekit/gstreamer-publisher","commit_stats":null,"previous_names":["livekit/gstreamer-publisher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/livekit/gstreamer-publisher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livekit%2Fgstreamer-publisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livekit%2Fgstreamer-publisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livekit%2Fgstreamer-publisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livekit%2Fgstreamer-publisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/livekit","download_url":"https://codeload.github.com/livekit/gstreamer-publisher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livekit%2Fgstreamer-publisher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267685547,"owners_count":24127706,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-07-29T12:17:31.781Z","updated_at":"2025-07-29T12:17:32.422Z","avatar_url":"https://github.com/livekit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LiveKit GStreamer Publisher\n\nThis utility allows you to publish from any GStreamer source to LiveKit.\nIt parses a gst-launch style pipeline and reads negotiates \n\n## Prerequisites\n\n- Go 1.22 or later\n- GStreamer 1.20 or later\n\n## Install\n\n```bash\ngo install github.com/livekit/gstreamer-publisher@latest\n```\n\n## Usage\n\nTo use this utility, you need to [generate an access token](https://docs.livekit.io/home/get-started/authentication/) that includes\nthe `canPublish` permission.\n\nWhen constructing pipelines, you would want to end the pipeline with elements that produce H264, VP8, VP9, or Opus.\nDo not mux the streams into a container format. GStreamer-publisher will inspect the pipeline and import the raw\nstreams into LiveKit.\n\n## Examples\n\nThe examples below assume you have the following environment variables defined:\n\n```bash\nexport LIVEKIT_URL=\u003cwss://project.livekit.cloud\u003e\nexport LIVEKIT_PUBLISH_TOKEN=\u003ctoken\u003e\n```\n\nTo view the stream, you can create a second token and head over to [our example app](https://meet.livekit.io/?tab=custom) to connect as a viewer.\n\n### Test stream as H.264\n\nThis creates a video and audio from test src, encoding it to H.264 and Opus.\n\n```bash\ngstreamer-publisher --token $LIVEKIT_PUBLISH_TOKEN \\\n    -- \\\n    videotestsrc is-live=true ! \\\n        video/x-raw,width=1280,height=720 ! \\\n        clockoverlay ! \\\n        videoconvert ! \\\n        x264enc tune=zerolatency key-int-max=60 bitrate=2000 \\\n    audiotestsrc is-live=true ! \\\n        audioresample ! \\\n        audioconvert ! \\\n        opusenc bitrate=64000\n```\n\n### Publish from file\n\nThe following converts any video file into VP9 and Opus using decodebin3\n\n```bash\ngstreamer-publisher --token $LIVEKIT_PUBLISH_TOKEN \\\n  -- \\\n    filesrc location=\"/path/to/file\" ! \\\n    decodebin3 name=decoder \\\n    decoder. ! queue ! \\\n        videoconvert ! \\\n        videoscale ! \\\n        video/x-raw,width=1280,height=720 ! \\\n        vp9enc deadline=1 cpu-used=-6 row-mt=1 tile-columns=3 tile-rows=1 target-bitrate=2000000 keyframe-max-dist=60 \\\n    decoder. ! queue ! \\\n        audioconvert ! \\\n        audioresample ! \\\n        opusenc bitrate=64000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flivekit%2Fgstreamer-publisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flivekit%2Fgstreamer-publisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flivekit%2Fgstreamer-publisher/lists"}