2004-12-05, 04:22 PM
There is currently no dynamic plugin mechanism for this type of class. What are you trying to implement?
2004-12-05, 04:22 PM
There is currently no dynamic plugin mechanism for this type of class. What are you trying to implement?
2004-12-06, 08:54 AM
I'm trying to implement a recorder that will capture from any generic WDM capture device. This should work on my currently unsupported LifeView (re my post in the hardware forum) and in fact will nail the WebCam request at the same time.
2004-12-06, 04:13 PM
OK, I could possibly look at integrating support for this type of plugin in the future. Feel free to write a stand along class that implements this interface, which you can just call from some test harness executable. If you can get this far, send it over and I'll hook up the plugin support.
It'd still need to result in an MPEG2 file, so you'd have to put it through an software MPEG2 encoder filter.
2004-12-06, 04:21 PM
yea, no problem. I think i've got the ligos (en/de)coders installed at the moment. I gather the idea is that when startRecording ( i think that's the call, the sources are at home ) is executed, then the recorder should start the recording (possibly in another thread) and immediatly return to the caller. Then you should be able to query the recording status or the filename location, and then stop the recording too.
btw: there seem to be a whole bunch of directx helpers in the nativeutilities dll. I assume i can piggy back on those?
2004-12-06, 05:17 PM
[b Wrote:Quote[/b] ]there seem to be a whole bunch of directx helpers in the nativeutilities dll. I assume i can piggy back on those?There isn't really anything in there you'd be able to use. You're better off writing a standalone implementation. StartRecording() should construct a directshow graph, then call run() on it, then return. StopRecording() should call stop() on the graph getFinalFileName() should return the name of the file passed into StartRecording() getUniqueDeviceIdentifier() should return "devicename:instance"
2004-12-06, 06:05 PM
Any chance you can dump a bunch of sample code in my direction. I'm thinking the main section of either the direct, or go plugins? I'd also like to avoid installing the DX SDK, but I'm not sure if I can get around that. (In c++ no, in c# maybe)
2004-12-06, 06:09 PM
[b Wrote:Quote[/b] ]Any chance you can dump a bunch of sample code in my direction.nope - sorry I dont have anything I can send you. You'll need to have the DirectX SDK.
2004-12-09, 06:48 PM
I found a bunch of wrapper classes at code project for direct show ( http://www.codeproject.com/cs/media/directshownet.asp ). Â They work great. Â I'm just busy dropping the Capture.Net sample code into the GB-PVR Plugin framework and then I'll post the code here.
btw: looking at the list of directshow plugins, I noticed a few GB-PVR ones. Â Do I have to use any of them? Â Not having the list in front of me, as it's at home, but I think there's a file writer plugin that I assume is used to write the .mpg files so you can read them with the frontend at the same time, otherwise the files are locked by the writer? I have noticed a wierd bug: with the sample code i have, there's a 20% chance that the file will never be written to. Â This seems to happen totally randomly, and the only way to fix it is to stop and re-start the graph. Â I doubt this is a c# bug, but more likely a directshow or WDM, or my drivers - have you seen anything like this before?
2004-12-09, 06:51 PM
Yes, you should probably use the GB-PVR Writer filter, but the rest you can ignore.
No, I havn't seen the bug you describe.
2004-12-09, 06:56 PM
does the filter expect mpg2 input or can it be uncompressed?
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Plugins and NPVR. Where do we start? | sub | 80 | 65,973 |
2020-11-26, 10:02 PM Last Post: mandai |
|
Developing Android TV client | fred250 | 2 | 1,594 |
2020-11-16, 06:33 PM Last Post: fred250 |
|
I want to start developing plugins...but how? | OrenShapir | 6 | 3,793 |
2014-11-18, 10:38 PM Last Post: mvallevand |
|
Tuner plugins and client id | mvallevand | 2 | 1,896 |
2013-07-03, 01:39 AM Last Post: mvallevand |
|
Tuner Plugins - Output folders | mvallevand | 2 | 1,920 |
2013-02-19, 07:45 PM Last Post: mvallevand |
|
.NET 4 plugins? | McBainUK | 20 | 7,087 |
2012-12-11, 08:48 PM Last Post: sub |
|
Integrated Development Environment (IDE) for plugins | osx-addict | 5 | 2,514 |
2012-10-18, 08:35 PM Last Post: osx-addict |
|
Tuner plugins | mvallevand | 4 | 2,255 |
2012-08-05, 11:19 PM Last Post: mvallevand |
|
Recorder plugins - Deleting tuners | mvallevand | 1 | 1,391 |
2012-03-29, 12:51 AM Last Post: sub |
|
Recorder plugins - scheduling | mvallevand | 4 | 2,199 |
2012-03-26, 05:09 PM Last Post: mvallevand |