几个RTP命令行小工具结合使用后的妙处
首先分别介绍下几个RTP (Real-time Transport Protocol)命令行小工具的用法.
1. mediastream.exe
mediastream --local <port> --remote <ip:port> --payload <payload type number>[ --fmtp <fmtpline>][ --jitter <miliseconds>][ --width <pixels>][ --height <pixels> ][ --bitrate <bits per seconds>][ --ec (enable echo canceller)][ --agc (enable automatic gain control)][ --ng (enable noise gate)][ --ng-threshold <(float) [0-1]> (noise gate threshold)][ --capture-card <name>][ --playback-card <name>][ --infile <input wav file>] specify a wav file to be used for input, instead of soundcard[ --outfile <output wav file>] specify a wav file to write audio into, instead of soundcard
rtpdump [-F format] [-t duration] [-x bytes] [-f file] [-o outputfile] address/port
rtpplay [-T] [-v] [-f file] [-p profile] [-s sourceport] [-b begin] [-e end] destination/port[/ttl]
@ECHO OFFSTART "mediastream_test" /MIN mediastream.exe --local 2000 --remote 127.0.0.1:3000 --payload 110START "rtpdump_test" /MIN rtpdump.exe -F dump -o ./my.rtpdump 127.0.0.1/3000 ECHO "Press Any Key to Finish the Voice Dump"PAUSETASKKILL /F /FI "WINDOWTITLE eq mediastream_test"TASKKILL /F /FI "WINDOWTITLE eq rtpdump_test"EXIT
@ECHO OFFSTART "mediastream_test" /MIN mediastream.exe --local 2000 --remote 127.0.0.1:3000 --payload 110REM Delay for 2 secondsping 127.0.0.1 -n 2 > nulrtpplay.exe -f ./my.rtpdump -s 3000 127.0.0.1/2000 ECHO "Press Any Key to Finish the Voice Playback"PAUSETASKKILL /F /FI "WINDOWTITLE eq mediastream_test"EXIT