NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 62 63 64 65 66 … 93 Next »
Developing plugins

 
  • 0 Vote(s) - 0 Average
Developing plugins
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#31
2004-12-05, 04:22 PM
There is currently no dynamic plugin mechanism for this type of class. What are you trying to implement?



normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#32
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.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#33
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.
normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#34
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?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#35
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"
normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#36
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)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#37
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.



normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#38
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?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#39
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.
normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#40
2004-12-09, 06:56 PM
does the filter expect mpg2 input or can it be uncompressed?
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (10): « Previous 1 2 3 4 5 6 … 10 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Plugins and NPVR. Where do we start? sub 80 69,151 2020-11-26, 10:02 PM
Last Post: mandai
  Developing Android TV client fred250 2 1,841 2020-11-16, 06:33 PM
Last Post: fred250
  I want to start developing plugins...but how? OrenShapir 6 4,098 2014-11-18, 10:38 PM
Last Post: mvallevand
  Tuner plugins and client id mvallevand 2 2,081 2013-07-03, 01:39 AM
Last Post: mvallevand
  Tuner Plugins - Output folders mvallevand 2 2,054 2013-02-19, 07:45 PM
Last Post: mvallevand
  .NET 4 plugins? McBainUK 20 7,790 2012-12-11, 08:48 PM
Last Post: sub
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,779 2012-10-18, 08:35 PM
Last Post: osx-addict
  Tuner plugins mvallevand 4 2,462 2012-08-05, 11:19 PM
Last Post: mvallevand
  Recorder plugins - Deleting tuners mvallevand 1 1,523 2012-03-29, 12:51 AM
Last Post: sub
  Recorder plugins - scheduling mvallevand 4 2,408 2012-03-26, 05:09 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode