Media extensions sample

This sample demonstrates how to use media extensions to apply effects to video, decode video, and create media streams using scheme handlers.

 
 
 
 
 
(7)
18,870 times
Add to favorites
4/2/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • DevCenter Error 2001 code
    1 Posts | Last post Fri 10:26 PM
    • I am able to use this locally on the emulator and work great, but as many have experienced, I get the CrossGen failed error for all the WinRT components referenced (after inspecting MDILXapCompileLog.txt) when deploying to device.
      
      I packaged it up anyways and published a beta, sure enough I get the error 2001 (extra files in Manifest) rejection.
      
      To further isolate the issue to this sample, I created another beta and pushed a clean build of the sample and it fails as well. I inspected the Manifest, but do not see any duplicates.
      
      @venetasoft
      I've been following you guys for a while now and love the app, did you experience this error publishing? How did you overcome it?
  • Output As NV 12 Content
    1 Posts | Last post September 12, 2014
    • Hey I want to ouput as NV 12 content is supported by MFT. So can please let me know  how can i achieve that to show a video as NV12 format.
  • why? c++ sample
    2 Posts | Last post August 14, 2014
    • xamltypeinfo.g.cpp(80): error C2039: 'LocalDecoder' : is not a member of 'SDKSample::MediaExtensions'
      xamltypeinfo.g.cpp(80): error C2061: syntax error : identifier 'LocalDecoder'
      xamltypeinfo.g.cpp(92): error C2039: 'LocalSchemeHandler' : is not a member of 'SDKSample::MediaExtensions'
      xamltypeinfo.g.cpp(92): error C2061: syntax error : identifier 'LocalSchemeHandler'
      xamltypeinfo.g.cpp(104): error C2039: 'VideoStabilizationEffect' : is not a member of 'SDKSample::MediaExtensions'
      xamltypeinfo.g.cpp(104): error C2061: syntax error : identifier 'VideoStabilizationEffect'
      xamltypeinfo.g.cpp(116): error C2039: 'CustomEffects' : is not a member of 'SDKSample::MediaExtensions'
      xamltypeinfo.g.cpp(116): error C2061: syntax error : identifier 'CustomEffects'
    • Please update the VS 2013 update 3.
  • Breakpoints in c++ not working
    1 Posts | Last post July 15, 2014
    • Symbols are not loaded for the c++ graystyle project.  Not sure how to fix it...it's in Debug win32.
  • How to debug Media Extension issues on Windows Phone?
    1 Posts | Last post June 05, 2014
    • Hi, I tried creating a trivial IMFTransform/IMediaExtension that just copies input to output. 
      
      I made it accept only MFVideoFormat_ARGB32.
      
      It works as expected when used in MediaElement, but fails when used with MediaComposition (on WP 8.1). I added traces to every call and I can see that ProcessOutput gets called once successfully, producing output, but fails after second call (which returns MF_E_TRANSFORM_NEED_MORE_INPUT) with MF_MEDIA_ENGINE_ERR_DECODE and 0x80004005. I do understand that MF_E_TRANSFORM_NEED_MORE_INPUT is returned normally every second time, but I fail to understand why is it failing with MediaComposition.
      
      How can I find out why this is failing? 
      
      Thanks
  • C#/C++ project WP8.1 device ARM deployment error
    2 Posts | Last post June 04, 2014
    • This sample works fine on the emulator, but when I try to deploy it to my phone, I get an Error DEP0001: Element not found.  This happens with Debug or Release.
    • Apologies, this likely has nothing to do with the solution.  It's now happening to all my solutions.
  • Using with Windows.Media.Editing.MediaComposition
    1 Posts | Last post June 03, 2014
    • Hi,
      
      I'm trying to run InvertTransform from the sample by adding it to MediaComposition on Windows Phone 8:
      
      var composition = new MediaComposition();
      var file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///videos/test.mp4"));
      var clip = await MediaClip.CreateFromFileAsync(file);
      clip.VideoEffectDefinitions.Add(new VideoEffectDefinition("InvertTransform.InvertEffect"));
      composition.Clips.Add(clip);
      
      This fails, probably because video subtype is MFVideoFormat_NV12 while effect is handling only MFVideoFormat_ARGB32.
      
      How can invert transform be used in this scenario? Does it have to be changed to support MFVideoFormat_NV12 and how best to accomplish this?
      
      Thanks you,
      Ivan
  • @Marcin Stankiewicz - MSFT
    5 Posts | Last post May 11, 2014
    • Hi,
          if I set to Release-ARM, when I deploy the wp8.1 project to my Lumia 1520/1020 I got the error:
      
      CrossGen failed
      Error processing assembly F:\Downloads\Dev\Samples\RT8.1\Windows 8.1 Store app samples\@Media extensions sample\C# and C++\WindowsPhone\obj\ARM\Release\MSIL\GeometricSource_WindowsPhone.winmd
      Raw error code: 2148737029
      
      All is fine with Debug-ARM and x86/Emulator...
      
      What am I missing...?
      
      I really urge to get it work... ;)
      Thank you very much for your support !!
      
      Best Regards,
      David
    • I played with the project a little and it looks like for release-arm those mf extension binaries have to have public classes in the winmd files.
      
      I've found a workaround:
      I added to GeometricSource, GrayscaleTransform, InvertTransform, Mpeg1Decoder, Mpeg1Source and InvertTranform following piece of code:
      
      namespace GeometricSource // Change the namespace to a project name.
      {
          public ref class Dummy sealed
          {
          public:
              property int DummyProp {int get() {return 0;}}
          };
      }
      
      Then I updated property of the each project "Configuration Properties->Linker->Windows Metadata-> Windows Metadata File" to $(OutDir)$(TargetName).winmd (or you could change the root namespace to a project name without _WindowsPhone suffix).
      
    • @Marcin thank you a lot for your help!!
      I followed your guide but unfortunately I have compiler errors now :(...
      Could you please update the sample so we can download it again...?
      
      Thank you again for your help.
      
      Best Regards,
      David
      
    • @@Marcin thank you a lot for your help!!
      
      Could you please update the official sample with a 100% working one (wp8 arm/release too) ?
      
      Thank you again for your help.
      
      Best Regards,
      David
      
    • Ok solved, thank you :)
  • Is the local video decoder broken in current sample?
    2 Posts | Last post May 07, 2014
    • I'm testing the Windows 8.1 + Windows Phone 8.1 'Universal' version updated April 2, 2014; tried both the all-C++ version and the C++/JavaScript. Using the provided video.mpg sample file, I see only a green rectangle over a purple rectangle.
      
    • The fake decoder from the sample just outputs a static image. That is by design.
  • Microsoft...?
    1 Posts | Last post April 30, 2014
    • Someone to answer our questions please :) ??
1 - 10 of 18 Items