MJPEG relay IP Cam

About encoding, codec settings, muxers and filter usage
xcelsion
New Cone
New Cone
Posts: 3
Joined: 18 Jan 2011 10:17

MJPEG relay IP Cam

Postby xcelsion » 18 Jan 2011 10:43

Dear VideoLAN community,

I have an assignment that requires me to make a video stream available to a large amount of people. The source for the video is an IP Camera that is located in our office and looks out over a town square. The problem with this is that the IP Cam can only support so many viewers. I was thinking of capturing the stream and re-broadcasting it using VLC. Unfortunately I haven't had much luck getting it to work.

The camera uses MJPEG format for the video. The link is http://cam_ip:6001/cgi-bin/sf.cgi I can open this link in Firefox directly and it plays the stream just fine. However when I try to open this in VLC I get an error message saying the MRL could not be opened. It tells me to check the log file for further details but I don't know where to find it. I thought it was located in %appdata%/vlc but there is no log file there. It's not in program files/VideoLAN/vlc either

I hope you guys can help me out, or at least point me in the right direction.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: MJPEG relay IP Cam

Postby Sébastien Escudier » 18 Jan 2011 10:52

Yes, vlc can''t open cgi.
You have to find the url of the mjpeg stream.
Ask your vendor.

xcelsion
New Cone
New Cone
Posts: 3
Joined: 18 Jan 2011 10:17

Re: MJPEG relay IP Cam

Postby xcelsion » 18 Jan 2011 11:29

I was afraid that would be the case :(

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: MJPEG relay IP Cam

Postby Sébastien Escudier » 18 Jan 2011 12:01

But I'm sure the camera have a "normal" stream url...

xcelsion
New Cone
New Cone
Posts: 3
Joined: 18 Jan 2011 10:17

Re: MJPEG relay IP Cam

Postby xcelsion » 18 Jan 2011 14:07

I've sent an e-mail to eminent asking about it, fingers crossed.

aristeos
New Cone
New Cone
Posts: 1
Joined: 23 Apr 2011 05:33

Re: MJPEG relay IP Cam

Postby aristeos » 23 Apr 2011 05:41

Try adding "?.mjpeg" to the end of your URL when you open the network location in VLC (in my case it looks like this: http://127.0.0.1/MJPEG.CGI?.mjpeg). The camera http server should ignore everything after the question mark and the .mjpeg tells VLC how to interpret the stream. I had similar problems with a D-Link camera and this solution worked perfectly. Hope this helps.

@aristeos

arend
New Cone
New Cone
Posts: 8
Joined: 06 May 2004 23:24

Re: MJPEG relay IP Cam

Postby arend » 29 Aug 2011 07:35

Just for future reference:

Look at the source of the page presented by the ip cam: http://cam_ip:6001/cgi-bin/sf.cgi
There should be an image tag like <img src="/videofeed" alt="Video feed"/>
In this case, this is your mjpeg stream url: http://cam_ip:6001/videofeed


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests