Simulating a IP camera (MJPEG)

Noe Nieto [http://percepcionunitaria.org]] tzicatl at gmail.com
Wed Apr 6 12:03:28 PDT 2011


2011/4/6 Noe Nieto [http://percepcionunitaria.org]] <tzicatl at gmail.com>

> 2011/4/6 Michael Smith <msmith at xiph.org>
>
>> On Wed, Apr 6, 2011 at 8:59 AM, Noe Nieto
>> [http://percepcionunitaria.org]] <tzicatl at gmail.com> wrote:
>> > I don't see any gstreamer plugin to encode stuff in multipart streams.
>> >
>> > It seems like we don't have another option but to implement the
>> > HTTP-Multipart encoding/canning or write a gstreamer plugin for that.
>>
>
Ahh, now I see. That's why Rygel is for :)




>
>> Hrm? That's what multipartmux does. You used it in your example here.
>>
>> What GStreamer doesn't include is an HTTP server.
>>
>
> That narrows down the problem :)
>
> Maybe the solution would be tu "subclass" the tcpserversink and "decorate"
> the frames with tcp headers.
>
> Does that sound feasible in GStreamer?
> --
> Noe
>
>
>> Mike
>>
>> >
>> > ---
>> > Noe
>> >
>> >
>> > 2011/4/6 Matias Hernandez Arellano <msdark at archlinux.cl>
>> >>
>> >> I'm trying to do something like that ..
>> >> i have a pipeline like this
>> >>
>> >>  appsrc  ! queue ! videoparse format=14 width=%d height=%d ! videorate
>> "
>> >>                                " ! videoscale !
>> >> video/x-raw-rgb,width=320,height=240 "
>> >>                                " ! queue ! ffmpegcolorspace ! queue !
>> >> jpegenc  ! multipartmux ! queue  "
>> >>                                " ! tcpserversink port=5000 sync=false
>> >>
>> >> but i can't find anything to use this stream in some browser ... ...
>> >> I'm trying to do with rtp and udpsink, this seems to work in the
>> "server"
>> >> but in the client side i can't see anything...
>> >>
>> >> so.. it's possible to use tcpserversink to stream and see in a browser?
>> >>
>> >> El 06-04-2011, a las 1:39, Noe Nieto [http://percepcionunitaria.org]]
>> >> escribió:
>> >>
>> >> > 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
>> >>
>> >> Matías Hernandez Arellano
>> >> Ingeniero de Software/Proyectos en VisionLabs S.A
>> >> CDA Archlinux-CL
>> >> www.msdark.archlinux.cl
>> >>
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> 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
>> >
>> > _______________________________________________
>> > gstreamer-devel mailing list
>> > gstreamer-devel at lists.freedesktop.org
>> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> >
>> >
>> _______________________________________________
>> 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*
>



-- 
-- 
*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/486ee697/attachment.htm>


More information about the gstreamer-devel mailing list