Page 1 of 1

Problem saving dshow stream to file using c#

Posted: 28 Jan 2007 23:53
by bjh
I'm trying to grab a dshow stream (firewire) and dump it to disk. I think I'm pretty close to getting this code working, but I'm at a loss as to what is wrong at this point. I'm not getting an exception, but I'm not getting an output file either.

I don't believe I'm understanding the difference in the usage of the options array and the target parameters. Or I'm using the :sout option incorrectly in this context. (note: this is a working :sout from a working command line call)

Any help would be appreciated.

Code: Select all

v = new VLC(); v.ClearPlaylist(); string [] options = { ":dshow-adev=\"\"", ":dshow-size=\"\"", ":dshow-vdev=\"motorola av/c tuner device\"" ,":sout=#duplicate{dst=std{access=file,mux=ts,dst=\"C:\\MyVideos\\test.tp\"}}" }; string target = "dshow://"; v.AddTarget(target, options); v.Play(); System.Threading.Thread.Sleep(10000); v.Stop();