title: ffmpeg webcam stream on windows to sdl
body: <p>Hi I am trying to display webcam stream on windows.</p>
  <p>I can use &quot;ffplay&quot; but I want to use &quot;ffmpeg&quot; command.</p>
  <pre><code>c:\&gt;ffmpeg -f dshow -i video=&quot;USB2.0 VGA UVC WebCam&quot; -f sdl test
  ffmpeg version 2020-12-27-git-bff6fbead8-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
    built with gcc 10.2.0 (Rev5, Built by MSYS2 project)
    configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
    libavutil      56. 62.100 / 56. 62.100
    libavcodec     58.115.102 / 58.115.102
    libavformat    58. 65.100 / 58. 65.100
    libavdevice    58. 11.103 / 58. 11.103
    libavfilter     7. 94.100 /  7. 94.100
    libswscale      5.  8.100 /  5.  8.100
    libswresample   3.  8.100 /  3.  8.100
    libpostproc    55.  8.100 / 55.  8.100
  Input #0, dshow, from 'video=USB2.0 VGA UVC WebCam':
    Duration: N/A, start: 92136.240000, bitrate: N/A
      Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 30 fps, 30 tbr, 10000k tbn, 10000k tbc
  Stream mapping:
    Stream #0:0 -&gt; #0:0 (rawvideo (native) -&gt; rawvideo (native))
  Press [q] to stop, [?] for help
  Output #0, sdl,sdl2, to 'test':
    Metadata:
      encoder         : Lavf58.65.100
      Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422(progressive), 640x480, q=2-31, 147456 kb/s, 30 fps, 30 tbn
      Metadata:
        encoder         : Lavc58.115.102 rawvideo
  av_interleaved_write_frame(): Operation not permitted
  frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.03 bitrate=N/A speed=0.448x
  video:600kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  Conversion failed!
  </code></pre>
  <p>The following works though:</p>
  <pre><code>ffmpeg -i file.webm -f sdl test
  </code></pre>
  <p>Any ideas why the failure?</p>