There is, for example, emergency video click of a button, the current broadcast images of the video immediately to the local file,
I currently is to create a new object VlcMediaPlayer video store to a local file, can in the case of without creating new VlcMediaPlayer video and broadcast at the same time.
Var. Media=playControl SourceProvider. MediaPlayer. GetMedia ();
Var destination=Path.Com bine (" F: \ \ ", a DateTime. Now. ToString (" yyyyMMddHHmmss ") + "mp4");
Var mediaOptions=new []
{
": the sout=# file {DST=" + destination + "} ",
": sout - the display,"
": the sout - all",
": sout - keep
"};
Var recordingMediaPlayer=new VlcMediaPlayer (vlcLibDirectory);
RecordingMediaPlayer. SetMedia (media called simply Mrl, mediaOptions);
RecordingMediaPlayer. Play ();
CodePudding user response:
Ffmpeg look at?