|
NAMEudpxy - a UDP-to-HTTP multicast traffic relay daemon.SYNOPSISudpxy [-vTS] [-a <listenaddr>] [-m <mcast_ifc_addr>] [-c <clients>] [-l <logfile>] [-B <sizeK>] [-R <msgs>] [-H <sec>] [-n <nice_incr>] [-M <sec>] -p <port>DESCRIPTIONudpxy is a UDP-to-HTTP multicast traffic relay daemon: it forwards UDP traffic from a given multicast subscription to the requesting HTTP client.udpxy listens (on a dedicated address/port) for HTTP requests issued by clients. A client request should be structured as: http://{address}:{port}/{cmd}/{mgroup_address}[SEP]{mgroup_port}
where address and port match the listening address/port combination of udpxy, and mgroup_address:mgroup_port identify the multicast group/channel to subscribe to.
udpxy will start a separate client process for each new relay request (within the specified limit on active clients). The client process will relay/forward all network traffic received (via a UDP socket) from the specified multicast group to the requesting HTTP connection. udpxy also supports a few administrative requests:
EXAMPLEShttp://192.168.0.12:5056/udp/224.0.2.26:24012http://192.168.0.12:5056/rtp/224.0.2.26:24012 http://192.168.0.15:5056/rtp/224.0.2.26^24055 http://192.168.0.15:5056/status/ OPTIONSudpxy accepts the following options:
PAYLOAD TYPES AND HANDLINGudpxy recognizes MPEG-TS and RTP over MPEG-TS payloads within relayed packets; if udpxy encounters RTP payload it automatically 'translates' it to MPEG-TS (by stripping RTP headers) so that media players not recognizing RTP could still play back the stream.So far, no translation is performed for other payload types. RECORDING MPEG TRAFFICudpxy includes functionality to record captured traffic as raw MPEG-TS stream into a file. This functionality is enabled through udpxrec: a bundled-in application that is linked together with udpxy (as one executable).udpxrec is invoked via a symbolic link (named udpxrec) to the udpxy executable (i.e. do not rename udpxy executable). udpxrec creates MPEG files encapsulating MPEG-TS segments; certain media players will NOT play such files; in order to make them playable the stream must be transcoded to MPEG-PS; vlc 'knows' how to do such transcoding, here is a command-line example: vlc input-ts.mpg --sout="#std{access=file,mux=ps,dst=out-ps.mpg}" The resulting MPEG-PS file can be played back by most media players. ENVIRONMENTudpxy utilizes the following environment variables to compliment its command-line options; the variables are considered for the options that most people would not need to change too often (or simply inconvenient to use from the command line).NB: If there is a command-line switch that would intersect in functionality with an environment variable, the switch always has higher priority.
AUTHORSPavel V. Cherenkov and all the good people who submitted patches or otherwise contributed to the project.SEE ALSOudpxrec(1)
Visit the GSP FreeBSD Man Page Interface. |