locked
How to add a custom Media Sink?

    Question

  • Hi,

     

    How can I add a custom sink to the pipeline. There seems to be way for source/transform to be added but no sink. My work is to apply some custom video/audio effects and then save to a local file (something like MFDub)

     

    Thanks


    • Edited by Ciger Tuesday, October 11, 2011 3:08 AM
    Tuesday, October 11, 2011 2:52 AM

All replies

  • Hey Ciger,

    Please stay tuned. We are working on more getting more information exposed in this area. I assume you have seen the talk by Stan Pennington which touches briefly on the Media Sink? (slide 28 of the presentation)

    http://channel9.msdn.com/events/BUILD/BUILD2011/PLAT-783T

    Are these the new API's you were looking at?

    http://msdn.microsoft.com/en-us/library/windows/apps/br226617(v=VS.85).aspx

    http://msdn.microsoft.com/en-us/library/windows/apps/br226614(v=VS.85).aspx

     

    Thanks,

    -David

     

     

    Wednesday, October 12, 2011 11:21 PM
    Moderator
  • Hi David,

     

    Thanks for the info. 783 is a great presentaion, but the slide you mentioned is more of how to make a new sink for Metro than how to use it (add it to pipeline through what?).

     

    Legacy MF stuffs like IMFTopology/IMFMediaSession seem to have been removed from MF for WinRT. I just have problems finding the basic ideas how the MF pipeline should be constructed/controlled in Metro style apps.

     

    Will be stay tuned.

    Thanks again,

    Ciger

    Thursday, October 13, 2011 5:19 AM
  • I also need a way to construct/control Media pipeline in Metro style apps, such as select specified audio/video decoders(MS or Our own), insert video/audio effect at specified order/position. A thing like "topology" for  "Media Session" on desktop APP, to full control the data flows in the pipeline.
    Wednesday, October 26, 2011 5:33 AM
  • So I've had some discussions with the Windows Multimedia team on the above.

    @Ciger You can add a custom WinRT Media Sink in a few of the MediaCapture class methods:

    http://msdn.microsoft.com/en-us/library/windows/apps/windows.media.capture.mediacapture(v=VS.85).aspx

     

    The MediaTranscoder class does not have the ability to use of a custom Media sink if that was the scenario you were considering.

     

    @Ciger, @wb0330 Stan mentions in his talk linked above (plat-783) 13:00 thru 13:30 that you do not get access to the Media Session Topology.

     

    Keep in mind this is a Developer Preview, so if you find there is a scenario that is blocked due to a missing feature, please let us know.

     

    Thanks,

    -David

     

    Monday, October 31, 2011 11:21 PM
    Moderator
  • David,

    Me too like wb0330 need to have more control on the media pipeline in WinRT.

    I understand that, in the current developer preview, it would not be possible to develop say a basic video editor like Windows Live Movie Maker.

    It is infortunate because I think Metro is very well suited to make great UI for media creation app.

    My question, does the rtm version of WinRT will have enought capabilities to support such a scenario ?

    Thanks a lot

    Frédéric

     


    Sunday, November 06, 2011 10:00 PM