Receiving RTSP stream using FFMPEG library

For rtsp streams the following is working for me (after receiving frames i save the result to a ppm file): #include <stdio.h> #include <stdlib.h> #include <iostream> #include <fstream> #include <sstream> extern “C” { #include <avcodec.h> #include <avformat.h> #include <avio.h> #include <swscale.h> } void log_callback(void *ptr, int level, const char *fmt, va_list vargs) { static char … Read more

Write opencv frames into gstreamer rtsp server pipeline

I found the solution, lots of stuff was missing. I used the need-data signal like the examples of gst-rtsp-server. I changed some default parameters of appsrc, like the is-live, block and format. The caps on the appsrc element. I was not setting the offset of the buffer correctly. Here’s the code for anyone who’s facing … Read more

Video streaming using RTSP: Android

For rtsp streaming you can also try following servers: Darwin Streaming Server – linux package is available Windows Media Services – can be installed on Windows Server Trial VLC – standalone application For testing purposes of your application i would also recommend you to use existing mobile video services like: m.youtube.tv m.wp.tv You can extract … Read more

Storing RTSP stream as video file with OpenCV VideoWriter

Here’s a RTSP stream to video widget. I would recommend creating another thread for obtaining the frames as cv2.VideoCapture.read() is blocking. This can be expensive and cause latency as the main thread has to wait until it has obtained a frame. By putting this operation into a separate thread that just focuses on grabbing frames … 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 process raw UDP packets so that they can be decoded by a decoder filter in a directshow source filter

Peace of cake! 1. Get the data As I can see, you already know how to do that (start RTSP session, SETUP a RTP/AVP/UDP;unicast; transport, and get user datagrams)… but if you are in doubt, ask. No matter the transport (UDP or TCP) the data format is mainly the same: RTP data: [RTP Header – … Read more

Streaming via RTSP or RTP in HTML5

Technically ‘Yes’ (but not really…) HTML 5’s <video> tag is protocol agnostic—it does not care. You place the protocol in the src attribute as part of the URL. E.g.: <video src=”rtp://myserver.com/path/to/stream”> Your browser does not support the VIDEO tag and/or RTP streams. </video> or maybe <video src=”http://myserver.com:1935/path/to/stream/myPlaylist.m3u8″> Your browser does not support the VIDEO tag … 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