Example of PHP-FFmpeh-Video-Streaming

Last updated: October 25th, 2019

Example of PHP-FFmpeh-Video-Streaming

This example contains server-side(Transcoding + cloud + progress + web socket) and client-side(progress bar + web socket + player)

Please follow these steps to run the example:
1. You must have php 7.2(or higher) and also a working FFmpeg
2. Download the following zip file and extact it wherever you want.
Download Example
3. open a terminal(or comand prompt) and go to the directory of the project and run 'composer install'. Assuming you extract the zip file in /home/video-streaming then:
cd /home/video-streaming
composer install
4. Run the following command:
php -q video-streaming.php
You can also pass a local path to create stream from a local file
php -q video-streaming.php /path/to/video/file dash
5. open the index.html in your browser

If you like this project, please ⭐️ Star it on the Github.