Live video stream from android mobile to desktop web browser - php

I have to develop an application that will record video and audio on desktop browser and android smartphone and share it between them. Just like the skype video call.
The application will consist of three subapplications on these three platforms:
smartphone (android java)
web server (apache + php)
destkop web browser (html5 + javascript + css)
Could you recommend me any libraries that could help me on these platforms
(smartphone, web server, web browser)?
Will I be able to maintain all the work on web server just by
php (user logging, video streaming, ...)?
Will I be able to maintain video record and playback in web browser
just by html5 + js or do I need to use flash/silverlight?
What things will web server need to do? Just store the video stream
somewhere in memory and then send it (forward) to web browser? Could you describe how should this work in more deeply?
What should I start with? Thank you

For this, you will have to use RTSP(Real Time Streaming Protocol),try learning this and for details you can check this link

Related

Video streaming/recording solution ( Wowza Streaming Engine + Flash Media Live Encoder)

I am working on a php based web application where I need the end user to be able to record video response through the application using his webcam and then that video gets stored to my server. I have been looking into Wowza streaming Engine for sometime now and have been able to figure out that I need a streaming engine and an encoder to successfully stream a video . Using Adobe Flash media live encoder (thanks to my mate jolumg) I was able to stream live video on my locally installed Wowza streaming engine, which is cool if I want to broadcast live video, however I cannot expect my enduser to install the encoder on his device. If I am not mistaken, the end user will have access to some kind of recorder through my application. So I need to know few things:
How do I create such recorder which can capture the video using user's webcam?
Which programming language do I need to create the recorder?
Assuming the Adobe Flash media live encoder(FMLE) is installed on my server, what configuration changes do I need to make so that the recorder can send the video to FMLE which is connected to my Wowza streaming engine and can thus publish the stream.
After the incoming stream is published, how do I programmatically record it(rather than using the record button on the wowza engine manager)? Do I create an api? if yes in what language?
Finally in terms of storage, would a standard AWS instance would do or do I need something with larger space?
Any ideas?
Pardon me if I am lacking in my understanding of the entire video streaming/recording platform. I am a reletively young programmer and this is totally new for me. Thanks is advance.
I think that what you are looking for is not exactly called recorder. If what you want is live streaming you will need an encoder module. Same function than FMLE.
If you can not ask user to install FMLE you need same function embeded in the webpage.
and 2.- Usually this has been done with a flash plugin. There are samples in internet of that module. But this will not work in mobiles and with Flash being phased out soon it will not work in desktop browsers either.
If you target is mobile, check Wowza GoCoder, you have an SDK to create native applications and you also have a simple application that is ready to use (but user need to install it)
Since recently we have WebRTC technologies to use the webcam in the browser. (Wihtout depending of external plugins, or applications) Wowza already support an webRTC input. This seems to be the way for the future, but this is quite new and only will work in the latest browsers but it should work in desktop and in mobiles.
WebRTC samples:
https://webrtc.github.io/samples/
3- You do not need the FMLE in this scenario. End users is doing the encoding.
4- In Wowza configure you can set that all the streams in an application being recorded automatically. You can also have an http API to start/stop the recording at any moment, if you want fine control.
5- It will depend of your usage. This is is sometging you need evaluate,
Jolumag explained well.
FMLE, Wirecast, OBS are desktop based encoder. If you are looking for recording option from browser then its Flash component that support RTMP protocol.
You can set this rtmp://wowzaip:1935/wowzapp/streamname in your flash publisher component.
Flash is now being called "dead" so you can go for WebRTC if you want this recording support in mobile as well.
Chrome stopped support for Flash as primary technology for webcam access... your users will have to enable flash plugin in chrome.

Make images on server avaialble to clients via http

I'm trying to build a social networking website and mobile app .. I've read that in order to stream videos, you have two options: either HTTP and web services to download file(which is slow and can't serve more than a dozen clients at the same time) or to use a streaming server that makes videos available through HTTP. is that right?
And more importantly, does the same apply to images? how to make images on server available through http? for android mobile app, I'm using picasso framework where it needs the URL of the image.

Surveillance through Arduino and Web

I wanted to ask if it is possible to send the video feed from a camera to an Arduino board, and through the ethernet sheild send it to an Apache web server, and then displaying it on the browser in some form. I am not trying to transmit the audio and video together, just the video. Audio is not my concern at all..
I have seen people sending JPEG images across the web but never a video. I am new to both the web and arduino, so i don't even know if it is simple enough to send live streams through a web server even without using the Arduino and using a PC instead. If it is possible, i would be much obliged if a link is provided to the possible php/html functions that might be used for this task, as these are the only web languages that i use.
It is not possible since all Arduino boards have very weak processing power to handle video streaming.
Also, data cant be transfered through the serial link fast enough and there is not enough SRAM space to buffer the frames.
Personally, i recommend trying Raspberry PI + Motion for live streaming video.
If you want to stick with Arduino, the upcoming Tre board i think will be able to do such a job, but it will be way more expensive than the PI solution.
Check these links:
Raspberry PI webcam server tutorial
Raspberry Pi remote webcam

How can I stream live webcam video using Adobe flex without using Flash server or Red5?

My hosting service doesn't allow Flash server or Red5 to be used on the shared hosting account, only with a VPS account. This is something, I do not want to pay for. I have managed to create a MXML application and successfully compile it into a .SWF file that will grab the user's live cam. Now the problem I'm having is displaying that webcam to other users. So I'm assuming I need some sort of server to send that video to, so that I can connect to it, and then display the stream. Now my question is, is there a work around in which I don't need another server, such as Red5 or Flash server? Why can I not handle the live webcam myself and display the live stream using ActionScript3.0?
Go for Adobe Cirrus as Reboog711 mentioned. Its a peer-2-peer protocol.
Well to answer your questions..
is there a work around in which I don't need another server, such as
Red5 or Flash server?
Yes, you don't need any servers involved here. Just connect to the service and get a token id. Exchange that token id with your remote end user and do the vice-versa, such that both of you can able to see yourselves.
Why can I not handle the live webcam myself and display the live
stream using ActionScript3.0?
Who said you can't ;) ? You can very well control the settings including the webcam video size, aspect ratio, quality, bandwidth , etc everything using your actionscript 3.0.

Live video streaming from a Linux server running Apache

I just want to connect a couple of cameras to my apache server, embed some code in a PHP page and stream live video to the internet.
Does anyone know any simple affordable solutions that don't involve Microsoft of Flash?
For live streaming you need flash or silverlight on the client side, except the iOS devices, where it's doable with HTML5.
Based on your comment, it looks like you'll need a mixed solution. Flash for the normal devices, and HTML5+m3u8 for iOS.

Categories