<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 4.2.0</li>
<li>Operating System / Platform =&gt; Linux x86 (cross compiling to ARMv7)</li>
<li>Compiler =&gt; GNU 8.2.1</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/opencv/opencv/blob/8808aaccffaec43d5d276af493ff408d81d4593c/modules/videoio/cmake/detect_ffmpeg.cmake#L27">opencv/modules/videoio/cmake/detect_ffmpeg.cmake</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 27
      in
      <a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/8808aaccffaec43d5d276af493ff408d81d4593c">8808aac</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L27" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="27"></td>
          <td id="LC27" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span>(<span class="pl-k">NOT</span> HAVE_FFMPEG <span class="pl-k">AND</span> PKG_CONFIG_FOUND) </td>
        </tr>
    </tbody></table>
  </div>
</div>
<br>
<code class="notranslate">PKG_CONFIG_FOUND</code> here is always false, since <code class="notranslate">include(FindPkgConfig)</code> was never called after the fix in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="437648383" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/14426" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/14426/hovercard" href="https://github.com/opencv/opencv/pull/14426">#14426</a>.<p></p>

<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Run cmake with <code class="notranslate">-DWITH_FFMPEG=ON</code> after setting the environment variable <code class="notranslate">PKG_CONFIG_PATH</code> to the target dir.<br>
Result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--   Video I/O:
--     DC1394:                      NO
--     FFMPEG:                      NO
--       avcodec:                   NO
--       avformat:                  NO
--       avutil:                    NO
--       swscale:                   NO
--       avresample:                NO"><pre class="notranslate"><code class="notranslate">--   Video I/O:
--     DC1394:                      NO
--     FFMPEG:                      NO
--       avcodec:                   NO
--       avformat:                  NO
--       avutil:                    NO
--       swscale:                   NO
--       avresample:                NO
</code></pre></div>
<p dir="auto">After adding <code class="notranslate">include(FindPkgConfig)</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--   Video I/O:
--     DC1394:                      NO
--     FFMPEG:                      YES
--       avcodec:                   YES (58.54.100)
--       avformat:                  YES (58.29.100)
--       avutil:                    YES (56.31.100)
--       swscale:                   YES (5.5.100)
--       avresample:                NO"><pre class="notranslate"><code class="notranslate">--   Video I/O:
--     DC1394:                      NO
--     FFMPEG:                      YES
--       avcodec:                   YES (58.54.100)
--       avformat:                  YES (58.29.100)
--       avutil:                    YES (56.31.100)
--       swscale:                   YES (5.5.100)
--       avresample:                NO
</code></pre></div>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 3.4.0</li>
<li>Operating System / Platform =&gt; Windows 64 Bit</li>
<li>Compiler =&gt; Visual Studio 2017 Express</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Various problems with the coding of SBM_Sample.cpp.</p>
<p dir="auto">Quoted from <a href="http://answers.opencv.org/question/183414/sbm_samplecpp-is-this-disparity-map-correct/" rel="nofollow">here</a>:</p>
<ol dir="auto">
<li>The default images should be changed from the rubberwhale images (optical flow test images) to rectified left and right images (e.g. aloeL.jpg and aloeR.jpg).</li>
<li>An appropriate minDisparity and numDisparities should be updated to match the new default images. (e.g. numDisparities = 16x10 instead of 16x5)</li>
<li>Program ignores its image parameters - if this is intentional, then remove mention of parameters. If it is not, then add and test support for them.</li>
<li>Any references to the example should be found and updated, and if there's a test that runs this program, the test should be updated as well.</li>
</ol>

<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Look at the code of SBM_Sample.cpp</p>