Latest post Wed, Jan 17 2018 10:43 AM by Raphael Legrand. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • Fri, Jan 12 2018 3:53 PM

    Providing compressed video frames using the ISampleProvider2 interface

    Hi all,

    I am writing an AMA plugin that needs to provide compressed video frames in formats that are natively supported by Media Composer (DNxHD, XDCAMHD etc.). As media files need to be accessed using custom IO API, I need to implement the ISampleProvider2 interface.

    I started to write some evaluation code that reads a raw DNxHD file and provides samples thru the ISampleProvider2 interface. Problem: I did not find the right configuration to provide compressed video frames, but only uncompressed ones.

    My current assumption is that if the IUncompressedImageProvider interface is not implemented, then Composer should expect compressed essence as defined in the AAF… But if I do not implement it, then Media Composer displays “Exception: A serious error has occured! It is recommended that you restart the application immediately” when trying to play the clip, just after querying the interface. If I implement IUncompressedImageProvider, then Media Composer works fine but expects uncompressed video frames: I tried to fillup frame buffers with uncompressed/dummy data and it plays OK.

    I first suspected the “Serious error” to be related to something wrong in my AAF, so I implemented the full ISampleMapping interface and disabled the ISampleProvider one. Like this it works fine, I am able to play my raw DNxHD file in Composer. At least I am now assuming essence description in the AAF is valid, but ISampleMapping does not fulfill the requirements.

    So what is the right way to tell Composer that video is compressed when using ISampleProvider2 interface? Is it supported? Could anyone help with this?

    Kind regards,

    Raphael Legrand

    Media Composer version: 8.9.3 - AMA SDK version 3.2

  • Tue, Jan 16 2018 7:04 PM In reply to

    • BobRusso
    • Top 50 Contributor
    • Joined on Thu, Oct 13 2005
    • New Jersey
    • Posts 2,436
    • Points 30,240
    • ! Avid Employee
      Moderator: Avid ISIS
      Moderator: Avid NEXIS & NEXIS EDGE
      Moderator: Avid Storage Products

    Re: Providing compressed video frames using the ISampleProvider2 interface

    AMA Sample Provider is only for uncompressed fames, not compressed ones. Sample Mapper is the only AMA interface for compressed bit streams that Avid currently offers to 3rd party plug-ins.

     

    https://www.youtube.com/avidevangelistbob [view my complete system specs]

    -- Bob Russo Post-Production Workflow Manager - NFL Films

    Bob Russo on Expert Connections

  • Wed, Jan 17 2018 10:43 AM In reply to

    Re: Providing compressed video frames using the ISampleProvider2 interface

    Ok, thanks for your reply.

    Regards

    Raphael

Page 1 of 1 (3 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller