Command line tool to capture webcam video in Windows Xp












5














I want to know how to capture webcam video and dump the raw as well as an encoded version using ffmpeg. I want only the video stream. I'm on Windows xp.










share|improve this question
























  • Are you partial to ffmpeg or are you looking for any command line tool?
    – heavyd
    Feb 9 '10 at 18:18










  • any cmd line tool will do..i think most use ffmpeg somehow..please correct me
    – iceman
    Feb 10 '10 at 2:40
















5














I want to know how to capture webcam video and dump the raw as well as an encoded version using ffmpeg. I want only the video stream. I'm on Windows xp.










share|improve this question
























  • Are you partial to ffmpeg or are you looking for any command line tool?
    – heavyd
    Feb 9 '10 at 18:18










  • any cmd line tool will do..i think most use ffmpeg somehow..please correct me
    – iceman
    Feb 10 '10 at 2:40














5












5








5


3





I want to know how to capture webcam video and dump the raw as well as an encoded version using ffmpeg. I want only the video stream. I'm on Windows xp.










share|improve this question















I want to know how to capture webcam video and dump the raw as well as an encoded version using ffmpeg. I want only the video stream. I'm on Windows xp.







webcam ffmpeg video-capture






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 9 '10 at 18:10

























asked Jan 23 '10 at 21:19









iceman

1,227144073




1,227144073












  • Are you partial to ffmpeg or are you looking for any command line tool?
    – heavyd
    Feb 9 '10 at 18:18










  • any cmd line tool will do..i think most use ffmpeg somehow..please correct me
    – iceman
    Feb 10 '10 at 2:40


















  • Are you partial to ffmpeg or are you looking for any command line tool?
    – heavyd
    Feb 9 '10 at 18:18










  • any cmd line tool will do..i think most use ffmpeg somehow..please correct me
    – iceman
    Feb 10 '10 at 2:40
















Are you partial to ffmpeg or are you looking for any command line tool?
– heavyd
Feb 9 '10 at 18:18




Are you partial to ffmpeg or are you looking for any command line tool?
– heavyd
Feb 9 '10 at 18:18












any cmd line tool will do..i think most use ffmpeg somehow..please correct me
– iceman
Feb 10 '10 at 2:40




any cmd line tool will do..i think most use ffmpeg somehow..please correct me
– iceman
Feb 10 '10 at 2:40










3 Answers
3






active

oldest

votes


















8














From here, you can see a list of DirectShow devices with



ffmpeg -list_devices true -f dshow -i dummy


If you have a built-in webcam on a laptop, it should be called something like `"Integrated Camera", and you can capture from it using the following (obviously, substitute the name of your webcam device, and note that the quotes are required):



ffmpeg -f dshow -i video="Integrated Camera" -c copy raw.avi 
-c:v libx264 -preset veryfast -crf 25 encoded.mp4


You may be better off using huffyuv instead of raw video - it'll halve your filesize, but be completely lossless. Use -c:v huffyuv instead of -c copy.






share|improve this answer























  • Just used this to get headshots of someone who stole a number of PCs. Thank you, as this will surely result in an arrest at this point.
    – Beems
    Jan 18 at 21:31



















2














Looks like you can do that using VLC, i.e.



vlc --dshow-vdev="Monitor Webcam" --dshow-size=640x480 -V dummy 
--intf=dummy --dummy-quiet --video-filter=scene --no-audio
--scene-path=D:temp --scene-format=jpeg --scene-prefix=snap
--scene-replace --run-time=1 --scene-ratio=24 "dshow://" vlc://quit





share|improve this answer





























    0














    With mplayer/mencoder binary for windows.



    Show output from web:



    "C:Program Files (x86)MPlayer for Windowsmplayer.exe" -tv driver=dshow:device=0:adevice=0:audioid=1:input=2 tv://


    Write output:



    mencoder.exe -tv driver=dshow:device=0:adevice=0:audioid=1:input=2 tv:// -oac copy -ovc copy -o t.avi





    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f99743%2fcommand-line-tool-to-capture-webcam-video-in-windows-xp%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      8














      From here, you can see a list of DirectShow devices with



      ffmpeg -list_devices true -f dshow -i dummy


      If you have a built-in webcam on a laptop, it should be called something like `"Integrated Camera", and you can capture from it using the following (obviously, substitute the name of your webcam device, and note that the quotes are required):



      ffmpeg -f dshow -i video="Integrated Camera" -c copy raw.avi 
      -c:v libx264 -preset veryfast -crf 25 encoded.mp4


      You may be better off using huffyuv instead of raw video - it'll halve your filesize, but be completely lossless. Use -c:v huffyuv instead of -c copy.






      share|improve this answer























      • Just used this to get headshots of someone who stole a number of PCs. Thank you, as this will surely result in an arrest at this point.
        – Beems
        Jan 18 at 21:31
















      8














      From here, you can see a list of DirectShow devices with



      ffmpeg -list_devices true -f dshow -i dummy


      If you have a built-in webcam on a laptop, it should be called something like `"Integrated Camera", and you can capture from it using the following (obviously, substitute the name of your webcam device, and note that the quotes are required):



      ffmpeg -f dshow -i video="Integrated Camera" -c copy raw.avi 
      -c:v libx264 -preset veryfast -crf 25 encoded.mp4


      You may be better off using huffyuv instead of raw video - it'll halve your filesize, but be completely lossless. Use -c:v huffyuv instead of -c copy.






      share|improve this answer























      • Just used this to get headshots of someone who stole a number of PCs. Thank you, as this will surely result in an arrest at this point.
        – Beems
        Jan 18 at 21:31














      8












      8








      8






      From here, you can see a list of DirectShow devices with



      ffmpeg -list_devices true -f dshow -i dummy


      If you have a built-in webcam on a laptop, it should be called something like `"Integrated Camera", and you can capture from it using the following (obviously, substitute the name of your webcam device, and note that the quotes are required):



      ffmpeg -f dshow -i video="Integrated Camera" -c copy raw.avi 
      -c:v libx264 -preset veryfast -crf 25 encoded.mp4


      You may be better off using huffyuv instead of raw video - it'll halve your filesize, but be completely lossless. Use -c:v huffyuv instead of -c copy.






      share|improve this answer














      From here, you can see a list of DirectShow devices with



      ffmpeg -list_devices true -f dshow -i dummy


      If you have a built-in webcam on a laptop, it should be called something like `"Integrated Camera", and you can capture from it using the following (obviously, substitute the name of your webcam device, and note that the quotes are required):



      ffmpeg -f dshow -i video="Integrated Camera" -c copy raw.avi 
      -c:v libx264 -preset veryfast -crf 25 encoded.mp4


      You may be better off using huffyuv instead of raw video - it'll halve your filesize, but be completely lossless. Use -c:v huffyuv instead of -c copy.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Feb 22 '13 at 10:07

























      answered Feb 22 '13 at 9:17









      evilsoup

      8,74214464




      8,74214464












      • Just used this to get headshots of someone who stole a number of PCs. Thank you, as this will surely result in an arrest at this point.
        – Beems
        Jan 18 at 21:31


















      • Just used this to get headshots of someone who stole a number of PCs. Thank you, as this will surely result in an arrest at this point.
        – Beems
        Jan 18 at 21:31
















      Just used this to get headshots of someone who stole a number of PCs. Thank you, as this will surely result in an arrest at this point.
      – Beems
      Jan 18 at 21:31




      Just used this to get headshots of someone who stole a number of PCs. Thank you, as this will surely result in an arrest at this point.
      – Beems
      Jan 18 at 21:31













      2














      Looks like you can do that using VLC, i.e.



      vlc --dshow-vdev="Monitor Webcam" --dshow-size=640x480 -V dummy 
      --intf=dummy --dummy-quiet --video-filter=scene --no-audio
      --scene-path=D:temp --scene-format=jpeg --scene-prefix=snap
      --scene-replace --run-time=1 --scene-ratio=24 "dshow://" vlc://quit





      share|improve this answer


























        2














        Looks like you can do that using VLC, i.e.



        vlc --dshow-vdev="Monitor Webcam" --dshow-size=640x480 -V dummy 
        --intf=dummy --dummy-quiet --video-filter=scene --no-audio
        --scene-path=D:temp --scene-format=jpeg --scene-prefix=snap
        --scene-replace --run-time=1 --scene-ratio=24 "dshow://" vlc://quit





        share|improve this answer
























          2












          2








          2






          Looks like you can do that using VLC, i.e.



          vlc --dshow-vdev="Monitor Webcam" --dshow-size=640x480 -V dummy 
          --intf=dummy --dummy-quiet --video-filter=scene --no-audio
          --scene-path=D:temp --scene-format=jpeg --scene-prefix=snap
          --scene-replace --run-time=1 --scene-ratio=24 "dshow://" vlc://quit





          share|improve this answer












          Looks like you can do that using VLC, i.e.



          vlc --dshow-vdev="Monitor Webcam" --dshow-size=640x480 -V dummy 
          --intf=dummy --dummy-quiet --video-filter=scene --no-audio
          --scene-path=D:temp --scene-format=jpeg --scene-prefix=snap
          --scene-replace --run-time=1 --scene-ratio=24 "dshow://" vlc://quit






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 22 '13 at 5:56







          user89272






























              0














              With mplayer/mencoder binary for windows.



              Show output from web:



              "C:Program Files (x86)MPlayer for Windowsmplayer.exe" -tv driver=dshow:device=0:adevice=0:audioid=1:input=2 tv://


              Write output:



              mencoder.exe -tv driver=dshow:device=0:adevice=0:audioid=1:input=2 tv:// -oac copy -ovc copy -o t.avi





              share|improve this answer


























                0














                With mplayer/mencoder binary for windows.



                Show output from web:



                "C:Program Files (x86)MPlayer for Windowsmplayer.exe" -tv driver=dshow:device=0:adevice=0:audioid=1:input=2 tv://


                Write output:



                mencoder.exe -tv driver=dshow:device=0:adevice=0:audioid=1:input=2 tv:// -oac copy -ovc copy -o t.avi





                share|improve this answer
























                  0












                  0








                  0






                  With mplayer/mencoder binary for windows.



                  Show output from web:



                  "C:Program Files (x86)MPlayer for Windowsmplayer.exe" -tv driver=dshow:device=0:adevice=0:audioid=1:input=2 tv://


                  Write output:



                  mencoder.exe -tv driver=dshow:device=0:adevice=0:audioid=1:input=2 tv:// -oac copy -ovc copy -o t.avi





                  share|improve this answer












                  With mplayer/mencoder binary for windows.



                  Show output from web:



                  "C:Program Files (x86)MPlayer for Windowsmplayer.exe" -tv driver=dshow:device=0:adevice=0:audioid=1:input=2 tv://


                  Write output:



                  mencoder.exe -tv driver=dshow:device=0:adevice=0:audioid=1:input=2 tv:// -oac copy -ovc copy -o t.avi






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 17 '16 at 15:10









                  anex5

                  11




                  11






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f99743%2fcommand-line-tool-to-capture-webcam-video-in-windows-xp%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                      Alcedinidae

                      RAC Tourist Trophy