Recieving MJpeg Stream from Axis Camera

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Guest

Recieving MJpeg Stream from Axis Camera

Postby Guest » 15 Nov 2004 11:48

Can anybody tell me if it is possible to recieve multiple Mjpeg streams from the internet into VLC then output them to users on a LAN?
Preferably via http multicast.

The http command for the mjpeg stream is along the lines of:

http://mycamera.com/axis-cgi/mjpg/video.cgi?

I would like the LAN users to access the mjpeg stream via a similar command (http)

Thanks in advance for your help.

Mark Cracknell

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 15 Nov 2004 15:49

You cannot do multicast with http or any other tcp based protocol, only UDP can work with multicast.

VLC can read MJPEG Axis streams.
And you can stream that again just like any other input. Read the documentation please.
Don't use PMs for support questions.

jack
Blank Cone
Blank Cone
Posts: 15
Joined: 05 Nov 2004 12:48

Postby jack » 16 Nov 2004 10:22

But is it possible on windows OSes?Thanks

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 16 Nov 2004 11:12

sure.
Don't use PMs for support questions.

ZerBit
Blank Cone
Blank Cone
Posts: 75
Joined: 15 Sep 2004 16:35

Postby ZerBit » 16 Nov 2004 11:55

There isn´t any http multicast. :)

The multicast (IGMP) is always via UDP. :D

You could use the build-in VLC web server :wink:

Regards

jack
Blank Cone
Blank Cone
Posts: 15
Joined: 05 Nov 2004 12:48

Postby jack » 16 Nov 2004 12:38

sure.
I beg your pardon, but how can I obtain that?I would not to use the command line.
On server side:can I put the ip address of my Axis camera in the field"choose input"?
On the client side:what do I have to do?Thanks for patience DJ

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 16 Nov 2004 16:20

Don't use PMs for support questions.

jack
Blank Cone
Blank Cone
Posts: 15
Joined: 05 Nov 2004 12:48

Postby jack » 16 Nov 2004 17:07

I have read all docs, surely I'm an idiot but
IF I HAVE A WEBCAM AND I WANT TO TRANSMIT ITS LIVE CONTENT TO SEVERAL CLIENTS THROUGH A SERVER(ALL WITH VLC 0.8.0 AND WIN), HOW CAN I DO?THANKS IN ADVANCE

jack
Blank Cone
Blank Cone
Posts: 15
Joined: 05 Nov 2004 12:48

Postby jack » 17 Nov 2004 13:16

I have read all docs, surely I'm an idiot but
IF I HAVE A WEBCAM AND I WANT TO TRANSMIT ITS LIVE CONTENT TO SEVERAL CLIENTS THROUGH A SERVER(ALL WITH VLC 0.8.0 AND WIN), HOW CAN I DO?THANKS IN ADVANCE
There is someone who can write two lines about it?Thanks

jack
Blank Cone
Blank Cone
Posts: 15
Joined: 05 Nov 2004 12:48

Postby jack » 17 Nov 2004 16:25

I have read all docs, surely I'm an idiot but
IF I HAVE A WEBCAM AND I WANT TO TRANSMIT ITS LIVE CONTENT TO SEVERAL CLIENTS THROUGH A SERVER(ALL WITH VLC 0.8.0 AND WIN), HOW CAN I DO?THANKS IN ADVANCE
There is someone who can write two lines about it?Thanks
Maybe I explained my problem in a bad way:

I have a webcam linked through my lan to my server.I want to catch images from the webcam and distribute them to all clients asking for them.
Is it possible and how?What does I have to do to capture images of the webcam having ip address 10.0.0.30?Thanks

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 17 Nov 2004 17:09

vlc http://my_camera_address:camera_port :sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=udp,mux=ts,url=239.240.20.30:1234}}

Would:
Take an input network stream, assuming your camera is serving the video as http on port 1234.
Transcode it to an mpeg 4 video, 1 megabit nominal
Send it out as UDP multicast, MPEG Transport Stream encapsulation, on address 239.240.20.30, port 1234

multicast is fine for home use. If you're in a corporate or university environment, you should check with your network admins before using it.

Clients would then connect by using:
vlc udp://@239.240.20.30:1234

jack
Blank Cone
Blank Cone
Posts: 15
Joined: 05 Nov 2004 12:48

Postby jack » 18 Nov 2004 13:04

Thanks for all,but I didn't solve my problem,infact my clients cannot view anything. My sintax, on the server side, is:

vlc http://10.0.0.30:80 :sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=udp,mux=ts,url=239.255.1.1:1234}}

I saw, with a sniffer, that devices exchange packets, but the clients cannot view anything.

PS:
on the PCs there is windows xp and 2000

Thanks in advance

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 18 Nov 2004 15:32

Separate the problem into components -- getting the video from the Axis, then the stream output.

On the machine you want to be the server, make sure you are getting the packets from the camera OK.

On that machine, launch VLC. Select View -- Messages from the GUI that opens up. Then do a File -- Open Network Stream. Click on the http/ftp/mms box, and type in: http://10.0.0.30:80. Press OK. If life is good, you'll see the local VLC open a video window, display the images. If not, then there's an error in the original connection to the Axis -- what Error or Warning messages are displayed?

jack
Blank Cone
Blank Cone
Posts: 15
Joined: 05 Nov 2004 12:48

Postby jack » 18 Nov 2004 16:28

All solved thanks to Perica, because the problem was in Axis camera software. The motion jpeg image stream is fetched from the:
/cgi-bin/mjpeg/video.cgi?resolution=352x288
file.
So, on the server side, I have to write:

./vlc http://10.0.0.30/cgi-bin/mjpg/video.cgi ... on=352x288 :sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=udp,mux=ts,url=239.255.1.1:1234}}

where 10.0.0.30 is the ip address of my Axis camera and 239.255.1.1 is my multicast address

On the client side, I will write:

vlc udp://@239.255.1.1:1234

Someone more expert than me can correct the sintax, because I obtain all using wxWindows.

Thanks also to Markfm.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 40 guests