星期四, 十二月 15, 2011

I might be watching you!

I bought a webcam during my last trip to China. When inserted it to my Fedora desktop, It didn't work. It then lied in by drawer for almost a year. I bought another cheap cam. It didn't work either. Then I realized it is my desktop's problem. If cheese is not installed, then
# yum install cheese
$ cheese
Hooray!  My pictures are then on the screen.  It has no sound however.  I then tried mencoder.  It couldn't find /dev/dsp.  So,
$ sudo yum install v4l2ucp.x86_64
$ sudo modprobe snd_pcm_oss
$ mencoder -o test.avi -ovc x264 -v tv:// -tv device=/dev/video0:driver=v4l2
The video test.avi is on the disk now.  The last command can be of course run remotely.  So, be careful, I might be watching you if you are in my office.

The problem is that there is still no sound.  This is, however, enough to record a flourishing flower or alike things.

没有评论: