[gst-devel] streaming video - network camera help!

Rohan rohan at perzonae.com
Mon Nov 23 11:23:33 CET 2009


Shear, Greg wrote:
> Greetings!
> 
> I have a network camera (this one: 
> http://www.axis.com/products/cam_2120/ ) plugged into my home LAN. I can 
> check out its IP with my web browser and see the video. Cool.
> 
> I'd like to write a little app to receive that video stream and do some 
> processing/remapping of the pixels. I've had a couple people recommend 
> gstreamer to get access to the video stream. I'm looking some 
> suggestions about where to start; some simple demo code would be great.

Hi Greg.  I am wrestling with this at the moment.  For many things I
have found the gstreamer library fabulous.  Personally I use the
python bindings, and use gst-launch for all my pipeline testing.

It sounds like what you want to do is not something supplied by one of
the many plugins, in which case you are going to want to use
appsink/appsrc which is what I am using at the moment.

I have a synchronous pipeline working, that basically writes to an
array and reads off it (easily tweaked to do the fiddling you want).
It does not solve my problem, as I need to have all this work
asynchronously, and when I have a solution for that I will post that
to this thread.

> I'm developing on a Mac, but in the long run I'd like this to be cross 
> platform. Am I on the right track?

I have set up gstreamer to work with python on windows with very
little problem for testing, but have not (yet) sorted out the mac
side, but don't expect too many problems.  I develop on linux myself,
and for that gstreamer is very easy, so any testing you need to do
when getting things to be cross platform will be a piece of cake.

As for getting the stream of the camera, gstreamer has plugins for
pulling with just about any protocol you can think of, and sinking it
into just about any other format you can think of.

Good luck, and my biggest tip is that gst-launch is your friend, and
googling with gst-launch as the first term will give you lots of good
pipelines.

Best of luck, now to post my question. ;)

Rohan




More information about the gstreamer-devel mailing list