{"id":24089962,"url":"https://github.com/josephnhtam/live-streaming-server-net","last_synced_at":"2025-05-15T16:02:33.240Z","repository":{"id":214956241,"uuid":"737077511","full_name":"josephnhtam/live-streaming-server-net","owner":"josephnhtam","description":"A .NET implementation of RTMP live streaming server, supporting HTTP-FLV, WebSocket-FLV, HLS, Kubernetes, cloud storage services integration and more.","archived":false,"fork":false,"pushed_at":"2025-05-05T08:03:08.000Z","size":12117,"stargazers_count":194,"open_issues_count":8,"forks_count":30,"subscribers_count":11,"default_branch":"develop","last_synced_at":"2025-05-06T19:13:57.526Z","etag":null,"topics":["asp-net-core","autoscaling","cloud-native","csharp","dash","dotnet","dotnet-library","flv","hls","http-flv","kubernetes","live-streaming","livestream","remuxing","rtmp","rtmp-server","websocket-flv"],"latest_commit_sha":null,"homepage":"https://josephnhtam.github.io/live-streaming-server-net/","language":"C#","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/josephnhtam.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":"2023-12-29T18:40:42.000Z","updated_at":"2025-05-05T08:02:16.000Z","dependencies_parsed_at":"2024-01-16T17:06:54.550Z","dependency_job_id":"6a8efb0c-01b1-4ace-a9bb-1ee0ee5037bb","html_url":"https://github.com/josephnhtam/live-streaming-server-net","commit_stats":null,"previous_names":["josephnhtam/live-streaming-server-net"],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephnhtam%2Flive-streaming-server-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephnhtam%2Flive-streaming-server-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephnhtam%2Flive-streaming-server-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephnhtam%2Flive-streaming-server-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josephnhtam","download_url":"https://codeload.github.com/josephnhtam/live-streaming-server-net/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374398,"owners_count":22060609,"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":["asp-net-core","autoscaling","cloud-native","csharp","dash","dotnet","dotnet-library","flv","hls","http-flv","kubernetes","live-streaming","livestream","remuxing","rtmp","rtmp-server","websocket-flv"],"created_at":"2025-01-10T05:40:09.887Z","updated_at":"2025-05-15T16:02:33.152Z","avatar_url":"https://github.com/josephnhtam.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Live-Streaming-Server-Net\n\n![Build and Test](https://github.com/josephnhtam/live-streaming-server-net/actions/workflows/build_and_test.yaml/badge.svg)\n[![Nuget](https://img.shields.io/nuget/v/LiveStreamingServerNet)](https://www.nuget.org/packages/LiveStreamingServerNet/)\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![JetBrains OSS](https://img.shields.io/badge/JetBrains-OSS-yellow.svg)](https://www.jetbrains.com/community/opensource)\n[![libs.tech recommends](https://libs.tech/project/737077511/badge.svg)](https://libs.tech/project/737077511/live-streaming-server-net)\n\nLive-Streaming-Server-Net is a high-performance and flexible toolset that allows you to build your own live streaming server using .NET.\n\nPlease check the [documentation](https://josephnhtam.github.io/live-streaming-server-net/) for more details.\n\n## Features\n\n- **RTMP/RTMPS protocol**: Supports the RTMP and RTMPS protocols for streaming audio, video, and data.\n- **RTMP Relay**: Supports relaying RTMP streams between servers, allowing building a scalable RTMP server cluster.\n- **RTMP Client**: Provides a client library for connecting to RTMP servers and publishing/subscribing live streams.\n- **HTTP-FLV/WebSocket-FLV with ASP.NET CORE**: Provides support for serving FLV live streams using HTTP-FLV and WebSocket-FLV protocols within an ASP.NET Core application.\n- **Transmuxing RTMP streams into HLS streams**: Allows you to transmux RTMP streams into HLS (HTTP Live Streaming) streams using the built-in HLS transmuxer.\n- **Transcoding RTMP streams into Adaptive HLS streams**: Integrates with FFmpeg to transcode RTMP streams into multiple-bitrate Adaptive HLS streams.\n- **Integration with FFmpeg**: Provides support for processing the incoming RTMP stream with FFmpeg, for example, to create an MP4 archive.\n- **GOP caching**: Supports caching the Group of Pictures (GOP) to ensure immediate availability of live streaming content.\n- **Custom authorization**: Enables you to implement custom authorization mechanisms for accessing live streams.\n- **Admin panel**: Includes an admin panel that provides an user interface for managing and monitoring the live streaming server.\n- **Cloud Storage Integration**: Enabling real-time uploading of HLS files to cloud storage services like Azure Blob Storage, Google Cloud Storage, and AWS S3, which ensures scalable and efficient HLS stream distribution through CDN.\n- **Realtime HLS Subtitle Transcription**: Integrates with Azure AI Speech to provide real-time transcription of HLS streams, automatically generating WebVTT subtitle files.\n- **Codecs**: Supports AVC/H.264, HEVC/H.265, AAC, and MP3 codecs.\n\n## In-Progress\n\n- **Custom Kubernetes Operator and Kubernetes Integration**: The objective is to achieve horizontal autoscaling by scaling out the pods when more streams are published, and scaling in the pods when streams are deleted, all without affecting the existing connections.\n- **Redis Integration**: Integrate with Redis to share stream information among pods in the fleet.\n\n## Quick Start\n\n### Run the RTMP Server\n\nCreate a .NET 8 console application project and add the dependencies\n\n```\ndotnet new console\ndotnet add package LiveStreamingServerNet\ndotnet add package Microsoft.Extensions.Logging.Console\n```\n\nProgram.cs\n\n```cs\nusing LiveStreamingServerNet;\nusing Microsoft.Extensions.Logging;\nusing System.Net;\n\nusing var server = LiveStreamingServerBuilder.Create()\n    .ConfigureLogging(options =\u003e options.AddConsole())\n    .Build();\n\nawait server.RunAsync(new IPEndPoint(IPAddress.Any, 1935));\n```\n\nRun the application\n\n```\ndotnet run\n```\n\n### Publish a Live Stream\n\n#### With FFmpeg\n\nUse the following command to publish a video as the live stream using FFmpeg\n\n```\nffmpeg -re -i \u003cinput_file\u003e -c:v libx264 -c:a aac -f flv rtmp://localhost:1935/live/demo\n```\n\n#### With OBS Studio\n\n1. Open OBS Studio and go to \"Settings\".\n2. In the \"Settings\" window, select the \"Stream\" tab.\n3. Choose \"Custom\" as the \"Service\".\n4. Enter \"Server\": `rtmp://localhost:1935/live` and \"Stream Key\": `demo`.\n5. Click \"OK\" to save the settings.\n6. Click the \"Start Streaming\" button in OBS Studio to begin sending live stream to the RTMP server.\n\n### Play the Live Stream\n\n#### With FFplay\n\nUse the following command to play the live stream using FFplay\n\n```\nffplay rtmp://localhost:1935/live/demo\n```\n\n#### With VLC Media Player\n\n1. Open VLC Media Player.\n2. Go to the \"Media\" menu and select \"Open Network Stream\".\n3. In the \"Network\" tab, enter the URL: `rtmp://localhost:1935/live/demo`.\n4. Click the \"Play\" button to start playing the live stream.\n\n---\n\n### Serve FLV Live Streams\n\nCreate a ASP.NET CORE 8 Web API application project and add the dependencies\n\n```\ndotnet new webapi\ndotnet add package LiveStreamingServerNet\ndotnet add package LiveStreamingServerNet.Flv\n```\n\nProgram.cs\n\n```cs\nusing System.Net;\nusing LiveStreamingServerNet;\nusing LiveStreamingServerNet.Flv.Installer;\n\nvar builder = WebApplication.CreateBuilder(args);\n\nbuilder.Services.AddLiveStreamingServer(\n    new IPEndPoint(IPAddress.Any, 1935),\n    options =\u003e options.AddFlv()\n);\n\nvar app = builder.Build();\n\napp.UseWebSockets();\napp.UseWebSocketFlv();\n\napp.UseHttpFlv();\n\nawait app.RunAsync();\n```\n\nRun the application\n\n```\ndotnet run --urls=\"https://+:8080\"\n```\n\n#### Play FLV Live Streams\n\nGiven a live stream is published to `rtmp://localhost:1935/live/demo`\n\n**HTTP-FLV**\n\n```\nhttps://localhost:8080/live/demo.flv\n```\n\n**WebSocket-FLV**\n\n```\nwss://localhost:8080/live/demo.flv\n```\n\n#### Remux RTMP Streams into HLS Streams\n\nPlease refer to the [LiveStreamServerNet.HlsDemo](https://github.com/josephnhtam/live-streaming-server-net/tree/master/samples/LiveStreamingServerNet.HlsDemo)\n\n## Admin Panel\n\n![Admin Panel](images/admin-panel.jpeg)\n\n![HTTP-FLV Preview](images/http-flv-preview.jpeg)\n\nPlease refer to the [LiveStreamServerNet.StandaloneDemo](https://github.com/josephnhtam/live-streaming-server-net/tree/master/samples/LiveStreamingServerNet.StandaloneDemo)\n\n## NuGet Packages\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003ePackage\u003c/th\u003e\n      \u003cth\u003eLatest Version\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.Standalone\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.Standalone\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.Standalone.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.AdminPanelUI\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.AdminPanelUI\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.AdminPanelUI.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.Flv\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.Flv\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.Flv.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.Networking\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.Networking\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.Networking.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.Networking.Client\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.Networking.Client\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.Networking.Client.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.Networking.Server\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.Networking.Server\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.Networking.Server.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.Rtmp\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.Rtmp\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.Rtmp.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.Rtmp.Client\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.Rtmp.Client\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.Rtmp.Client.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.Rtmp.Relay\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.Rtmp.Relay\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.Rtmp.Relay.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.Rtmp.Server\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.Rtmp.Server\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.Rtmp.Server.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.StreamProcessor\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.StreamProcessor\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.StreamProcessor.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.StreamProcessor.AmazonS3\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.StreamProcessor.AmazonS3\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.StreamProcessor.AmazonS3.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\t\u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.StreamProcessor.AspNetCore\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.StreamProcessor.AspNetCore\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.StreamProcessor.AspNetCore.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.StreamProcessor.AzureAISpeech\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.StreamProcessor.AzureAISpeech\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.StreamProcessor.AzureAISpeech.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.StreamProcessor.AzureBlobStorage\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.StreamProcessor.AzureBlobStorage\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.StreamProcessor.AzureBlobStorage.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.StreamProcessor.GoogleCloudStorage\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.StreamProcessor.GoogleCloudStorage\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.StreamProcessor.GoogleCloudStorage.svg?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLiveStreamingServerNet.Utilities\u003c/th\u003e\n      \u003ctd\u003e\u003ca href=\"https://www.nuget.org/packages/LiveStreamingServerNet.Utilities\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/LiveStreamingServerNet.Utilities?logo=nuget\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n## License\n\nThis project is licensed under the terms of the [MIT license](https://github.com/josephnhtam/live-streaming-server-net/blob/master/LICENSE).\n\n## Acknowledgments\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./images/jetbrains-white.svg\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./images/jetbrains.svg\"\u003e\n  \u003cimg src=\"./images/jetbrains.svg\" alt=\"JetBrains\" width=\"200\"/\u003e\n\u003c/picture\u003e\n\nSpecial thanks to [JetBrains](https://www.jetbrains.com/) for providing the open-source software license that supports the development of this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephnhtam%2Flive-streaming-server-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosephnhtam%2Flive-streaming-server-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephnhtam%2Flive-streaming-server-net/lists"}