Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to capture video(alongwith audio) from a webcam.
I need to record the video and save it to a file,for further processing.
Would like to do it through CLI.

Any ideas how to do it using ffmpeg or gstreamer.

I am getting these errors:

1.gstreamer:-  erroneous pipeline: no element "xvimagesink".  
2.ffmpeg   :-  unable to find suitable output format for video4linux2.  

Any help is appreciated.

share|improve this question
up vote 4 down vote accepted

Cheese webcam studio can record Video and take photo's with effects.

As for cli recording, see if this will work

streamer -q -c /dev/video0 -f rgb24 -r 3 -t 00:30:00 -o ~/outfile.avi


ffmpeg -f oss -i /dev/dsp -f video4linux2 -s 320x240 -i /dev/video0 out.mpg

Source:

share|improve this answer
    
thanks for help, but i am using gstreamer*(gst-launch-0.10) not *streamer – Ubuntu_beginner Jul 10 '12 at 11:52
    
Thanks bud. Its working – Ubuntu_beginner Jul 10 '12 at 12:24
1  
@blade19899 It seems that /dev/dsp is no more available. It is replaced by alsa. see this – souravc Mar 24 at 6:32
    
Yes, the ffmpeg command results in /dev/dsp: No such file or directory on Unbuntu 2015.10. And by the way, the streamer command records in quality much lower than what a correct ffmpeg command produces. – Nicolas Raoul Mar 24 at 6:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.