VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member
    Join Date
    Sep 2022
    Location
    Viet Name
    Search Comp PM
    I'm trying to capture video from webcam. I tried with codec libx264 and rawvideo but both result in slow speed (about 0.5).
    I'm using Windows 10, intel core i5, 8gb ram. download ffmpeg from: https://www.gyan.dev/ffmpeg/builds/
    I use this command:
    Code:
    ffmpeg ^
      -f dshow -r 5 -s 640x480 -i video="Sony Visual Communication Camera" ^
      -f rawvideo output.raw
    output:
    Image
    [Attachment 66797 - Click to enlarge]


    task manager: cpu, ram, disk basically low.

    If I try recoding with command above and change fps to 30: "-r 30" . the result is: fps 7.9, speed 0.261. cpu usage is still low about 0.1%.

    But I can easily record 30fps webcam using Directshow GraphEdit:
    Image
    [Attachment 66798 - Click to enlarge]


    So my question is why does ffmpeg produce such poor performance even with 5 fps? Any help is appreciated.
    Quote Quote  
  2. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by irous View Post
    I'm trying to capture video from webcam. I tried with codec libx264 and rawvideo but both result in slow speed (about 0.5).
    I'm using Windows 10, intel core i5, 8gb ram. download ffmpeg from: https://www.gyan.dev/ffmpeg/builds/
    I use this command:
    Code:
    ffmpeg ^
      -f dshow -r 5 -s 640x480 -i video="Sony Visual Communication Camera" ^
      -f rawvideo output.raw
    output:
    Image
    [Attachment 66797 - Click to enlarge]


    task manager: cpu, ram, disk basically low.

    If I try recoding with command above and change fps to 30: "-r 30" . the result is: fps 7.9, speed 0.261. cpu usage is still low about 0.1%.

    But I can easily record 30fps webcam using Directshow GraphEdit:
    Image
    [Attachment 66798 - Click to enlarge]


    So my question is why does ffmpeg produce such poor performance even with 5 fps? Any help is appreciated.
    try ffmpeg -f dshow -s 640x480 -r 30 see here - https://www.bogotobogo.com/VideoStreaming/ffmpeg_webcam_capture_Windows_Linux.php
    Quote Quote  
  3. Member
    Join Date
    Sep 2022
    Location
    Viet Name
    Search Comp PM
    @october262 I believe I said trying with -r 30 in my first post. But unfortunately, it didn't work. the speed is around 0.3 and fps is 8.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!