Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,22 @@ compressing the image to PNG or JPEG.

Run the following commands in the source folder to build and install fswebcam:

./configure --prefix=/usr --disable-v4l1 --enable-32bit-buffer
make
sudo make install
./configure --prefix=/usr --disable-v4l1 --enable-32bit-buffer
make
sudo make install

It's only requirements are that the GD library be installed with JPEG, PNG
and FreeType support.

## Install Dependencies

sudo apt-get install libgd-dev libjpeg-dev libpng-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install libgd-dev libjpeg-dev libpng-dev libfreetype6-dev

## Run samples:

fswebcam --Vflip 1 -r 1600x1200 -p YUV420P - > cam640x480_2.jpg
fswebcam --Hflip 1 -r 640x480 -p YUV420P - > cam640x480_1.jpg
fswebcam --exposure 4 -r 640x480 -p YUV420P - > cam640x480_3.jpg
fswebcam --Vflip 1 -r 1600x1200 -p YUV420P - > cam640x480_2.jpg
fswebcam --Hflip 1 -r 640x480 -p YUV420P - > cam640x480_1.jpg
fswebcam --exposure 4 -r 640x480 -p YUV420P - > cam640x480_3.jpg

** Don't forget to update your GC2035 driver to get better results

Expand All @@ -47,7 +46,7 @@ In order to use fswebcam in your Distro running a mainline kernel version you ne
v4l2-ctl --list-devices
cedrus (platform:cedrus):
/dev/video1

sun6i-csi (platform:csi):
/dev/video0

Expand Down Expand Up @@ -245,7 +244,7 @@ In order to use fswebcam in your Distro running a mainline kernel version you ne

* Grab files from OV5640 using the **fswebcam**

media-ctl --device /dev/media1 --set-v4l2 '"ov5640 2-003c":0[fmt:YUYV8_2X8/1280x720]'
./fswebcam --displayfps 1 -S 30 -d /dev/video0 -r 1280x720 -p YUV420P - > /tmp/cam_640x480_yuv420p.jpg
media-ctl --device /dev/media1 --set-v4l2 '"ov5640 2-003c":0[fmt:YUYV8_2X8/1280x720]'
./fswebcam --displayfps 1 -S 30 -d /dev/video0 -r 1280x720 -p YUV420P - > /tmp/cam_640x480_yuv420p.jpg

![640x480](https://github.com/avafinger/fswebcam/raw/mainline-kernel/nanopi-air/cam_640x480_yuv420p.jpg)