{"id":19703566,"url":"https://github.com/monibuca/plugin-ps","last_synced_at":"2025-06-19T12:36:18.933Z","repository":{"id":165024219,"uuid":"636664684","full_name":"Monibuca/plugin-ps","owner":"Monibuca","description":"handle mpeg-ps stream for monibuca","archived":false,"fork":false,"pushed_at":"2024-09-13T05:43:23.000Z","size":57,"stargazers_count":1,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"v4","last_synced_at":"2025-04-05T17:51:08.653Z","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/Monibuca.png","metadata":{"files":{"readme":"README.en.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}},"created_at":"2023-05-05T11:10:57.000Z","updated_at":"2024-09-13T05:43:26.000Z","dependencies_parsed_at":"2024-08-01T08:17:00.289Z","dependency_job_id":"f53f105a-d701-4ba5-94b5-e030333ddbf2","html_url":"https://github.com/Monibuca/plugin-ps","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-ps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-ps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-ps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-ps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monibuca","download_url":"https://codeload.github.com/Monibuca/plugin-ps/tar.gz/refs/heads/v4","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251518863,"owners_count":21602229,"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-11T21:18:15.703Z","updated_at":"2025-04-29T14:30:52.684Z","avatar_url":"https://github.com/Monibuca.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"_[简体中文](https://github.com/Monibuca/plugin-ps) | English_\n\n# PS Plugin\n\nenable receive MpegPS stream\n\n## Plugin Address\n\nhttps://github.com/Monibuca/plugin-ps\n\n## Plugin Import\n```go\n    import (  _ \"m7s.live/plugin/ps/v4\" )\n```\n\n## Default Config\n\n```yaml\nps:\n  http: # format refer to global config\n  publish: # format refer to global config\n  publish: # format refer to global config\n  relaymode: 1 # 0:relay only 1:protocol transfar only 2:relay and protocol transfar\n```\n\n## API\n\n### receive PS stream\n`/ps/api/receive?streamPath=xxx\u0026ssrc=xxx\u0026port=xxx\u0026reuse=1\u0026dump=xxx`\n\n- reuse means whether to reuse port, if reuse port, please make sure the ssrc from device is same as ssrc parameter, otherwise it will cause mixed stream\n- dump means whether to dump to file, if dump to file, it will generate a folder named dump in current directory, the folder contains a file named by streamPath parameter, the file content is the data received from port [4byte content length][2byte relative time][content]\n### replay PS dump file\n\n`/ps/api/replay?streamPath=xxx\u0026dump=xxx`\n- dump means the file to replay, default is dump/ps\n- streamPath means the streamPath of replayed video stream, default is replay/dump/ps (if dump is abc, then streamPath is replay/abc)\n\n### read PS stream by ws protocol\n\n`ws://[host]/ps/[streamPath]`\n\nfor example： ws://localhost:8080/ps/live/test\n\nthe data is raw PS data, without rtp header","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fplugin-ps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonibuca%2Fplugin-ps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fplugin-ps/lists"}