Page 1 of 1

How to add snapshot-path for c#

Posted: 23 Jun 2010 14:04
by nithinjadhav
hi all,

im using vlc<0.8.6c>.. the following code to play the video in c# ..

Code: Select all

AxAXVLC.AxVLCPlugin vlc = new AxAXVLC.AxVLCPlugin(); vlc.addTarget(url, ":sout=#duplicate{dst=display}", AXVLC.VLCPlaylistMode.VLCPlayListAppendAndGo, -666); vlc.play();
and the following code to capture snapshot ... But the problem with this code is .. i cannot change the snapshot path.

Code: Select all

object tempo = (vlc.getVariable("key-snapshot")); vlc.setVariable("key-pressed", tempo);
i used the other code to take snapshot as follows .. but it dosent works..!

Code: Select all

string[] Opt = { "--snapshot-path = C:\\Users\\C# Dev PC 4\\Desktop\\snapshots" ,"--snapshot-prefix=vlcsnap-", "--key-snapshot=S", "--snapshot-format=png" }; vlc.addTarget("c:\\nithin.mpg", Opt, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo, 0); if (vlc.Playing != true) { vlc.play(); }
i can change the snapshot path manualy .. but i need it to do in code..!
Can any body help me .. capture snapshots in specified path..!