Code: Select all
string[] args = new string[] {
"-I", "dummy", "--ignore-config",
@"--plugin-path=C:\bin\Debug\plugins"};
instance = new VlcInstance(args);
public VlcInstance(string[] args)
{
instance = LibVlc.libvlc_new(args.Length, args);
if (instance == IntPtr.Zero) throw new VlcException();
}
Code: Select all
string[] args = new string[] {"-I", "dummy", "--ignore-config",@"--plugin-path=C:\Users\bin\Debug\plugins", --sout=file/ps:go.mpg };
As far as I know libVLC doesn't give us the possibility to start recording after the stream is started (though the player has a red-circled button that does it!!!). By now (afaik) you can only start streaming and recording together at the same time (with --sout option).DOES ANYONE KNOW HOW TO START RECORDING IN THE MIDDILE OF THE STREAM ? I WANT THE EXCAT FEATURE AS THE ONE IN THE INSTALBLE PLAYER ???
Code: Select all
this.vlcPlugin.playlist.add(@"rtsp://10.1.55.101:8554/test", cameraName, streamOptions);
this.vlcPlugin.playlist.playItem(0);
Code: Select all
:sout=#duplicate{dst=file{dst=C:\testLABEYE3.mp4},dst=display} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep
Code: Select all
string[] options = { ":sout=#duplicate{dst=display,dst=std{access=file,mux=asf,dst=\"F:\\My-Output-Video-Filename.asf\"}}" };
Return to “Development around libVLC”
Users browsing this forum: No registered users and 20 guests