Page 1 of 1
VLC ActiveX,Snapshots & C# :D
Posted: 11 Oct 2009 14:12
by rostamiani
Hi
I want to use VLC Activex in mu C# Project
I want to preview & snapshot the webcam using VLC
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
Re: VLC ActiveX,Snapshots & C# :D
Posted: 15 Oct 2009 14:40
by mohammad
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
Re: VLC ActiveX,Snapshots & C# :D
Posted: 29 Jan 2010 15:42
by rostamiani
How can I get the pictures ?
Can VLC Activex do this ?
Anyone ?
Re: VLC ActiveX,Snapshots & C# :D
Posted: 29 Jan 2010 16:11
by rostamiani
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
Re: VLC ActiveX,Snapshots & C# :D
Posted: 15 Feb 2010 20:54
by dudedevil100
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.
Re: VLC ActiveX,Snapshots & C# :D
Posted: 28 Apr 2010 08:27
by ChrisP
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?
Re: VLC ActiveX,Snapshots & C# :D
Posted: 21 May 2010 08:06
by nithinjadhav
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 ..!
Re: VLC ActiveX,Snapshots & C# :D
Posted: 31 Jul 2013 15:27
by Lieven
Dear,
Where is the default tempory location for the snapshots?
Did you solve this issue because I have the same problem.
Thanks!
Re: VLC ActiveX,Snapshots & C# :D
Posted: 06 Sep 2016 12:47
by dougtaylor1950
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.