Streaming Picamera from Raspberry to Public Server Webpage - html

Currently, my Picamera attached to raspberry working with circular buffer and send livestream to my public server at the same time.
The circular buffer will keep recording and if certain event is triggered, the raspberry will send the specified length from circular buffer to the public server.
But, I also want the live stream capabilities at the same time.
So far, I have succeed to send the live stream data to my public server using socket, and then the server side python script direct the stream to vlc.exe (my public server is windows server), then play it using vlc player.
But, I want it to play in my webpage.
My problem here is, I don't know how to re-direct again the stdin data (from client using socket) vlc.exe to html webpage, which will be accessed by anyone who want to see the video live stream.
I have search several methods like :
mpeg stream, but I'm using a stream of h264 here not multiple jpeg images.
mplayer, which I also stuck at redirecting the stdin to html page.
vlc command from raspberry (cvlc) which I found did not had the same command option with vlc.exe for windows. For example, I did not find --sout option in vlc-help.txt.
Most tutorials only cover LAN network, while I have to stream it remotely.
CMIIW.
So, is there someone who knows how to direct the h264 stream from python socket to html webpage in windows server ?

Related

How can I stream video captured from my webcam to wowza media server?

I have captured the stream object returned by HTML5 camera object to wowza server which can be further streamed to other devices. How can I do that.
If you have a software encoder that is capturing your webcam/mic and encoding it into one of these streaming protocols (RTMP, RTSP, MPEG-TS), then you should be able to just publish your stream to your Wowza server.
Make sure that your Wowza services are running.
If it's a default installation, it should already be installed with an application called "live".
If you are sending your live stream through RTMP, then you only need to publish it to your Wowza server by sending it to the following URL: rtmp://<wowzaServerIP>:1935/live/<streamName> where <wowzaServerIP> refers to your Wowza server's IP address, and <streamName> is any string.
If you are sending your live stream through RTSP, just change the protocol accordingly.
To playback the stream, you can use VLC or any web player (such as JWPlayer, TheOPlayer, or Flowplayer), and playback the stream using the same URL. Do note that some players do not support all protocols/formats. VLC is your best bet for playing back streams in a test environment.

Video Streaming over HTTP in Windows Phone 8

I am trying to work on getting Video Streaming over HTTP in a windows phone 8 application.
These are the issues that i am facing,
Unable to stream video using the MediaElement.
unable to Stream video using the player framework by microsoft.
Things to be noted here, i am not using the IIS oriented servers.
The above will well when i hard code the server details from my local machine or isolated storage. But this does not work through HTTP.
Does anyone have any idea on this ?
If this is not possible, is there a way where i can have HTML5 streaming the video and have that included in my application ?

recording issues using AS3 and Red5

I am facing some issue in recording the users webcamera using an AS3 script and Red5 as streaming server. I tried to use the buffer to check if the client finished sending the packets to the server. but it doesn't work properly. I have two cases: if I don't use the buffer timer, I can see the Recordedfile.flv.ser keep growing but it takes a long time to generate the final .flv file. and in case using bufferLenght to check the buffer, once I stop recording it generate immediately the .flv file but only with some segments which mean that in the client side seems that BufferLenght its always 0. I tried so many examples and options whether on the client side or at the server side, but I still have the same problem: Broken FLV files.
PS: I am using Red5 1.0 installed in centOS.
Red5 1.0 final, 1.0.1 and 1.0.2 have a bug in their delayed write mechanism that leads to broken .flv files with stuck video and only sound. the .flv files contain only sound and 1 or 2 frames of video.
We have hit this issue many times and we've made a patch for Red5 1.0.2 that fixes it. This patch has also been committed to the Red5 source code on GitHub by the Red5 team. The next version of red5 will include it. Until then you can download a patched Red5 1.0.2 from here.

Compiler errors in Flash Pro

I am using Flash Professional authoring tool with ActionScript 3 code. Basically, I'm trying to capture a live webcam feed using NetConnection, NetStream Camera and Video classes via Flash Media Development Server. When I run the code I receive this in my output:
ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/ctor() at flash.net::NetStream()
I don't really understand what could be causing this error my code is perfectly fine..Its very frustrating. When I debug I get this:
SecurityError: Error #2028: Local-with-filesystem SWF file file:///C|/Users/Name/AppData/Local/Temp/Untitled%2D1.swf cannot access Internet URL rtmfp://localhost/flashExam.
[SWF] C:\Users\Name\AppData\Local\Temp\Untitled-1.swf - 3853 bytes after decompression
It appears the swf file cannot gain access FMS. Why is this? And, does anyone know what I can do to resolve these issues?
Are you running the SWF locally, e.g., opening in the browser or from a local HTML opened in the browser? Flash doesn't let you normally connect to servers and services outside of the domain. Try running a local server (e.g. XAMPP/Apache) or hosting it somewhere and trying again.
You could also try changing your flash settings to allow your swf location to be trusted. Generally the flash player doesn't allow a swf running from the file system to access resources on the internet. Try heading over to the settings panel and add the folder you are running your swf from.

How to stream rtsp output by crtmp server by inputing rtmp stream from fmle using webcam?

Can anybody suggest me on crtmpserver.lua configuration?
I setup crtmp server on AWS EC2 Ubuntu 12.04. after building deb package successfully.
I have successfully stream my Webcam stream using FMLE on my windows 7 machine, connected to my crtmp server,then played on website using JW Player.
Now i want to get RTSP stream from the same crtmp server using same RTMP input to play on mobile.I read crtmp server can stream both in RTMP and RTSP. Please guide me on confiuration of crtmpserver.lua to achieve this.
Also please let me know if i can use multibit encoding high bit rate for web and low for mobile streaming same webcam stream?
Thanks in advance.