Command line tool to capture webcam video in Windows Xp
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
add a comment |
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
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
add a comment |
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
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
webcam ffmpeg video-capture
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
add a comment |
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
add a comment |
3 Answers
3
active
oldest
votes
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
.
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
add a comment |
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
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
.
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
add a comment |
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
.
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
add a comment |
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
.
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
.
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Feb 22 '13 at 5:56
user89272
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Apr 17 '16 at 15:10
anex5
11
11
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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