Problem saving dshow stream to file using c#

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
bjh
New Cone
New Cone
Posts: 1
Joined: 28 Jan 2007 23:33

Problem saving dshow stream to file using c#

Postby bjh » 28 Jan 2007 23:53

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();
bjh

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 23 guests