title: MediaCapture VideoStabilization fails with 0xC00D4A3E
body: <p>I'm working on a video recording app that supports the <a href="https://msdn.microsoft.com/en-us/library/windows/apps/windows.media.core.videostabilizationeffect.aspx" rel="nofollow">VideoStabilization effect</a>, but when I start recording, I receive the following through the MediaCapture.Failed event almost instantly:</p>
  
  <blockquote>
    <p>The sample allocator is currently empty, due to outstanding requests.
    (0xC00D4A3E)</p>
  </blockquote>
  
  <p>It only happens when I use the recommended configuration from the effect, though. If I don't call <code>SetUpVideoStabilizationRecommendationAsync</code>, it works fine.</p>
  
  <p>Here is how I'm setting it up:</p>
  
  <pre><code>    private MediaEncodingProfile _encodingProfile = MediaEncodingProfile.CreateMp4(VideoEncodingQuality.Auto);
  
      private async Task CreateVideoStabilizationEffectAsync()
      {
          var definition = new VideoStabilizationEffectDefinition();
  
          _videoStabilizationEffect = (VideoStabilizationEffect)await _mediaCapture.AddVideoEffectAsync(definition, MediaStreamType.VideoRecord);
          _videoStabilizationEffect.Enabled = true;
  
          await SetUpVideoStabilizationRecommendationAsync();
      }
  
      private async Task SetUpVideoStabilizationRecommendationAsync()
      {
          var properties = _mediaCapture.VideoDeviceController.GetMediaStreamProperties(MediaStreamType.VideoRecord) as VideoEncodingProperties;
          var recommendation = _videoStabilizationEffect.GetRecommendedStreamConfiguration(_mediaCapture.VideoDeviceController, properties);
  
          if (recommendation.InputProperties != null)
          {
              await _mediaCapture.VideoDeviceController.SetMediaStreamPropertiesAsync(MediaStreamType.VideoRecord, recommendation.InputProperties);
          }
  
          if (recommendation.OutputProperties != null)
          {
              _encodingProfile.Video = recommendation.OutputProperties;
          }
      }
  
      private async Task StartRecordingAsync()
      {
          var videoFile = await KnownFolders.PicturesLibrary.CreateFileAsync("StableVideo.mp4", CreationCollisionOption.GenerateUniqueName);
          await _mediaCapture.StartRecordToStorageFileAsync(_encodingProfile, videoFile);
      }
  </code></pre>