How to make Video

  
in Linux system

Now I can use the camera to make video video on the computer, so how to implement it under Linux system? First of all, you need to upgrade the kernel before making it. Let's learn it with Xiaobian.

upgrade the kernel:

1. Here I use the linux-2.6.32.59 kernel is version, first download a copy of this kernel
after

2. download is complete Decompress to Linux, tar jxvf linux-2.6.32.59.tar

3. Enter the linux-2.6.32.59 directory and copy the current kernel configuration file to the current directory

cp /boot /config-2.6.18-238.e15 . /.config Because my current kernel is linux-2.6.18 version

4. After installing the make menuconfig required to configure the video, enter Device Drivers. Press Enter to find MultiMedia Support and press the space bar. Select and press Enter to go to Find Video For Linux. Press Enter to select Space Capture adapters. Select this option and press Enter to go to Find V4L USB devices. Press the space bar to select and press Enter to enter. USB ZC0301[P] ImageProcessor and Control Chip support Press the space bar to select and then find "M" GSPCA based webcamsà press the space bar to select and press the Enter key to enter the ZC3XX USB Camera Driver under the last menu.<

5. After configuring the above, go back to the top menu and find General setup-à press Enter to go to []enable deprecated sysfs features which may confuse old usersp Press the space bar to select

6. 4, 5 Two steps have been configured to exit the video driver to save

7. Compile make below. This step is large It takes about an hour.

8. Make makefile_install

again 9. Make make install

again 10. At this point, check if the camera is plugged into the USB and check the device file again. Already have video0 view with ls /dev/command

11. If there is a description of the installation success

The above is the kernel upgrade step

The following is to display the contents of the camera

1 First install the SDL library and download it here http://www.libsdl.org/release/SDL-1.2.14.tar.gz

2. Decompress tar zxvf SDL-1.2 .15.tar

3. Enter the directory cd SDL-1.2.15 and then enter the test directory cd test in the test directory. /configure

After making make, there will be a lot of compiled programs to run at random. Try

4. After finding the servfox-R1_1_3 folder in the folder where I uploaded, I will first Change the name of Makefile.i386 to Makefile,

5. Compile make

6. In the folder where I uploaded the file, find the spcaview-20061208 folder and go directly to make

7. After inserting the camera into the USB interface, first run servfox

in the servfox-R1_1_3 folder. /servfox If you get an error, you should find the printed error statement in spcav4l.c. Delete the error message and know that there are no errors.

Run

again. /servfox -g –w 127.0.0.1:7070 –d /dev/video0

8. Run spcaview again. /spcaview –g –w 127.0.0.1:7070

At this point, you should display the video taken by the camera on your virtual machine. Note the project support network at this time

It is the method of making Video in Linux. Through the method of this article, you can easily make Video video through the camera. Have you learned it?

Copyright © Windows knowledge All Rights Reserved