title: How to solve OpenCV Error "function not implemented (called functionality is disabled for current build or platform) when using VideoWriter_GPU?
body: <h1>Question Intro</h1>
  
  <p>I'm running an opencv project in Visual Studios 2010 and have implemented cuda support (refer to <a href="https://stackoverflow.com/a/16037768/2257078">my previous question</a> for precise info on my set-up). All cuda-functionalities are working fine - to the best of my knowledge - and are indeed improving speed on the image processing. </p>
  
  <p>However, I now also wanted to attemp to speed up the video-writing function in this project by replacing the current cv::VideoWriter with the gpu::VideoWriter_GPU function. The reason for this is that the cv::VideoWriter seems to somehow cause processes running <em>outside of the scope in which the VideoWriter is called</em> to be slowed down, resulting in images available at the DirectShow driver being dropped by the VideoCapture-function, hence messing up an algorithm I've implemented. </p>
  
  <h1>Problem</h1>
  
  <p>To attempt to solve this issue, I've now replaced the VideoWriter-calls with VideoWriter_GPU-functionality (and corresponding syntax), but when I run my project (Compile &amp; Run in Debug-mode), I get the following error-message (directly originating atthe calling of gpu::VideoWriter_GPU):</p>
  
  <pre><code>OpenCv Error: The function/feature is not implemented (The called functionality 
  is disabled for current build or platform) in unknown function, file 
  c:slave\builds\wininstallermegapack\opencv\modules\gpu\src\precomp.hpp, line 131.
  </code></pre>
  
  <p>and the program then ends with</p>
  
  <pre><code>   code -529697949 (0xe06d7363)
  </code></pre>
  
  <p>I've purposely currently not included any of my code because the error-message originates so clearly from the call to the gpu::VideoWriter_GPU, which is making me think it's not a coding or syntax problem. (Please comment if you feel my code is necessary for answering this question.</p>
  
  <h1>My steps so far</h1>
  
  <p>I miss the natural gift of understanding what precisely this message means or how to interpret it. Does my opencv v2.4.4 simply not support what I want...? Does this function simply not work on my windows 7, 64bit system...?</p>
  
  <p>I've checked out as many available google-hits I could find (relating to this error message and combinations of searchterms like "opencv, gpu, VideoWriter_GPU, disabled for current build") but have not understood what the problem is or how to solve it. </p>
  
  <p>Corresponding header-file and error message can also be found <a href="http://fossies.org/linux/misc/OpenCV-2.4.4a.tar.gz:a/opencv-2.4.4/modules/gpu/src/precomp.hpp" rel="nofollow noreferrer">here</a>.</p>
  
  <p><a href="https://stackoverflow.com/questions/11175794/opencv-surf-function-is-not-implemented">This post</a> and <a href="https://stackoverflow.com/questions/13246094/opencv-2-4-3-javacv-0-3-facerecognizer-class-lbph-update-function-still">this post</a> suggest the error message is trying to tell me that opencv simply does not provide the option of using the function or functionality I am aiming to use. Or maybe even that cuda is not at all supported.. But that's all against my experience as every single opencv gpu-function I've tried to use has seemed to work fine.</p>
  
  <h1>Question</h1>
  
  <p>Could someone please explain to me why this is not working for me, and more importantly share with me what I should do to make the VideoWriter_GPU work?</p>
  
  <hr>
  
  <p>Many thanks!</p>