Chad Gibson's Weblog

Windows Digital Media Madness

How do you use DirectShow?

I'm still in survey mode, but I'd like to get some feedback on how people are utilizing this technology today:

1) Do you use Directshow Editing Surfaces for any multimedia editing tasks in your application?

2) Are you using Directshow for file playback?  Or do you use lower level APIs (such as WaveOut) or higher level APIs (such as the Windows Media Player object model)?

If there was 1 feature you would add to Directshow, what would it be?

 

Published Monday, May 24, 2004 8:30 AM by ccgibson

Comments

 

Stephane Rodriguez said:


A useable sample grabber. If you create your own video renderer (based on the sampvid video renderer), then you'll have problems getting it to work on a cross-OS basis. Alternatively, if you take the sample grabber alternative, you'll find yourself needlessly connecting pins.

Said in other words, the IMultimediaStream interfacew were great because they allowed to get you up to speed without having to first understand the ins and outs of pins which, as many people have said in many newsgroups, are not enough documented (especially when it comes to troubleshooting the connection with existing directshow filters).

May 24, 2004 11:19 AM
 

Stephane Rodriguez said:


Also of interest would be an easy activation of a tracing mode of internals media samples getting through the filters, even when you are in release mode. This would help a lot.
May 24, 2004 11:22 AM
 

Stephane Rodriguez said:


A set of interfaces that hide that you are hiding DirectShow filters or Windows media codecs as part of the rendering graph, especially in those situations where all you need is render your stuff.
May 24, 2004 11:23 AM
 

Stephane Rodriguez said:


A fixed graph editor (or the source code for it). A fixed graph editor would greatly help preparing your filters before you write the equivalent code. More often than not, your graph of filters will work, while the equivalent code won't, for non obvious reasons. Typical things that go hidden are the async clocks (audio, ...).

Bonus, generate code in the language of your choice from an existing graph, all within the graph editor. (of course, generating MSIL should be enough). This would give the box flow sequences a more "media orchestration" meaning.


May 24, 2004 11:26 AM
 

Michael Carr said:

Using GraphEdit, I'm building a graph that renders a Type-2 DV AVI out to the camera. During playback, I'd like to be able to seek the stream to any position. If I build this filter for a Type-1 DV AVI, I can seek using the drag-bar at the top of GraphEdit just fine:

Async File --> AVI Splitter --> Output Device

However, if I build this filter for Type-2 DV AVI, suddenly the drag bar is useless!

Async File --> AVI Splitter --> DV Mux --> Output Device

Apparently, DVMux's IMediaSeeking only supports CanPlayBackwards. Can you please extend the built-in DV Mux filter so it supports positioning via IMediaSeeking?! I don't see why it shouldn't...?
May 24, 2004 11:53 AM
 

Robert said:

I use the DirectShow Editing Services (DES) API extensively, for a software project at a HUGE company.

I'm concerned it won't be supported in future releases of Microsoft operating systems. Is there any news on that?
July 2, 2004 8:18 AM
 

George said:

How about making it work in the first place?

I searched with Google and found more than 10 posts in news groups, let alone websites concerning IMediaSeeking::SetPositions(), especially with AM_SEEKING_SeekToKeyFrame set. Everything seems to return S_OK yet the seek is done to the frame specified in pCurrent if AbsolutePositioning is set or not at all if not.

Yet, noone can shed any light on the issue. I would say that instead of adding features MS should sanitise DirectShow a little because many thngs including the one I just posted makes any sense, not according to the documents anyway. While i'm at it, the keyframe flag of ISample is rarely set correctly.

Some of this is indeed error of the codec/filter/whatever but this means that the knowledgebase is broken! The documents have insufficient information and the samples inconsistent. Some of them even use improper code. Does MS have a validation process for the documentation/samples? They should.

A frustrated programmer.
July 4, 2004 2:53 PM
 

HDTV Info said:

Does anybody know why in directshow editing services video playback
quality is so much degraded?
July 25, 2004 4:48 PM
 

Jaz said:

chad, where are you
August 10, 2004 3:05 AM
 

Chad Gibson s Weblog How do you use DirectShow | Shed Kits said:

May 26, 2009 11:46 PM
Anonymous comments are disabled

This Blog

Syndication

Tags

No tags have been created or used yet.

News

These postings are provided "AS IS" with no warranties, and confer no rights.

Archives


© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker