Simulating a IP camera (MJPEG)

Noe Nieto [http://percepcionunitaria.org]] tzicatl at gmail.com
Wed Apr 6 08:52:41 PDT 2011


Firefox handles MJPEG streams natively. As far as I've seen, the MJPEG
stream should be "canned" into a HTTP multi-part stream. That's exactly what
my pipeline below is lacking.

My app is being written in Python. So there's no PHP. But how do you
dissasemble the multi-part in PHP?

--
Noe

2011/4/6 Donny Viszneki <donny.viszneki at gmail.com>

> if there is no HTTP server sink for GStreamer, then there are other
> options. Are you running Apache? Do you have PHP? It would be pretty
> trivial to write a PHP script that connects to your gst-launch process
> on port 3000 and begins streaming data from it to the HTTP client
> connected to Apache (firefox)
>
> On Wed, Apr 6, 2011 at 1:39 AM, Noe Nieto
> [http://percepcionunitaria.org]] <tzicatl at gmail.com> wrote:
> > Hi,
> >
> > I'm working on some sort of surveillance project for my thesis. As a
> first
> > step I want to simulate an IP camera with GStreamer that outputs MJPEG.
> I'm
> > trying to do this:
> >
> > gst-launch-0.10 videotestsrc ! ffmpegcolorspace ! jpegenc ! multipartmux
> !
> > tcpserversink port=3000
> >
> > And then load this little HTML snippet into firefox:
> >
> > <html>
> >   <head>
> >     <title>Gstreamer testing</title>
> >   </head>
> > <body>
> >  <h1>Testing a dummy camera with GStreamer</h1>
> >  <img src="http://localhost:3000" class="" alt="" />
> >  <hr />
> > </body>
> > </html>
> >
> >
> > That won't do it, since it's only doing output to a TCP port, but it does
> > not do it with proper HTTP headers and I believe that's why firefox won't
> > understand this stream. Is there a plugin that can do that (encapsulate
> > data, like MJPEG) into a proper HTTP stream?
> >
> >
> > --
> > --
> > Noe Nieto
> > Estudiante de Psicología Holokinética
> >
> > Diplomados, noticias, libros, artículos,
> >
> > audios y videos gratuitos :   percepcionunitaria.org
> >
> >
> >
> > --
> > --
> > Noe Nieto
> > Estudiante de Psicología Holokinética
> >
> > Diplomados, noticias, libros, artículos,
> >
> > audios y videos gratuitos :   percepcionunitaria.org
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
>
>
>
> --
> http://codebad.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



-- 
-- 
*Noe Nieto
Estudiante de Psicología Holokinética*

Diplomados, noticias, libros, artículos,
audios y videos gratuitos :   *percepcionunitaria.org*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110406/554002d8/attachment.htm>


More information about the gstreamer-devel mailing list