Whiskey Kilo Linux  •  Exploring GNU/Linux and F/OSS
times-square.jpg

Friday 30th July 2010

drupal member logo

drupal logo

ubuntu logo

gnome logo

opensource logo

Capture video from webcam with ffmpeg

Logitech Quickcam Vision Pro (Mac)I just bought a new webcam, a Logitech Quickcam Vision Pro (Mac version, 046d:09a6) with hardware controlled autofocus. Pictures are really sharp and the autofocus is cool too. Anyway, i needed to capture a small video with sound. Here's the ffmpeg command i used.
ffmpeg -t 10 -f video4linux2 -s 320x240 -r 30 -i /dev/video0 -f oss -i /dev/dsp1 -f mp4 webcam.mp4
No need to compile ffmpeg, this works out of the box!

Comments

Thanks

That is really appreciated!!! And so simple :)

To preview couldn't you command ffmpeg to take .jpg frames from video and display in HTML with refresh ..or capture to flash video and simultaneously display with flash player.

can i do this in windows xp

can i do this in windows xp

Yes, You can do it in Windows.

Yes You can do it in Windows XP.
Right now I have did it.
the command is to be typed on command prompt.
go to cmd prompt. set path to the folder containing ffmpeg executable.
then type command as:
ffmpeg -r 25 -f vfwcap -i 0 output.avi

example:
c:\ffmpeg\bin>ffmpeg -r 25 -f vfwcap -i 0 output.avi

prior to the command shows the path of the folder containing the ffmpeg.exe

On running this command the web-cam attached to your system starts capturing the video. Its working fine.
Main problem in front of me now, is to show the preview of video being recording. So trying that out. Also I need to integrate ffmpeg to my existing MSVC++ project, which needs a lot of things to taken care.
So, guys I am doing it..

Question

How would you capture in windows from camera on remote I.P.?

Can this be done on Mac OSx

Can this be done on Mac OSx or Windows? If so what are the prerequisites needed?

Can this be done on Mac OSx

Can this be done on Mac OSx or Windows? If so what are the prerequisites needed?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may link to images on this site using a special syntax

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.