Postby markfm » 07 Dec 2004 12:55
vlc your_source_file :sout=#transcode{vcodec=DIV3,vb=1024,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=mmsh,mux=ASFH,url=:1234}}
the above would take your_source_file, transcode to DIV3 video and mp3 audio, set it up as an mmsh stream using asfh encapsulation.
To connect to it using a newer WMP (9 or 10), look in WMP preferences to make sure you have TCP enabled as a protocol (in the Network tab of the WMP preferences), then do a File -- Open URL, type in:
mms://the_server_PC_IP_address:1234
To view it in VLC, do an Open -- Open Network Stream, click the HTTP/FTP/MMS box and type:
mmsh://the_server_PC_IP_address:1234
To stream using UDP, use:
vlc your_source_file :sout=#transcode{vcodec=mp4v,vb=1024,scale=1,acodec=mpga,ab=128,channels=2} :duplicate{dst=std{access=udp,mux=ts,url=239.240.30.40:1234} --sout-udp-ttl=6
The above should be used only on a local LAN segment, and is using multicast -- don't do this in a work environment without checking with your IT people first. To connect to it, open VLC, do an Open -- Open Network Stream, pick the UDP/RTP multicast option, type in: 239.240.30.40 in the Address field. The "ttl" option increases time to live, so the packets will make it across a home wireless router (if your router supports multicast).
The above examples use transcoding, not necessary for many things, and it does use CPU on the server PC. The DIV3/mp3/ASFH/mmsh choices get you something that's WMP compatible. The mp4v/mpga/MPEG TS/UDP choices aren't WMP compatible, but do get you a decent quality bvideo stream, able to be viewed by multiple people simultaneously.