13

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.

1 Answers1

11

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:

blade19899
  • 26,704