Page 1 of 1

VLC Player Image Capture

Posted: 25 Sep 2020 00:17
by umt134
Hi;
I watch ip camera via rstp address with VLC Player. I want to capture a picture from the video while watching.
Do you have any ideas on the subject?
Thank you..
Image

Code: Select all

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace forum_gonder { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { axVLCPlugin21.playlist.add("rtsp://192.168.1.21:554/live0.264"); axVLCPlugin21.playlist.play(); } private void button2_Click(object sender, EventArgs e) { } } }

Re: VLC Player Image Capture

Posted: 25 Sep 2020 11:53
by mfkl
Hi,

Please don't use axvlc if you use C#, it's unmaintained. Use libvlcsharp.

Mediaplayer.TakeSnapshot() should do the job. https://code.videolan.org/videolan/LibV ... -the-video

Re: VLC Player Image Capture

Posted: 27 Sep 2020 23:16
by umt134
Thank you very much for your interest.

https://www.nuget.org/packages/LibVLCSharp/
I've installed packages from this link, "using LibVLCSharp.Shared;" How do I add the media player to the toolbox after this library is loaded?
When I add chose item> com companents> vlc puling, "acxvlc" comes to the references.
Examples in libraries do not open! build ms2003 error.

Can you share a sample application?
Thank you.

Re: VLC Player Image Capture

Posted: 28 Sep 2020 09:51
by mfkl
Hi,

We don't support the VS designer, nor outdated VS versions. Please update your VS to latest.

WinForms sample https://code.videolan.org/videolan/LibV ... rms.Sample

Re: VLC Player Image Capture

Posted: 28 Sep 2020 17:21
by umt134
Hi;
The project example you submitted does not open.
Image
Image
Image

Re: VLC Player Image Capture

Posted: 29 Sep 2020 10:06
by mfkl
It's not meant to be opened like this. Copy it to a new solution and adjust the config files or try any of these https://code.videolan.org/mfkl/libvlcsharp-samples

Re: VLC Player Image Capture

Posted: 30 Sep 2020 22:07
by umt134
I am aware I have tried very hard. Firstly, thank you. Whatever I did didn't happen.
I tried a different way. Videoviewer is not available in Toolbox.
Image
Image
Image
Image
Image

Re: VLC Player Image Capture

Posted: 01 Oct 2020 14:47
by mfkl
Videoviewer is not available in Toolbox.
Yes, like I said we don't support the WinForms designer.