- About
- Requirements
- Installation
- Frequently Asked Questions
- The recording area is all black, how can I record anything?
- My recorded GIFs flicker, what is wrong?
- Why can't I interact with the UI elements inside the recording area?
- Why are the GIF files so big?
- If GIF is so bad why use it at all?
- What about WebM or MP4? Those are well supported on the web.
- Why no native Wayland support?
- Contribute
- License
Peek creates animated GIF screencasts using FFmpeg and ImageMagick. It was built for the specific use case of recording screen areas, e.g., for easily showing UI features of your own apps or for showing a bug in bug reports. It is not a general purpose screencast app with extended features and it never will be.
Currently only X11 is fully supported. There is no direct support for Wayland and Mir, but you can use Peek on Gnome Shell with XWayland (see FAQs below).
- GTK+ >= 3.14
- GLib >= 2.38
- libkeybinder3
- FFmpeg or libav-tools
- ImageMagick
- Window manager with compositing enabled
- Vala compiler
- CMake >= 2.8.8
- Gettext (>= 0.19 for localized .desktop entry)
Peek is available in official package repositories for the following distributions:
For Arch Linux there is a PKGBUILD available in the AUR.
You can install the latest versions of Peek from the Ubuntu PPA.
sudo add-apt-repository ppa:peek-developers/stable
sudo apt-get update
sudo apt-get install peek
If you want to use the latest development version there is also a
PPA with daily builds
available. Use the repository ppa:peek-developers/daily in the above commands.
The deb packages from these PPAs probably will also work on Debian.
Fedora 25 users can use this repository:
sudo dnf config-manager --add-repo http://download.opensuse.org/repositories/home:/Bajoja/Fedora_25/home:Bajoja.repo
sudo dnf install peek -y
You can build and install Peek using CMake:
git clone [email protected]:phw/peek.git
mkdir peek/build
cd peek/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
# Run directly from source
./peek
# Install system wide
sudo make installIf the recording area is not showing the content behind Peek you have probably compositing disabled in your window manager. Peek requires compositing in order to make the Peek window transparent. Please consult your window manager's documentation how to enable compositing.
Some users have experienced recorded windows flicker or other strange visual artifacts only visible in the recorded GIF. This is most likely a video driver issue. If you are using Intel video drivers switching between the SNA and UXA acceleration methods can help.
You absolutely should be able to click the UI elements inside the area you are recording. However this does not work as intended on some window managers, most notably I3. If this does not work for you on any other window manager please open an issue on Github.
Peek is using ImageMagick to optimize the GIF files and reduce the file size. As was shown in issue #3 the resulting files are already small and compare well to other GIF recording software. In the end the GIF format is not well suited for doing large animations with a lot of changes and colors. For best results:
- Use a low frame rate. 15fps seems to work quite well.
- Avoid too much change. If there is heavy animation the frames will differ a lot.
- Avoid too many colors, since GIF is limited to a 256 color palette. This one is not so much about file size but more about visual quality.
While GIF is a very old format, it has seen some rise in usage again in recent years. One reason is its easy usage in the Web. GIF files are supported nearly everywhere, which means you can add animations easily to everywhere where you can upload images. With real video files you are still more limited. Typical use cases for Peek are recording small user interactions for showing UI features of an app you developed, for making short tutorials or for reporting bugs.
True, but still still not as universally supported as GIFs. But Peek will get an option to choose WebM output for those who prefer or need it.
Wayland has two restrictions that make it hard for Peek to support Wayland natively:
-
The Wayland protocol does not define a standard way for applications to obtain a screenshot. That is intentional, as taking an arbitrary screenshot essentially means any application can read the contents of the whole display, and Wayland strives to offer improved security by isolating applications. It is up to the compositors to provide screenshot capability, and most do. Gnome Shell also provides a public interface for applications to use which Peek does support.
-
The Wayland protocol does not provide absolute screen coordinates to the applications. There is not even a coordinate system for windows at all. Again this is intentional, as they are not needed in many cases and you do not need to follow restrictions imposed by the traditional assumption that the screen is a rectangular area (e.g. you can have circular screens or lay out windows in 3D space).
Unfortunately the whole concept of the Peek UI is that the window position itself is used to obtain the recording coordinates. That means for now there cannot be any fully native Wayland support without special support for this use case by the compositor.
It is however possible to use Peek in a Gnome Shell Wayland session using XWayland by launching Peek with the X11 backend:
GDK_BACKEND=x11 peek
Support for compositors other than Gnome Shell can be added if a suitable screencasting interface is provided.
If you want to help make Peek better the easiest thing you can do is to report issues and feature requests. Or you can help in development and translation.
You are welcome to contribute code and provide pull requests for Peek. The easiest way to start is looking at the open issues tagged with up-for-grabs. Those are open issues which are not too difficult to solve and can be started without too much knowledge about the code.
Another good starting point are issues tagged with help-wanted. Those issues are probably harder to solve, but for some reason I cannot work on it for now and would love to see somebody jump in.
In any case, just leave a note on the issue itself that you are working on it, to avoid multiple people working on the same issue.
You can help translate Peek into your language. Peek is using Weblate for translation management.
Go to the Peek localization project to start translating. If the language you want to translate into is not already available, you can add it here.
If you want to be credited for your translation, please add your name to the translator-credits for your language. The translator credits are shown in Peek's About dialog.
Peek Copyright © 2015-2017 by Philipp Wolfer [email protected]
Peek 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 3 of the License, or (at your option) any later version.
Peek 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.
You should have received a copy of the GNU General Public License along with Peek. If not, see http://www.gnu.org/licenses/.