{"id":13907747,"url":"https://github.com/gkozlenko/node-media-server","last_synced_at":"2025-07-18T06:31:06.518Z","repository":{"id":53135872,"uuid":"75434326","full_name":"gkozlenko/node-media-server","owner":"gkozlenko","description":"Node.js Media Server / VOD / HLS / DRM","archived":false,"fork":false,"pushed_at":"2024-05-25T07:57:07.000Z","size":325,"stargazers_count":82,"open_issues_count":6,"forks_count":23,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-07T23:53:50.879Z","etag":null,"topics":["flv","hls","mediaserver","mp4","vod"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/gkozlenko.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},"funding":{"custom":["https://www.paypal.me/pipll","https://www.buymeacoffee.com/NIUeF95"]}},"created_at":"2016-12-02T22:00:11.000Z","updated_at":"2024-07-18T16:01:23.000Z","dependencies_parsed_at":"2024-04-20T15:41:55.803Z","dependency_job_id":"30866f74-b4a2-436d-9f7b-1af737c652c5","html_url":"https://github.com/gkozlenko/node-media-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkozlenko%2Fnode-media-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkozlenko%2Fnode-media-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkozlenko%2Fnode-media-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkozlenko%2Fnode-media-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gkozlenko","download_url":"https://codeload.github.com/gkozlenko/node-media-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226361505,"owners_count":17612917,"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":["flv","hls","mediaserver","mp4","vod"],"created_at":"2024-08-06T23:02:08.625Z","updated_at":"2024-11-25T16:30:56.124Z","avatar_url":"https://github.com/gkozlenko.png","language":"JavaScript","funding_links":["https://www.paypal.me/pipll","https://www.buymeacoffee.com/NIUeF95"],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# node-media-server\n\n[![ESLint Status](https://github.com/gkozlenko/node-media-server/actions/workflows/eslint.yml/badge.svg)](https://github.com/gkozlenko/node-media-server/actions/workflows/eslint.yml)\n[![GitHub License](https://img.shields.io/github/license/gkozlenko/node-video-lib.svg)](https://github.com/gkozlenko/node-video-lib/blob/master/LICENSE)\n\nNode.js Media Server / VOD / HLS / DRM\n\n## Installation\n\n```bash\ngit clone https://github.com/gkozlenko/node-media-server.git\ncd node-media-server\nnpm install\n```\n\n## Configuration\n\nConfig is located in the `config/index.js` file.\n\n```javascript\nconst config = {\n    // Host and port for bidding\n    host: '0.0.0.0',\n    port: 3000,\n\n    // Path to static files\n    publicPath: path.resolve('./public'),\n    // Path to video files\n    mediaPath: path.resolve('./media'),\n    // Path to index files\n    indexPath: path.resolve('./index'),\n    // Path to log files\n    logsPath: path.resolve('./logs'),\n\n    // Video chunk duration\n    fragmentDuration: 10,\n\n    // DRM configuration\n    drmEnabled: false,\n    drmSeed: 'DRM SEED',\n\n    // Logger configuration\n    logLevel: intel.DEBUG,\n    logSize: '50m',\n    logKeep: 10,\n\n    shutdownInterval: 1000,\n\n    workers: {\n        // Server Worker\n        web: {\n            enabled: true,\n            count: require('os').cpus().length,\n            shutdownTimeout: 5000,\n        },\n        // Movie indexer Worker\n        indexer: {\n            enabled: true,\n            count: 1,\n            timeout: 5000,\n        },\n    },\n};\n```\n\n## Running\n\n```bash\nnpm start\n```\n\n## Usage\n\nUse such URL to play a video file using HLS protocol:\n\n```text\nhttp://host:port/vod/FILE_NAME/playlist.m3u8\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgkozlenko%2Fnode-media-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgkozlenko%2Fnode-media-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgkozlenko%2Fnode-media-server/lists"}