HELP WITH MMSH

About encoding, codec settings, muxers and filter usage
leviax
New Cone
New Cone
Posts: 9
Joined: 07 Mar 2007 11:56

HELP WITH MMSH

Postby leviax » 13 Mar 2007 19:57

Hello!

I want to stream over the internet a stream captured from webcam and mic.

I have 2 pc's, called "A" (IP: 192.168.0.7) and "B" (IP: 192.168.0.1) in the same LAN.
I have connected webcam and mic to pc "A". I have installed VLC on pc "B".

I want to receive in pc "B" webcam/mic stream by an rtp session coming from pc "A".
In the meanwhile I want to stream from pc "B" over the internet to an unspecified number of clients.

A user of this forum said me to use mmsh to stream, because multicast ip doesn't work if a client is behind a NAT.

My question is: how set MMSH URL??
Have I to set as URL the IP address of pc "B"??

In the videolan streaming how to I found this:

If the http, https or mmsh output method is chosen, dst is the address, port and path of the local network interface on which the server should listen for requests. If no address is given, VLC will listen on all the network interfaces. These information have to be supplied using the address:port/path syntax.

How have I to set address??

Otherwise, other solutions for this kind of streaming architecture?


Please, help me.
Thanks in advance!

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 13 Mar 2007 22:29

For MMSH / HTTP:
Set the IP address to 0.0.0.0 on the server.
On the client, connect to "mmsh://<the server's ip>:<the port>/" (or "http://<the server's ip>:<the port>/").

For RTP / UDP unicast:
Set the destination IP address to <client's ip> on the server.
On the client, connect to "rtp://:<the port>" (or "udp://:<the port>").

For RTP / UDP multicast:
Set the destination IP address to 239.255.1.1 on the server.
On the client, connect to "rtp://@239.255.1.1:<the port>" (or "udp://@239.255.1.1:<the port>").

Now the big question is: "How do i choose the appropriate streaming method for my particular needs?"
I'll try to give you pointers:
1/ If you're streaming on the internet and/or some of you clients are behind a NAT: use MMSH or HTTP.
2/ If you're streaming on a local network (LAN):
2.a/ If you plan on having multiple clients and/or don't know their IPs in advance (and your network isn't too crappy, wifi being considered as crappy): use RTP or UDP Multicast.
2.b/ If you have only one client and you know it's IP address: use RTP or UDP Unicast.
Last edited by dionoea on 17 Mar 2007 18:33, edited 1 time in total.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

leviax
New Cone
New Cone
Posts: 9
Joined: 07 Mar 2007 11:56

Postby leviax » 15 Mar 2007 01:33

Thank you very much, dionoea!

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 17 Mar 2007 18:33

You're welcome. (Btw, 2.b/ was supposed to be Unicast, not Multicast. I fixed my previous post)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests