video-streaming
HTML5 live streaming
A possible alternative for that: Use an encoder (e.g. VLC or FFmpeg) into packetize your input stream to OGG format. For example, in this case I used VLC to packetize screen capture device with this code: C:\Program Files\VideoLAN\VLC\vlc.exe -I dummy screen:// :screen-fps=16.000000 :screen-caching=100 :sout=#transcode{vcodec=theo,vb=800,scale=1,width=600,height=480,acodec=mp3}:http{mux=ogg,dst=127.0.0.1:8080/desktop.ogg} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep Embed this code into a <video> tag … Read more
Video streaming over websockets using JavaScript
Is WebSockets over TCP a fast enough protocol to stream a video of, say, 30fps? Yes.. it is, take a look at this project. Websockets can easily handle HD videostreaming.. However, you should go for Adaptive Streaming. I explain here how you could implement it. Currently we’re working on a webbased instant messaging application with … Read more
How to record webcam and audio using webRTC and a server-based Peer connection
You should definitely have a look at Kurento. It provides a WebRTC server infrastructure that allows you to record from a WebRTC feed and much more. You can also find some examples for the application you are planning here. It is really easy to add recording capabilities to that demo, and store the media file … Read more
TCP vs UDP on video stream
Drawbacks of using TCP for live video: As you mentioned, TCP buffers the unacknowledged segments for every client. In some cases this is undesirable, such as TCP streaming for very popular live events: your list of simultaneous clients (and buffering requirements) are large in this case. Pre-recorded video-casts typically don’t have as much of a … Read more
Live-stream video from one android phone to another over WiFi
If you do not need the recording and playback functionality in your app, using off-the-shelf streaming app and player is a reasonable choice. If you do need them to be in your app, however, you will have to look into MediaRecorder API (for the server/camera app) and MediaPlayer (for client/player app). Quick sample code for … Read more
Play infinitely looping video on-load in HTML5
The loop attribute should do it: <video width=”320″ height=”240″ autoplay loop muted> <source src=”movie.mp4″ type=”video/mp4″ /> <source src=”movie.ogg” type=”video/ogg” /> Your browser does not support the video tag. </video> The addition of the unintuitive muted attribute is required by Chrome as documented on their dev site. Should you have a problem with the loop attribute … Read more
How can I display an RTSP video stream in a web page?
VLC also comes with an ActiveX plugin that can display the feed in a web page: http://wiki.videolan.org/ActiveX/HTML <OBJECT classid=”clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921″ codebase=”http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab” width=”640″ height=”480″ id=”vlc” events=”True”> <param name=”Src” value=”rtsp://cameraipaddress” /> <param name=”ShowDisplay” value=”True” /> <param name=”AutoLoop” value=”False” /> <param name=”AutoPlay” value=”True” /> <embed id=”vlcEmb” type=”application/x-google-vlc-plugin” version=”VideoLAN.VLCPlugin.2″ autoplay=”yes” loop=”no” width=”640″ height=”480″ target=”rtsp://cameraipaddress” ></embed> </OBJECT>
Streaming video from Android camera to server [closed]
I have hosted an open-source project to enable Android phone to IP camera: http://code.google.com/p/ipcamera-for-android Raw video data is fetched from LocalSocket, and the MDAT MOOV of MP4 was checked first before streaming. The live video is packed in FLV format, and can be played via Flash video player with a build in web server 🙂