-
-
Notifications
You must be signed in to change notification settings - Fork 416
video flickers and mouse freeze when streaming video #655
Comments
Could you please host your solution( or a minimal repro project) on github so that I can try myself? Your live-caching parameter should be written as Does it work with the same options with the VLC command line? |
I dont try on vlc command line but ı try with vlc interface. I used minimal sample with the one above. Yes ı writed it wrong here but my code is correct(--live-caching) |
Then try with VLC first and if it doesn't flicker, then please upload a repo on github so I can try. |
I tried vlc a lot but it doesnt flicker, ı tried another vlc wrapper for. Net, there is nothing wrong again. I usedhttps://github.com/ZeBobo5/Vlc.DotNet/tree/develop/src/Samples/Samples.WinForms.Minimal sample only the deinterlace filter difference. The only difference is the code on above. I Just create vclcontrol in my code not designer. |
I mean the VLC command line. |
Ofcourse i will try it. Thanks for your quick reply and support. I am really pleased. |
deneme.zip |
I have an issue about Vlc.DotNet.
Hİ,
When ı try to stream video with a device over directshow, the mouse gets stuck and flickering occurs every 10 seconds on the screen. When ı want to use a Yadif filter, this frequency increases, although it decreases to a minimum with Bob,but it is not completely resolved. I dont have a problem when ı try to get images with vlc on the same hardware.
public void StartCamera(string strCameraName,UserControl userControl)
{
VlcControl vlcControl=new VlcControl();
vlcControl.BeginInit();
vlcControl.BackColor = System.Drawing.Color.Black;
vlcControl.Dock = System.Windows.Forms.DockStyle.Fill;
vlcControl.Name = "vlcControl";
vlcControl.Size = new System.Drawing.Size(944, 501);
vlcControl.TabIndex = 0;
vlcControl.Text = "vlcControl1";
vlcControl.VlcLibDirectoryNeeded +=vlcControl_VlcLibDirectoryNeeded;
vlcControl.VlcMediaplayerOptions = new string[] { "--deinterlace=on", "--video-filter=deinterlace", "--deinterlace-mode=yadif" ,"live--caching=1"};
vlcControl.EndInit();
userControl.Add(vlcControl);
vlcControl.SetMedia(@"dshow://", ":dshow-vdev="+strCameraName);
ThreadPool.QueueUserWorkItem(obj=>vlcControl.Play());
}
private void vlcControl_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
{
var currentAssembly = Assembly.GetEntryAssembly();
var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;
// Default installation path of VideoLAN.LibVLC.Windows
e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64"));
}
The text was updated successfully, but these errors were encountered: