cplussharp / graph-studio-next

GraphStudioNext is a tool for developers to build and test DirectShow Graphs
354 stars 94 forks source link

Edit MediaType/Format for Direct Connect with MediaType #138

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to have this feature in the programm:

Direct Connect with MediaType is a huge step forward... but an Edit 
option/button on the "Select MediaType for connection" dialog that presents an 
editable property grid dialog similar to the uneditable one in the pin 
properties dialog would be even better.  Alternatively, you could make the pin 
properties dialog editable when connected but not running and force a reconnect 
on save.

The feature is important for me because:

Often I'm forced to model things in test applications because I simply can't 
get the filters connected correctly in any graph editor. It often takes a lot 
of trial and error to get the right combination of settings that are accepted 
by both filters and actually do what I want.

The feature is important for other users because:

Quite a few filters only offer AM_MEDIA_TYPEs populated with default values but 
will accept altered versions and behave accordingly.  Some provide property 
tabs to do this but many don't.  Some provide an Interface for it but many 
don't and adding a generic invoke mechanism would likely be harder than this.

One specific example would be the Audio Resampler DMO which won't let you 
choose the output channels, sample rate and bit depth -- which is the whole 
point of the filter.

Anyone who uses this to model anything other than the most simplistic graphs 
will likely have wished for this at some point.

Original issue reported on code.google.com by protoc...@gmail.com on 25 May 2013 at 2:46

GoogleCodeExporter commented 9 years ago
Good feature suggestion. Not sure when I'll get round to it though. A patch 
would be very welcome if you feel like having a go.

Original comment by mike.cop...@gmail.com on 25 May 2013 at 4:23

GoogleCodeExporter commented 9 years ago
I'll give it a go when I get a chance.  My MFC has been rusting in a corner for 
about a decade.  I mostly do a lot of services and libraries so I avoid linking 
MFC.

I think this is mostly just extending a property page that exists already.  
Actually letting you construct a new MediaType from scratch and choose the 
format and specify extra data... that would be harder as it would need a new 
UI. It might come in handy when connecting two filters that don't advertise 
anything, however.

Original comment by protoc...@gmail.com on 25 May 2013 at 7:10

GoogleCodeExporter commented 9 years ago
I'm increasing the priority of this one. May require doing some work on the 
property items to make them editable.

Original comment by mike.cop...@gmail.com on 21 Jun 2013 at 12:34

GoogleCodeExporter commented 9 years ago

Original comment by mike.cop...@gmail.com on 12 Jul 2013 at 2:46

GoogleCodeExporter commented 9 years ago
To be useful, the edit media type dialog would probably need to be a normal 
dialog that understands and can edit different types of format block - perhaps 
different dialogs for video/audio etc.

Original comment by mike.cop...@gmail.com on 3 Apr 2014 at 3:52

GoogleCodeExporter commented 9 years ago

Original comment by mike.cop...@gmail.com on 21 May 2014 at 9:58