D-Link DCS-930L

David Hoyt dhoyt at hoytsoft.org
Wed Oct 5 15:47:24 PDT 2011


Capture the stream and examine it in a hex editor. Are the line endings \n or \r\n? I'd have to examine the source again b/c I'm unsure how lenient gstreamer is with non-standard line endings in a multipart stream.

I believe the standard says to use \n, but my memory could be faulty. (c:android6011 <android6011 at gmail.com> wrote:What is the quickest/easiest to find this for you and possibly give you a raw stream?

On Tue, Oct 4, 2011 at 10:15 PM, David Hoyt <dhoyt at hoytsoft.org> wrote:
What kind of line endings are being used in the multipart headers?

android6011 <android6011 at gmail.com> wrote:
I actually have this camera and was playing with it and gstreamer last week. I hope what I am about to mention is not way over your head and helps give you a pointer as to where to start with this camera. As for starting with gstreamer, just keep reading through the mailing list and the docs on the main site

First thing is to narrow down the source of the video. I have yet to find an accessible audio stream but have not put to much time into looking. The video I found are

http://user:pass@192.168.1.15/image/jpeg.cgi
http://user:pass@192.168.1.15/video/mjpg.cgi  

replace user,pass and the ip with yours.

the mjpg stream is what you are going to want to look at. Also the elements souphttpsrc, (most likely)multipartdemux,jpegdec and flvmux.

My problem has been that multipartdemux refuses to work because "Boundary not found in the multipart header" . I have looked at the stream and the boundary is:
 
--video boundary--

but specifying it still does not work which is where I was getting hung up. 

This pipeline does not work but just as a rough example

gst-launch souphttpsrc location=http://user:pass@192.168.1.15/video/mjpg.cgi ! multipartdemux ! jpegdec ! flvmux ! filesink location=dcs.flv

Again, this pipeline does not work but I believe it to be a step in the right direction. 



For those that may be able to help with the multipartdemux issue wget of the mjpg.cgi shows the following and this pipeline always fails with " Boundary not found in the multipart header" 

gst-launch souphttpsrc location=http://admin:@192.168.1.15/video/mjpg.cgi ! multipartdemux boundary="--video boundary--" ! jpegdec ! fakesink


wget http://user:pass@192.168.1.15/video/mjpg.cgi mjpg.cgi contents:

Content-length: 45536
Date: 10-04-2011 07:41:20 PM IO_00000000_PT_000_000
Content-type: image/jpeg

(jpeg data)

--video boundary--
Content-length: 45607
Date: 10-04-2011 07:41:20 PM IO_00000000_PT_000_000^_Ú¯^[� ,�%Û¯      5�խ
Content-type: image/jpeg

(jpeg data)

etc..

-Ryan

On Thu, Sep 29, 2011 at 1:01 PM, Rafael Guerra <rafael at lanline.com> wrote:
I have loaded gstreamer on to FreeBSD and I am looking to collect the video
from a video camera,
DCS-930L (D-Link) for example, and save it to a file that I would like to
play it back using an internet browser.
I am mostly interested in collecting and saving the file to a standard video
format (.FLV if possible)

Being new to gstreamer I am looking for some guidance as to how to start
and/or a sample program to start from.
I am an experienced programmer in C and C++ but a novice to gstreamer.

Rafael

_______________________________________________
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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111005/b29021a2/attachment-0001.htm>


More information about the gstreamer-devel mailing list