-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathfbgrab.1.man
110 lines (104 loc) · 3.63 KB
/
fbgrab.1.man
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
103
104
105
106
107
108
109
.TH fbgrab 1 "(C) 2002 - 2020 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 -a
ignore the alpha channel with drivers incorrectly setting but not
supporting an alpha channel.
.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 framebuffer in pixels, optional when reading from device.
.TP
.B -i interlacing
turns \fBoff\fP interlacing. If you do not want \fBADAM7 interlacing\fP,
you should use the \fB-i\fP option.
.TP
.B -l line length, a.k.a. stride.
the length in pixels between the start of each row in the framebuffer, which might be larger or equal to width. Optional when reading from device.
.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 compression level
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 -l 2048 -b 16 -f framebuffer.dump fb.png
.P
to convert it to a picture.
.SH AUTHOR
Written by Gunnar Monell <[email protected]>.
Basically a rewrite of fbshot by Stephan Beyer <[email protected]>
.SH COPYRIGHT (C)
.P
(C) 2002-2020 Gunnar Monell <[email protected]>
.P
(C) 2000 Stephan Beyer <[email protected]>
.P
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
.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.