How to add snapshot-path for c#

About encoding, codec settings, muxers and filter usage
nithinjadhav
New Cone
New Cone
Posts: 2
Joined: 21 May 2010 07:56

How to add snapshot-path for c#

Postby nithinjadhav » 23 Jun 2010 14:04

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..!

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 15 guests