{"id":15046043,"url":"https://github.com/quasarstream/php-ffmpeg-video-streaming","last_synced_at":"2025-05-15T08:11:18.428Z","repository":{"id":27352440,"uuid":"113315540","full_name":"quasarstream/PHP-FFmpeg-video-streaming","owner":"quasarstream","description":"📼 Package media content for online streaming(DASH and HLS) using FFmpeg","archived":false,"fork":false,"pushed_at":"2024-08-13T20:33:05.000Z","size":4992,"stargazers_count":531,"open_issues_count":10,"forks_count":120,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-05-15T04:33:31.745Z","etag":null,"topics":["aws-s3","cloud","dash","dash-video","drm","ffmpeg","google-cloud","google-cloud-storage","hls","hls-live-streaming","hls-packaging","hls-video","microsoft-azure","mpeg-dash","php-ffmpeg","php-packages","video","video-stream","video-streaming"],"latest_commit_sha":null,"homepage":"https://www.quasarstream.com/op/php/ffmpeg-streaming?u=php-ff","language":"PHP","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/quasarstream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["quasarstream"],"patreon":"HadronEpoch","open_collective":"hadronepoch"}},"created_at":"2017-12-06T12:48:51.000Z","updated_at":"2025-04-27T13:12:03.000Z","dependencies_parsed_at":"2023-11-23T06:38:21.124Z","dependency_job_id":"3aaac695-464f-4a19-ba82-15a1ee889910","html_url":"https://github.com/quasarstream/PHP-FFmpeg-video-streaming","commit_stats":{"total_commits":284,"total_committers":11,"mean_commits":"25.818181818181817","dds":0.25,"last_synced_commit":"3638711753df1586505c13c5554f480c7444e130"},"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasarstream%2FPHP-FFmpeg-video-streaming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasarstream%2FPHP-FFmpeg-video-streaming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasarstream%2FPHP-FFmpeg-video-streaming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasarstream%2FPHP-FFmpeg-video-streaming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quasarstream","download_url":"https://codeload.github.com/quasarstream/PHP-FFmpeg-video-streaming/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254301431,"owners_count":22047904,"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":["aws-s3","cloud","dash","dash-video","drm","ffmpeg","google-cloud","google-cloud-storage","hls","hls-live-streaming","hls-packaging","hls-video","microsoft-azure","mpeg-dash","php-ffmpeg","php-packages","video","video-stream","video-streaming"],"created_at":"2024-09-24T20:52:37.825Z","updated_at":"2025-05-15T08:11:18.407Z","avatar_url":"https://github.com/quasarstream.png","language":"PHP","readme":"# 📼 PHP FFmpeg - Video Streaming\n[![Total Downloads](https://img.shields.io/packagist/dt/aminyazdanpanah/php-ffmpeg-video-streaming.svg?style=flat)](https://packagist.org/packages/aminyazdanpanah/php-ffmpeg-video-streaming)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/quasarstream/quasarstream.github.io/blob/master/video-streaming/video-streaming-v2.gif?raw=true\" width=\"100%\"\u003e\u003c/p\u003e\n\nThis package utilizes **[FFmpeg](https://ffmpeg.org)**  to bundle media content for online streaming, including DASH and\nHLS. Additionally, it provides the capability to implement **[DRM](https://en.wikipedia.org/wiki/Digital_rights_management)** for HLS packaging. The program offers a range of\noptions to open files from cloud storage and save files to cloud storage as well.\n\n## Documentation\n\n**[Full Documentation](https://www.quasarstream.com/op/php/ffmpeg-streaming/)** is available describing all features\nand components.\n\n## Basic Usage\n\n```php\nuse Streaming\\Representation;\n\n$r_360p  = (new Representation)-\u003esetKiloBitrate(276)-\u003esetResize(640, 360);\n$r_480p  = (new Representation)-\u003esetKiloBitrate(750)-\u003esetResize(854, 480);\n$r_720p  = (new Representation)-\u003esetKiloBitrate(2048)-\u003esetResize(1280, 720);\n\n$video-\u003ehls()\n    -\u003ex264()\n    -\u003eaddRepresentations([$r_360p, $r_480p, $r_720p])\n    -\u003esave();\n```\n\n## Get from Basic and Pro packages for Video Streaming\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/quasarstream/quasarstream.github.io/blob/master/video-streaming/video-streaming-screen-hots.gif?raw=true\" width=\"100%\"\u003e\u003c/p\u003e\n\nOur platform empowers businesses to expand their reach globally by delivering exceptional video streaming experiences. Enjoy unmatched reliability, scalability, and high-definition quality across a diverse range of devices, ensuring your content captivates audiences worldwide.\n\n\n### Plans\n\n\u003cdiv style=\"align-content: center\"\u003e\n\u003ctable style=\"margin: auto\"\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth\u003eFeatures / Plans\u003c/th\u003e\n            \u003cth\u003eBasic\u003c/th\u003e\n            \u003cth\u003ePro\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eAuthentication\u003c/strong\u003e\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eAccess-control list\u003c/strong\u003e (ACL)\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eVideo On-Demand\u003c/strong\u003e (HLS and DASH)\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eHLS Encryption\u003c/strong\u003e(Single key and key rotation)\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eVideo Quality Settings\u003c/strong\u003e: Manually Choose from 144p to 4k or auto mode\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eReal-Time Progress Monitoring\u003c/strong\u003e: progress bar to display the live upload and transcoding progress\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eDark and light theme\u003c/strong\u003e\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eLive Streaming\u003c/strong\u003e: From Browser Webcam, IP Cameras, Live Streaming Software\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e⛔️\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eBespoke player design\u003c/strong\u003e: Crafted to perfectly align with your brand identity and user preferences.\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e⛔️\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eAdd Subtitles and Audios\u003c/strong\u003e: add different subtitle and audio files to stream\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e⛔️\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eMonetization\u003c/strong\u003e: Subscriptons/pay-per-view/ads\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e⛔️\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eAdvanced Analytics\u003c/strong\u003e: Views/Watched hours/Visited countries and more\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e⛔️\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eRobust DRM Systems\u003c/strong\u003e: Widevine, FairPlay Streaming and PlayReady\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e⛔️\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eSocial Media Integration\u003c/strong\u003e: Like, Comment, Share and embed videos\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e⛔️\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eCloud-based CDN\u003c/strong\u003e: Accelerates content delivery worldwide through integration with major cloud storage providers such as Amazon S3, Google Cloud Storage, and Microsoft Azure.\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e⛔️\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eTailored features\u003c/strong\u003e: We can integrate any specific functionality you require into your platform.\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e⛔️\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eSupport\u003c/strong\u003e\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e3 Months\u003c/td\u003e\n            \u003ctd align=\"center\"\u003eCustomizable\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eOnline Demo\u003c/strong\u003e\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e \u003cstrong\u003e\u003ca target=\"_blank\" href=\"https://quasarstream.com/vs-demo?s=php\u0026u=php-ffmpeg\"\u003e See Online Demo\u003c/a\u003e\u003c/strong\u003e \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e \u003cstrong\u003e\u003ca target=\"_blank\" href=\"https://quasarstream.com/book-demo?u=php-ffmpeg\"\u003e Book Free Demo\u003c/a\u003e\u003c/strong\u003e \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cstrong\u003eGet\u003c/strong\u003e\u003c/td\u003e\n            \u003ctd align=\"center\"\u003e \u003cstrong\u003e\u003ca target=\"_blank\" href=\"https://quasarstream.com/video-streaming-basic?s=php\u0026u=php-ffmpeg\"\u003e GET \u003c/a\u003e\u003c/strong\u003e \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e \u003cstrong\u003e\u003ca target=\"_blank\" href=\"https://quasarstream.com/contact?u=php-ffmpeg\"\u003e CONTACT US\u003c/a\u003e\u003c/strong\u003e \u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n    \u003ctfoot\u003e\n        \u003ctr\u003e\n            \u003cth align=\"left\" colspan=\"4\"\u003e\n                We tailor OTT platforms to exact client specifications, offering flexible and affordable pricing.\n            \u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/tfoot\u003e\n\u003c/table\u003e\n\u003c/div\u003e\n\n## Contributors\n\nYour contribution is crucial to our success, regardless of its size. We appreciate your support and encourage you to\nread our **[CONTRIBUTING](https://github.com/quasarstream/php-ffmpeg-video-streaming/blob/master/CONTRIBUTING.md)**\nguide for detailed instructions on how to get involved. Together, we can make a significant impact.\n\n\u003ca href=\"https://github.com/quasarstream/php-ffmpeg-video-streaming/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=quasarstream/php-ffmpeg-video-streaming\" /\u003e\n\u003c/a\u003e\n\nMade with [contrib.rocks](https://contrib.rocks).\n\n## License\n\nThe MIT License (MIT). See **[License File](https://github.com/quasarstream/php-ffmpeg-video-streaming/blob/master/LICENSE)** for more\ninformation.\n\n","funding_links":["https://github.com/sponsors/quasarstream","https://patreon.com/HadronEpoch","https://opencollective.com/hadronepoch"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasarstream%2Fphp-ffmpeg-video-streaming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquasarstream%2Fphp-ffmpeg-video-streaming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasarstream%2Fphp-ffmpeg-video-streaming/lists"}