VideoHelp Forum


Try StreamFab All-in-One and rip streaming video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Hello everyone,

    Could you tell me - is it possible to capture video from the SVEN IC-350 webcam via ffmpeg?

    ffmpeg succesfully displays the options:
    Code:
    PS D:\temp> & ffmpeg -list_options true -f dshow -i video="USB2.0 Camera"
    ffmpeg version 4.3.2-2021-02-27-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
      built with gcc 10.2.0 (Rev6, 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-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
      libavutil      56. 51.100 / 56. 51.100
      libavcodec     58. 91.100 / 58. 91.100
      libavformat    58. 45.100 / 58. 45.100
      libavdevice    58. 10.100 / 58. 10.100
      libavfilter     7. 85.100 /  7. 85.100
      libswscale      5.  7.100 /  5.  7.100
      libswresample   3.  7.100 /  3.  7.100
      libpostproc    55.  7.100 / 55.  7.100
    [dshow @ 000001f953e0d640] DirectShow video device options (from video devices)
    [dshow @ 000001f953e0d640]  Pin "Запись" (alternative pin name "0")
    [dshow @ 000001f953e0d640]   pixel_format=yuyv422  min s=640x480 fps=30 max s=640x480 fps=30
    [dshow @ 000001f953e0d640]   pixel_format=yuyv422  min s=640x480 fps=30 max s=640x480 fps=30
    [dshow @ 000001f953e0d640]   pixel_format=yuyv422  min s=160x120 fps=30 max s=160x120 fps=30
    [dshow @ 000001f953e0d640]   pixel_format=yuyv422  min s=160x120 fps=30 max s=160x120 fps=30
    [dshow @ 000001f953e0d640]   pixel_format=yuyv422  min s=320x240 fps=30 max s=320x240 fps=30
    [dshow @ 000001f953e0d640]   pixel_format=yuyv422  min s=320x240 fps=30 max s=320x240 fps=30
    [dshow @ 000001f953e0d640]   pixel_format=yuyv422  min s=176x144 fps=30 max s=176x144 fps=30
    [dshow @ 000001f953e0d640]   pixel_format=yuyv422  min s=176x144 fps=30 max s=176x144 fps=30
    [dshow @ 000001f953e0d640]   pixel_format=yuyv422  min s=352x288 fps=30 max s=352x288 fps=30
    [dshow @ 000001f953e0d640]   pixel_format=yuyv422  min s=352x288 fps=30 max s=352x288 fps=30
    However, I can't capture video from it, every time I get I/O error:
    Code:
    PS D:\temp> & ffmpeg -f dshow -video_size 320x240 -i video="USB2.0 Camera" usb20cam.mp4 -y
    ffmpeg version 4.3.2-2021-02-27-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
      built with gcc 10.2.0 (Rev6, 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-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
      libavutil      56. 51.100 / 56. 51.100
      libavcodec     58. 91.100 / 58. 91.100
      libavformat    58. 45.100 / 58. 45.100
      libavdevice    58. 10.100 / 58. 10.100
      libavfilter     7. 85.100 /  7. 85.100
      libswscale      5.  7.100 /  5.  7.100
      libswresample   3.  7.100 /  3.  7.100
      libpostproc    55.  7.100 / 55.  7.100
    Input #0, dshow, from 'video=USB2.0 Camera':
      Duration: N/A, bitrate: N/A
        Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 30 fps, 30 tbr, 10000k tbn, 10000k tbc
    Stream mapping:
      Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    video=USB2.0 Camera: I/O error
    [libx264 @ 0000028e11bcf3c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0000028e11bcf3c0] profile High 4:2:2, level 1.3, 4:2:2, 8-bit
    [libx264 @ 0000028e11bcf3c0] 264 - core 161 r3048 b86ae3c - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'usb20cam.mp4':
      Metadata:
        encoder         : Lavf58.45.100
        Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv422p, 320x240, q=-1--1, 30 fps, 10000k tbn, 30 tbc
        Metadata:
          encoder         : Lavc58.91.100 libx264
        Side data:
          cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
    video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    At the same time, the camera correctly works in Skype, in the built-in Camera app in Windows, etc.
    Changing ffmpeg version doesn't help.
    Is there a solution for ffmpeg?
    Thanks in advance.
    Last edited by Viacheslav; 29th Mar 2021 at 03:59.
    Quote Quote  
  2. video=USB2.0 Camera: I/O error
    Is camera concurrently being accessed by other applications ? If so, shut them down and try again

    Do you have permission to write to D:\temp ? Try another path location to write
    Quote Quote  
  3. poisondeathray, thank you for the response.

    No, the camera is not busy, all apps are closed.
    Tried to change output folder to Documents in my profile - no effect.
    Quote Quote  



Similar Threads