NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 8 9 10 11 12 … 93 Next »
Using Graphs in C#

 
  • 0 Vote(s) - 0 Average
Using Graphs in C#
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,133
Threads: 957
Joined: May 2006
#1
2013-01-15, 02:41 AM
Can anyone help with some questions from a DirectShow noob.

1) Can anyone suggest a good web tutorial on directshow or calling graphs from c# ?

2) To use graphedit it seems I have to de-register lavvideo.ax Is there a workaound?

3) Has anyone had positive experience with using directshow.net instead of using the sdk?

Thanks.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2013-01-15, 05:18 AM
Quote:2) To use graphedit it seems I have to de-register lavvideo.ax Is there a workaround?
I have to do that to use GraphEdit. Otherwise I use GraphStudioNext. I use a mixture of the two.

Unfortunately I can't answer your questions on using DirectShow from .NET. I use it from C++.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,591
Threads: 386
Joined: Dec 2004
#3
2013-01-15, 06:39 AM (This post was last modified: 2013-01-15, 06:50 AM by bgowland.)
mvallevand Wrote:3) Has anyone had positive experience with using directshow.net instead of using the sdk?
I used DirectShow.Net for the GB-PVR DVB Radio plugin although I've probably forgotten most of it.

Just off to bed now but if you post some specifics of what you want to do, or email me directly, I'll dig out my old code and try to help you out.

DirectShow.NET is basically just a wrapper which uses reflection to access the underlying C++ / COM libraries. I can certainly find some code that will build graphs using C#.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#4
2013-01-15, 10:21 AM
i used DirectShow.net about 5 years ago, I wanted to learn how to make a media centre.

I was able to watch live tv from a analogue capture card, but didnt get recording/timeshifting working. I was more focussed on the graphics side of directshow and rendering over the video stream etc, which I was able to do quite well.

I've completely forgotten most of it, but I do remember it wasn't all that hard to do, docs/help were harder to find since most stuff is in c++ but you could still use a lot of the c++ docs for c#.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,133
Threads: 957
Joined: May 2006
#5
2013-01-15, 04:43 PM
Thanks for the feedback everyone, it probably looks harder than it is. Brian, what I want to do, (only as a last resort) is potentially fix a problem users are experiencing problems with my NetworkRecorder plugin with their Ceton tuners and is to incorporate sub's TS writer into the process. The reason that it is not really appealing is that I won't be able to stop SageDCT from writing the file so for the HD QAM recordings the space requirements and HDD resources are doubled to writing 16GB an hour.

The graph would open a file using as file reader that outputs into a format that sub's TS writer can read, the input and output filenames would be passed parameters. I am not sure if I need to include TS Mon or not.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#6
2013-01-15, 05:16 PM
You might just be able to create graph, insert the 'NPVR TS Reader2' filter, point it at the .ts file being produced by SageDCT, insert the 'NPVR Writer' filter, and connect the two, then play the graph. With any luck it'll run.

You can probably test that in GraphEdit.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,133
Threads: 957
Joined: May 2006
#7
2013-01-15, 05:20 PM
I was trying that last night, but every time I tried to connect the reader and the writer, GraphEdit wanted to put the LAV Splitter in between.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#8
2013-01-15, 05:25 PM
I just tried it here, and they connected fine, and it didn't insert any extra components, but when I hit run GraphEdit crashed. I'll try running it in the debugger later to see if it was something simple, or something more show-stopper-ish.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#9
2013-01-15, 07:14 PM
mvallevand Wrote:I was trying that last night, but every time I tried to connect the reader and the writer, GraphEdit wanted to put the LAV Splitter in between.

Martin
Enable DirectConnect mode in GraphEdit. It will only use the filters that have been manually inserted into the graph.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,133
Threads: 957
Joined: May 2006
#10
2013-01-15, 09:07 PM
Thanks a lot, a definite noob here, with issues with LAV and proppage.dll It took hours to get it running, so every little bit helps.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


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

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

Linear Mode
Threaded Mode