{"id":13908311,"url":"https://github.com/riltech/streamer","last_synced_at":"2025-07-18T07:30:55.120Z","repository":{"id":45279345,"uuid":"238760740","full_name":"riltech/streamer","owner":"riltech","description":"Go Package built around spinning up streaming processes","archived":false,"fork":false,"pushed_at":"2024-07-24T14:26:31.000Z","size":10,"stargazers_count":40,"open_issues_count":1,"forks_count":33,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-25T17:46:03.534Z","etag":null,"topics":["go","golang","golang-library","golang-package","hls","rtsp","rtsp-client","stream","streaming"],"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/riltech.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}},"created_at":"2020-02-06T18:53:09.000Z","updated_at":"2024-09-20T01:26:01.000Z","dependencies_parsed_at":"2024-11-25T17:33:11.906Z","dependency_job_id":"7b0bcedd-172b-459a-82a8-053cc8f2dc76","html_url":"https://github.com/riltech/streamer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/riltech/streamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riltech%2Fstreamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riltech%2Fstreamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riltech%2Fstreamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riltech%2Fstreamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riltech","download_url":"https://codeload.github.com/riltech/streamer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riltech%2Fstreamer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265720451,"owners_count":23817240,"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":["go","golang","golang-library","golang-package","hls","rtsp","rtsp-client","stream","streaming"],"created_at":"2024-08-06T23:02:38.030Z","updated_at":"2025-07-18T07:30:54.845Z","avatar_url":"https://github.com/riltech.png","language":"Go","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# streamer\n[![Go Report Card](https://goreportcard.com/badge/github.com/riltech/streamer)](https://goreportcard.com/report/github.com/riltech/streamer)\n [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n ![GitHub last commit](https://img.shields.io/github/last-commit/riltech/streamer.svg)\n ![GitHub release](https://img.shields.io/github/release/riltech/streamer.svg)\n\nGo Package built around spinning up streaming processes\n\n# How\nStream exposes a struct called `Stream` which starts an underlying ffmpeg process to\ntranscode incoming raw RTSP stream to HLS based on parameters.\n\nIt provides a handy interface to handle streams\n\n[More info on docs](https://godoc.org/github.com/riltech/streamer)\n\n# Example usage\n\n```go\nimport \"github.com/riltech/streamer\"\n\nfunc main() {\n\tstream, id := streamer.NewStream(\n\t\t\"rtsp://admin:password@host.dyndns.org:447/Streaming/Channel/2\", // URI of raw RTSP stream\n\t\t\"./videos\", // Directory where to store video chunks and indexes. Should exist already\n\t\ttrue, // Indicates if stream should be keeping files after it is stopped or clean the directory\n\t\ttrue, // Indicates if Audio should be enabled or not\n\t\tstreamer.ProcessLoggingOpts{\n\t\t\tEnabled:    true, // Indicates if process logging is enabled\n\t\t\tCompress:   true, // Indicates if logs should be compressed\n\t\t\tDirectory:  \"/tmp/logs/stream\", // Directory to store logs\n\t\t\tMaxAge:     0, // Max age for a log. 0 is infinite\n\t\t\tMaxBackups: 2, // Maximum backups to keep\n\t\t\tMaxSize:    500, // Maximum size of a log in megabytes\n\t\t},\n\t\t25*time.Second, // Time to wait before declaring a stream start failed\n  )\n  \n  // Returns a waitGroup where the stream checking the underlying process for a successful start\n  stream.Start().Wait() \n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friltech%2Fstreamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friltech%2Fstreamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friltech%2Fstreamer/lists"}