private string pushRtspStream(string ipServer, string ipSelf, int portSelf) { string nameByIpPort = this.createNameByIpPort(ipSelf, portSelf); string para = " -f gdigrab -i desktop -framerate 6 -g 36 -s 800*600 -vcodec libx264 -x264opts bframes=3:b-adapt=0 -bufsize 2000k -threads 16 -preset:v ultrafast -tune:v zerolatency -f rtsp rtsp://" + ipServer + "/" + nameByIpPort + ".sdp"; this._ffmpeg = new Ffmpeg(); this._ffmpeg.beginExecute(para); return("rtsp://" + ipServer + "/" + nameByIpPort + ".sdp"); }
public VideoCall(ClientConnectTcp ConnectTcp, string serverIP, string ipSelf, int portSelf, string ipReceive, int portReceive, VlcPlayer vplayer, string camera, string userRole) { this._clientConnect = ConnectTcp; this._serverIp = serverIP; this._ipMakeCall = ipSelf; this._portMakeCall = portSelf; this._ipAnswerCall = ipReceive; this._portAnswerCall = portReceive; this._player = vplayer; this._camera = camera; this._role = userRole; this._videoNameSelf = this.createNameByIpPort(ipSelf, portSelf); this._ffmpeg = new Ffmpeg(); this._param = " -f dshow -i video=\"" + this._camera + "\" -framerate 18 -g 36 -s 240*180 -threads 16 -bufsize 2000k -vcodec libx264 -x264opts bframes=3:b-adapt=0 -preset:v ultrafast -tune:v zerolatency -f rtsp rtsp://" + this._serverIp + "/" + this._videoNameSelf + ".sdp"; }
public RecordVoice(AxWindowsMediaPlayer player) { this.f = new Ffmpeg(); this.mediaPlayer = player; this.voicePlayer = new RecordVoice.playVoiceCallBackHandler(this.playVoiceInvoke); }