Please specify URL using the -r option rtspdump-php v2.0 - Stream recorder for Microsoft's RTSP variant Copyright (C) 2010/01-02, Joel Yliluoma - Usage: php rtspdump.php [] -h, --help This help -V, --version Print version number -r, --rtsp Specify stream URL (example: mms:// This must point to a Microsoft Media Server (MS-RTSP). Other servers, such as Realmedia servers, are not supported. Use Live555 for them. -o, --output Specify output filename (default: dump.wmv) In order to dump to stdout, you can specify "- as the output filename. If you use MEncoder/MPlayer to read this stream, be sure to pass the "-demuxer asf" option to it; otherwise it will complain a lot about backward seeking. -a, --avport Manually specify UDP port number for A/V traffic -x, --rtxport Manually specify UDP port number for RTX traffic To simplify your firewall rules, you can also specify the same port for both A/V (audio/video) and the RTX (retransmissions). -b, --buffer Specify size of the packet buffer. (Default: 50) The program keeps this number of RTP packets in a buffer at all times in order to not make too hasty (wrong) decisions on requesting the retransmitting of packets. -d, --debug Debug traffic (use following values, or sum thereof): 1 = RTSP responses 2 = incoming RTP packets 4 = packet reordering 8 = A/V packet construction 16 = miscellaneous -t, --time Stop recording after number of seconds -v, --verbose Increase verbosity If you want to use TCP mode rather than UDP, choose "tcp" as the A/V port, e.g. "-a tcp". In this mode, no UDP traffic is generated or expected, and the RTX port setting is ignored. Note though, that the TCP mode requires slightly higher bandwidth than the UDP mode. Note that some PHP versions don't accept long options (e.g. --help). Use short ones instead (e.g. -h). Note on firewall requirements if you use UDP mode (default)): You will need to allow your firewall to pass incoming UDP packets. If you know the server's UDP ports and that they are constant (use option "-d1" and look for "server_port"), you might allow all UDP traffic from that host and that port. Or you can specify your own ports (rtxport, avport) and allow incoming traffic to those particular UDP ports. Or you can do both.