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.<br><br>My app is being written in Python. So there's no PHP. But how do you dissasemble the multi-part in PHP?<br>
<br>--<br>Noe<br><br><div class="gmail_quote">2011/4/6 Donny Viszneki <span dir="ltr"><<a href="mailto:donny.viszneki@gmail.com">donny.viszneki@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
if there is no HTTP server sink for GStreamer, then there are other<br>
options. Are you running Apache? Do you have PHP? It would be pretty<br>
trivial to write a PHP script that connects to your gst-launch process<br>
on port 3000 and begins streaming data from it to the HTTP client<br>
connected to Apache (firefox)<br>
<div><div></div><div class="h5"><br>
On Wed, Apr 6, 2011 at 1:39 AM, Noe Nieto<br>
[<a href="http://percepcionunitaria.org" target="_blank">http://percepcionunitaria.org</a>]] <<a href="mailto:tzicatl@gmail.com">tzicatl@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm working on some sort of surveillance project for my thesis. As a first<br>
> step I want to simulate an IP camera with GStreamer that outputs MJPEG. I'm<br>
> trying to do this:<br>
><br>
> gst-launch-0.10 videotestsrc ! ffmpegcolorspace ! jpegenc ! multipartmux !<br>
> tcpserversink port=3000<br>
><br>
> And then load this little HTML snippet into firefox:<br>
><br>
> <html><br>
> <head><br>
> <title>Gstreamer testing</title><br>
> </head><br>
> <body><br>
> <h1>Testing a dummy camera with GStreamer</h1><br>
> <img src="<a href="http://localhost:3000" target="_blank">http://localhost:3000</a>" class="" alt="" /><br>
> <hr /><br>
> </body><br>
> </html><br>
><br>
><br>
> That won't do it, since it's only doing output to a TCP port, but it does<br>
> not do it with proper HTTP headers and I believe that's why firefox won't<br>
> understand this stream. Is there a plugin that can do that (encapsulate<br>
> data, like MJPEG) into a proper HTTP stream?<br>
><br>
><br>
> --<br>
> --<br>
> Noe Nieto<br>
> Estudiante de Psicología Holokinética<br>
><br>
> Diplomados, noticias, libros, artículos,<br>
><br>
> audios y videos gratuitos : <a href="http://percepcionunitaria.org" target="_blank">percepcionunitaria.org</a><br>
><br>
><br>
><br>
> --<br>
> --<br>
> Noe Nieto<br>
> Estudiante de Psicología Holokinética<br>
><br>
> Diplomados, noticias, libros, artículos,<br>
><br>
> audios y videos gratuitos : <a href="http://percepcionunitaria.org" target="_blank">percepcionunitaria.org</a><br>
><br>
</div></div><div class="im">> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
><br>
<br>
<br>
<br>
</div><font color="#888888">--<br>
<a href="http://codebad.com/" target="_blank">http://codebad.com/</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-- <br>
<div><b><font size="4">Noe Nieto<br>Estudiante de Psicología Holokinética</font></b></div>
<p><font size="4">Diplomados, noticias, libros, artículos, </font></p>
<font size="4">audios y videos gratuitos : </font><b><font color="#3333ff"><a href="http://percepcionunitaria.org/" target="_blank"><font size="4">percepcionunitaria.org</font></a></font></b><br>