YES, it is possible to carry out this proposal with PHP.
In fact Youtube (both Yout and other similar platforms) runs thanks to Ffmpeg. And this is not to say that it is a server different from the others that you use to program (except for the scalability and speed, memory etc)
So if you are using Linux, study this powerful application (command lines and ways of use) very important, so much so that php has a native bilioteca that works with Ffmpeg.
In the case of PHP thinks so, let’s talk about your project (or idea): PHP will run on the server, so you will use to convert the files, organize, (read the stream etc) and make available to the user.
But to record, you can’t record with PHP or Javascript, because they’re not connected with the computer’s devices (like the camera for example). So for the user to send a video you need another question.
That’s why everyone indicated the use of Flash, which until then was the only device that connected to the camera and Microphone (don’t forget that). But now you have Html5 that can also connect to these devices. So you can already send a video of your users - with Flash or with Html5.
It will take work, but it is worth the research in this area.
I’ve done something similar, but only one user sent video to a PHP server and several user connecting live and watching. With an Adobe application called Adobe Media Live Encoder. It had a version that was free, nowadays it is paid. :/
In your case it’s bolder programming, but it’s worth it.
Links:
https://ffmpeg.org/
-- I can’t post more links because it’s my first participation in Stack ;)
You are using RTMP protocol?
– Nickolas Carlos
I am not using anything. I am looking for study material (indications, etc...).
– Lauro Moraes
https://github.com/qwantix/php-rtmp-client
– Inkeliz
Search by "webrtc", is a javascript-accessible API of browsers designed for exactly what kind of problem you have, real-time video/audio/data transmission between browsers. Behold this demo which shows channel creation with live stream webcams, the same can be done for screen sharing (although support is still restricted).
– BrunoRB
@Brunorb yes, I have been using Webrtc for some time in tests and has shown to be the best option within my needs
– Lauro Moraes