[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
I have a server with php. I want to record and stream video live
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 16
Thread images: 3
File: Untitled.png (8 KB, 880x712) Image search: [Google]
Untitled.png
8 KB, 880x712
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.
>>
File: temp.png (5 KB, 940x296) Image search: [Google]
temp.png
5 KB, 940x296
>>53728829
>>
>>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
>>
File: percentages.png (14 KB, 1204x520) Image search: [Google]
percentages.png
14 KB, 1204x520
>>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.
Thread replies: 16
Thread images: 3

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.