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

HTTP LIve Streaming

HTTP Live Streaming HTTP Live Streaming is a streaming standard proposed by Apple. See the latest draft standard. Files involved are .m4a for audio (if you want a stream of audio only). .ts for video. This is a MPEG-2 transport, usually with a h.264/AAC payload. It contains 10 seconds of video and it is created … Read more

Playing video on TextureView

Here is how you can do it: (solution by the question author, that he posted as an update in the question) Public class MediaPlayerDemo_Video extends Activity implements TextureView.SurfaceTextureListener { private MediaPlayer mMediaPlayer; private TextureView mPreview; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); mPreview = new TextureView(this); mPreview.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); mPreview.setSurfaceTextureListener(this); extras = getIntent().getExtras(); setContentView(mPreview); } … Read more

OpenCV real time streaming video capture is slow. How to drop frames or get synced with real time?

My hypothesis is that the jitter is most likely due to network limitations and occurs when a frame packet is dropped. When a frame is dropped, this causes the program to display the last “good” frame which results in the display freezing. This is probably a hardware or bandwidth issue but we can alleviate some … 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>

How to capture multiple camera streams with OpenCV?

To capture multiple streams with OpenCV, I recommend using threading which can improve performance by alleviating the heavy I/O operations to a separate thread. Since accessing the webcam/IP/RTSP stream using cv2.VideoCapture().read() is a blocking operation, our main program is stuck until the frame is read from the camera device. If you have multiple streams, this … Read more

Video Streaming from IP Camera in Python Using OpenCV cv2.VideoCapture

You’re most likely getting that error due to an invalid stream link. Insert your stream link into VLC player to confirm it is working. Here’s a IP camera video streaming widget using OpenCV and cv2.VideoCapture.read(). This implementation uses threading for obtaining frames in a different thread since read() is a blocking operation. By putting this … Read more