VLC ActiveX,Snapshots & C# :D

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
rostamiani
New Cone
New Cone
Posts: 9
Joined: 28 Sep 2009 09:21

VLC ActiveX,Snapshots & C# :D

Postby rostamiani » 11 Oct 2009 14:12

Hi
I want to use VLC Activex in mu C# Project
I want to preview & snapshot the webcam using VLC :D
Everything work good but I cannot set the picture path and filename !
It saves the snapshot in the temp folder !

How can I set it ?

Thanks a lot :wink:

mohammad
New Cone
New Cone
Posts: 1
Joined: 15 Oct 2009 14:36

Re: VLC ActiveX,Snapshots & C# :D

Postby mohammad » 15 Oct 2009 14:40

hi

sorry i have a question .

i wana the same job that you want but i cannot get any picture by VLC ActivX .
And i cannot do anything with VLC ActiveX in C# :((

Please Help me :-p
May you send me a sample code that connect to this ActiveX and take picture ????

thnx alot
Mohammad

Ny Email : m_hamidi_es@yahoo.com

rostamiani
New Cone
New Cone
Posts: 9
Joined: 28 Sep 2009 09:21

Re: VLC ActiveX,Snapshots & C# :D

Postby rostamiani » 29 Jan 2010 15:42

How can I get the pictures ?

Can VLC Activex do this ?

Anyone ?

rostamiani
New Cone
New Cone
Posts: 9
Joined: 28 Sep 2009 09:21

Re: VLC ActiveX,Snapshots & C# :D

Postby rostamiani » 29 Jan 2010 16:11

hi

sorry i have a question .

i wana the same job that you want but i cannot get any picture by VLC ActivX .
And i cannot do anything with VLC ActiveX in C# :((

Please Help me :-p
May you send me a sample code that connect to this ActiveX and take picture ????

thnx alot
Mohammad

Ny Email : m_hamidi_es@yahoo.com
I connected to camera with this command :

Code: Select all

axVLCPlugin21.playlist.add("dshow://", "Logitech Webcam",null); axVLCPlugin21.playlist.play();
And grabbed the snapshot using this command :

Code: Select all

axVLCPlugin21.video.takeSnapshot();
But this command saves the pictures in the local temp folder and I couldn't set destination folder :-|

dudedevil100
New Cone
New Cone
Posts: 4
Joined: 15 Feb 2010 20:13

Re: VLC ActiveX,Snapshots & C# :D

Postby dudedevil100 » 15 Feb 2010 20:54

I connected to camera with this command :

Code: Select all
axVLCPlugin21.playlist.add("dshow://", "Logitech Webcam",null);
axVLCPlugin21.playlist.play();



And grabbed the snapshot using this command :

Code: Select all
axVLCPlugin21.video.takeSnapshot();



But this command saves the pictures in the local temp folder and I couldn't set destination folder :-|

rostamiani
New Cone
New Cone

Posts: 6
Joined: Mon Sep 28, 2009 12:51 pm

* Private message
try giving the file path name under "null", null is always the option. provide your desired path in "file+_path"

i suppose it may work.

ChrisP
New Cone
New Cone
Posts: 1
Joined: 28 Apr 2010 08:25

Re: VLC ActiveX,Snapshots & C# :D

Postby ChrisP » 28 Apr 2010 08:27

I tried to take a snapshot in Visual Studio 2010 with c#

with "video.takeSnapshot()" i get the error H_RETURN E_FAIL.

Can somebody help me?

nithinjadhav
New Cone
New Cone
Posts: 2
Joined: 21 May 2010 07:56

Re: VLC ActiveX,Snapshots & C# :D

Postby nithinjadhav » 21 May 2010 08:06

Hi,

you can use this method to capture the image..
and the image is saved in default directory ( ..\myDocuments\pictures\ )

Code: Select all

private void Button1_Click(object sender, EventArgs e) { axVLCplugin1.setVariable("key-pressed", vlc.getVariable("key-snapshot")); }
But can any one please gimme the code to change the default directory ..!

Lieven
New Cone
New Cone
Posts: 1
Joined: 16 Dec 2012 17:59

Re: VLC ActiveX,Snapshots & C# :D

Postby Lieven » 31 Jul 2013 15:27

Dear,
Where is the default tempory location for the snapshots?
Did you solve this issue because I have the same problem.

Thanks!

dougtaylor1950
New Cone
New Cone
Posts: 1
Joined: 06 Sep 2016 12:42

Re: VLC ActiveX,Snapshots & C# :D

Postby dougtaylor1950 » 06 Sep 2016 12:47

Though probably a bit late VLC seems to save images in the current directory

I use the following in C#

System.IO.Directory.SetCurrentDirectory(Properties.Settings.Default.DefaultImageDirectory);
axVLCPlugin21.video.takeSnapshot();

Where Properties... is an application defined path, of course CHDIR will do the same.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 20 guests