Hello,
I am trying using LibVLCSharp.dll and LibVLCSharp.WinForms.dll in C#.
I want to use video scene filter to get image sequences, but it does not work.
Here is my code:
public LibVLC _libVLC;
public MediaPlayer _mp;
_libVLC = new LibVLC();
_mp = new MediaPlayer(_libVLC);
videoView1.MediaPlayer = _mp;
Media media = new Media(_libVLC, "dshow://", Media.FromType.FromLocation);
media.AddOption(":dshow-vdev=Decklink Video Capture");
media.AddOption(":dshow-adev=none");
media.AddOption(":dshow-size=1920x1080");
media.AddOption(":dshow-fps=25.000000");
media.AddOption(":aspect-ratio=16:9");
media.AddOption(":video-filter=scene");
media.AddOption(":scene-format=bmp");
media.AddOption(":scene-prefix=vlcsnap");
media.AddOption(":scene-ratio=3");
media.AddOption("--scene-path=C:\\");
_mp.Play(media);
I am able to open capture device, but i don't able to get image sequences.
I am able to do it by cmd command (see below) but I don't able to do it by LibVLCSharp
C:\Program Files (x86)\VideoLAN\VLC>vlc dshow:// --dshow-vdev="Decklink Video Capture" --dshow-adev="none" --dshow-chroma="UYVY" --dshow-size=1920x1080 --dshow-fps=25.000000 --video-filter=scene --scene-format=bmp --scene-prefix=vlcsnap --scene-ratio=3 --scene-path=D:\vlcsnap
Can anybody tell me what is wrong,why video-scene filter is not accepted as AddOption or there is any mistake.
Thank you very much
Radoslav