This repository was archived by the owner on Feb 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfbgrab.1.man
More file actions
103 lines (97 loc) · 3.32 KB
/
fbgrab.1.man
File metadata and controls
103 lines (97 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.TH fbgrab 1 "(C) 2002 - 2013 Gunnar Monell, GPL"
.SH NAME
\fBfbgrab\fP - takes screenshots using the framebuffer device
.SH SYNOPSIS
.B fbgrab [options] filename
.SH DESCRIPTION
.B fbgrab
reads the \fBframebuffer device\fP (/dev/fb*) or a dump thereof and
saves a \fBPNG\fP image file. You can use it for making screenshots of
of virtually any application, from traditional test applications to your
X-windows desktop, as well as framebuffer applications.
.SH OPTIONS
.TP
.B -?
print usage information.
.TP
.B -b bitdepth
the number of bits per pixel used, optional when reading from device.
.TP
.B -c console
specifies which \fBconsole\fP (or virtual terminal - like other
people call this feature) to grab. Sometimes this changing is
faster then the framebuffer is refreshed (especially when grabbing
framebuffer apps). If so, you should \fBuse -C console\fP ... This
waits some time before grabbing. You can't use \fB-s\fP in this case.
.TP
.B -d device
specifies which framebuffer device you want to read. If
you do not use this option, it takes the value from the
\fBFRAMEBUFFER\fP environment variable. If no FRAMEBUFFER
environment variable is given or if its value is \fBNULL\fP, then
DEFAULT_FB is taken. (see source code), which usually is /dev/fb0.
.TP
.B -f filename
Read from from file instead of device, requires that -w (width), -h (height) and
-b (bitdepth) are specified.
.TP
.B -h height
the height of the frambeuffer in pixels, optional when reading from device.
.TP
.B -i
turns \fBoff\fP interlacing. If you do not want \fBADAM7 interlacing\fP,
you should use the \fB-i\fP option.
.TP
.B -s seconds
specifies how many seconds to wait before grabbing. \fBfbshot\fP
does not lock console switching, so you can switch it while
waiting, if you cannot use -c requires normally that fbgrab is run as root.
.TP
.B -v verbose
be verbose
.TP
.B -w width
the width of the frambeuffer in pixels, optional when reading from device.
.TP
.B -z
set png compression level 0 (fast) to 9 (best).
.SH TODO
* Low-end bit depths, eg 1, 2, 4 & 8 bits.
.TP
* Companion program fbput that would display a picture in the frambuffer.
.TP
* Better utilization of the PNG-lib, all formats are first converted to 32 bitdepth and then stored as PNG - hardly the right approach.
.SH EXAMPLES
.P
fbgrab fb.png
.P
will take a framebuffer snapshot, or if you don't have fbgrab at your machine, you can do
.P
cp /dev/fb0 framebuffer.dump
.P
and then
.P
fbgrab -w 1024 -h 768 -b 16 -f framebuffer.dump fb.png
.P
to convert it to a picture.
.SH AUTHOR
Written by Gunnar Monell <gmo@linux.nu>.
Basically a rewrite of fbshot by Stephan Beyer <fbshot@s-beyer.de>
.SH COPYRIGHT (C)
.P
(C) 2002-2013 Gunnar Monell <gmo@linux.nu>
.P
(C) 2000 Stephan Beyer <fbshot@s-beyer.de>
.P
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License.
.P
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.P
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.