I have a server with php. I want to record and stream video live from my webcam. How to do this?
>>53728737
Have you tried duckduckgo.com?
>>53728750
tell me the best way to do it ples
>>53728737
A physical hosted server, a rented virtual server, or a rented hosting plan?
>>53728778
wamp.
local sever
>>53728802
So the production server is the PC you're hooking it up to?
>>53728809
yes. later i will move to amazon
>>53728814
My recomendation for a local server is OBS saving video siles to the PHP directory, and then using PHP to redistribute the video and delete the video files once they're saved. You'll need a SSD for this.
>>53728829
>>53728829
>OBS
ok alright.
How about from client side video streaming?
like a chat application, I want to get what ever the client's webcam is showing
i want to build a video chat room.
>>53728879
>https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/API/Camera_API/Introduction
Use javascript to get the frames.
optionally, I recommend encoding the frames (You can use ASM.js to use an existing library to encode).
Send the frames and audio to the server using Comet.
>https://en.wikipedia.org/wiki/Comet_(programming)
Ignore what I said about OBS, misunderstood.
>>53728919
ok bro . thanks. i will try that
>>53728919
Also, you can have clients send data to each other using WebRTC (otherwise Amazon would charge you several thousand dollars a day).
>http://www.html5rocks.com/en/tutorials/webrtc/basics/#toc-rtcdatachannel
Unfortunately only 58% of browsers support the stream API(webcams) according to this:
>http://caniuse.com/#feat=stream
Basically the same people can also send video peer-to-peer(WebRTC):
>http://caniuse.com/#feat=rtcpeerconnection
This is a good time to start, because newly updated android phones can now send data peer-to-peer.
ffmpeg/ffserver
there is a shitton of documentation to comb through and it can be a bitch to configure, but it works.
I recently was able to use an archaic netbook to run a 480p stream with very low latency allowing me to play with my cat with a laser pointer with an arduino some many miles away.
Not sure if you are looking for low latency, low filesize or what, but you have many configuration options for streaming with ffmpeg/ffserver
>>53729003
You can use ASM.js to convert ffmpeg to javascript too.