VLC Player Image Capture

This forum is about all development around libVLC.
umt134
New Cone
New Cone
Posts: 4
Joined: 24 Sep 2020 23:44

VLC Player Image Capture

Postby umt134 » 25 Sep 2020 00:17

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) { } } }

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: VLC Player Image Capture

Postby mfkl » 25 Sep 2020 11:53

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
https://mfkl.github.io

umt134
New Cone
New Cone
Posts: 4
Joined: 24 Sep 2020 23:44

Re: VLC Player Image Capture

Postby umt134 » 27 Sep 2020 23:16

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.

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: VLC Player Image Capture

Postby mfkl » 28 Sep 2020 09:51

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
https://mfkl.github.io

umt134
New Cone
New Cone
Posts: 4
Joined: 24 Sep 2020 23:44

Re: VLC Player Image Capture

Postby umt134 » 28 Sep 2020 17:21

Hi;
The project example you submitted does not open.
Image
Image
Image

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: VLC Player Image Capture

Postby mfkl » 29 Sep 2020 10:06

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
https://mfkl.github.io

umt134
New Cone
New Cone
Posts: 4
Joined: 24 Sep 2020 23:44

Re: VLC Player Image Capture

Postby umt134 » 30 Sep 2020 22:07

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

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: VLC Player Image Capture

Postby mfkl » 01 Oct 2020 14:47

Videoviewer is not available in Toolbox.
Yes, like I said we don't support the WinForms designer.
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests