How to simultaneously write and watch videos with webcam in Linux?
Got here at me the task — it is necessary to simultaneously display video from webcam (in full screen) and write it on the disk (picture 320x240 from 15 to 30 fps). This critical time display, i.e. the delay should not be or they should be minor.
It would seem VLC is perfect, but he does not want to show the video real-time, while the caching was removed (but I vaguely remember that somewhere there is another that does the caching, or delay), so the entry didn't even try. But mplayer shows very fast, but also can not write.
How to do it in ubuntu (11.10, the ARM (Toshiba AC100))? Yes, and to cram into the script.
creola.Roberts answered on October 8th 19 at 00:54
the solution of the problem (all of a sudden someone will come in handy) — use gstreamer
here's a simple command in the console gst-launch-0.10 --eos-on-shutdown v4l2src device=/dev/video1 ! video/x-raw-yuv,width=360,height=288,framerate=25/1,norm=NTSC ! tee name=my_videosink ! videorate ! jpegenc ! avimux ! filesink location=video.avi my_videosink. ! queue ! ffmpegcolorspace ! ximagesink
takes video from analog source (easycap60), shows a picture of him and encodes MotionJPEG
unfortunately the above video 360х288 very slow, but and 320x240 under my tasks suitable for more than =)
Rodger.Considine answered on October 8th 19 at 00:56
Weird for the sake of interest launched VLC under Debian on my laptop Asus P81IJ — chose streaming, recording to a file, and display in full screen — all shows without brakes + writes the file.