📄 mcast.txt
字号:
The Darwin Streaming Server provides a program, PlaylistBroadcaster,that can be used to multicast stream MPEG4 content stored in MP4 files.Here's the step by step procedure:SETUP=====To set up the multicast you need to create two files. The first file is a playlist file which specifies which files to play. Here's an example playlist file, 'playlist_example': *PLAY-LIST*mycontent1.mp4mycontent2.mp4mycontent3.mp4The second file specifies where to multicast.Here's an example multicast file, 'mcast_example':playlist_file playlist_exampleplay_mode sequential_loopedsdp_reference_movie mycontent1.mp4destination_ip_address 224.10.11.12destination_base_port 40000multicast_ttl 15See mpeg4ip/server/DSS/Documentation/AboutDarwinStreamingSvr.pdf for amore detailed explanation.The 'multicast_ttl' parameter specifies the IP time-to-live (TTL) used for themulticast packets. It determines how many networks the multicast packetscan reach before being timed out. The default value is 1, i.e. multicast onlyto the locally attached network.TRANSMITTING============Once these files are setup, you tell the PlaylistBroadcaster to start transmitting. I.e.$ /usr/local/bin/PlaylistBroadcaster mcast_exampleNote you need root privileges to do this.Note on some systems, it may be necessary to add a multicast route to the system routing table to get multicast packets to be transmitted.I.e:$ route add -net 224.0.0.0 netmask 240.0.0.0 eth0RECEIVING=========As part of the statup procedure, PlaylistBroadcaster will automaticallygenerate an SDP file for the transmission. E.g 'mcast_example.sdp'You need to get that SDP file to the clients that want to receive themulticast transmission. This can be done via email, web site, ftp, ...The player then opens the sdp file, and should begin receiving themulticast content within a few seconds. I.e.$ gmp4player mcast_example.sdpThat's it! I suggest at first that you check multicast with a server andplayer on the same LAN. Once that is working, you can try it across routerswhich enters the arena of configuring multicast routing which is beyondthe scope of this document.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -