peek

peek

轻量级屏幕录制工具 聚焦GIF动画和短视频制作

Peek是一款轻量级屏幕录制工具,专注于创建短小的屏幕区域录像。该工具支持录制界面演示、功能展示和bug报告等内容,可生成优化的GIF动画或WebM格式视频。Peek的设计理念是快速创建小型、无声的屏幕录像,特别适合开发者展示应用功能。尽管功能相对精简,但Peek在特定使用场景中表现出色。

Peek屏幕录制动图制作开源软件LinuxGithub开源项目

Peek - an animated GIF recorder

GitHub release License: GPL v3+ Packaging status Translation Status

[!IMPORTANT] The Peek project has been declared deprecated, please read the announcement. No new features will be developed and issue reporting will be closed soon.

Peek recording itself

Simple screen recorder with an easy to use interface

<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

Contents

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

About

Peek makes it easy to create short screencasts of a screen area. 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. With Peek, you simply place the Peek window over the area you want to record and press "Record". Peek is optimized for generating animated GIFs, but you can also directly record to WebM if you prefer.

Peek is not a general purpose screencast app with extended features but rather focuses on the single task of creating small, silent screencasts of an area of the screen for creating GIF animations or silent WebM videos.

Peek runs on X11 or inside a GNOME Shell Wayland session using XWayland. Support for more Wayland desktops might be added in the future (see FAQs below).

Requirements

Runtime

  • GTK+ >= 3.20
  • GLib >= 2.38
  • libkeybinder3
  • FFmpeg >= 3
  • GStreamer 'Good' plugins (for recording on GNOME Shell)
  • gifski (optional but recommended for improved GIF quality)

Development

  • Vala compiler >= 0.22
  • Meson >= 0.47.0
  • Gettext (>= 0.19 for localized .desktop entry)
  • txt2man (optional for building man page)

Installation

Official distribution packages

Peek is available in official package repositories for the following distributions:

Flatpak

Peek can be installed on all distributions supporting Flatpak from Flathub. To install, either download com.uploadedlobster.peek.flatpakref and open it with GNOME Software or install via command line (first time flatpak users need to follow the flatpak/flathub setup instructions first):

flatpak install flathub com.uploadedlobster.peek

For full functionality you should also install xdg-desktop-portal-gtk. It is available for most current distributions. Once installed, you can run Peek via its application icon in your desktop environment or from the command line:

flatpak run com.uploadedlobster.peek

To update to the latest version run:

flatpak update --user com.uploadedlobster.peek

To test the latest development version you can install peek-master.flatpakref

Snappy

Peek no longer has officially supported Snap packages, see the announcement. Please consider using the Flatpak or AppImage versions or use the Ubuntu PPA if you are using Ubuntu.

AppImage

Peek AppImage packages are available on the release page. To run download the .AppImage file and set it executable, then just run it. You can name the file however you want, e.g. you can name it just peek and place it in $HOME/bin for easy access. See the AppImage wiki for more information on how to use AppImages and integrate them with your system.

Ubuntu

You can install the latest versions of Peek from the Ubuntu PPA.

sudo add-apt-repository ppa:peek-developers/stable
sudo apt update
sudo apt 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.

ElementaryOS

Adding PPA repositories requires the package software-properties-common

sudo apt install software-properties-common
sudo add-apt-repository ppa:peek-developers/stable
sudo apt update
sudo apt 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.

Debian

There are official Debian packages for Debian 11 ("Bullseye") and Debian 10 ("Buster") via main repository and packages for Debian 9 ("Stretch") via stretch-backports repository. Please refer to Debian Backports Website for detailed usage of stretch-backports repository.

After enabling stretch-backports for Debian 9 (Debian 10 or Debian 11 or Sid don't need any tweaks at all), installation can be done by simply typing:

sudo apt install peek

Fedora

Note: Fedora by default does not provide the required ffmpeg package in its repositories. For this reason it is recommended for Fedora users to install Peek with Flatpak, see above. If you prefer to install Peek from the repositories you should install ffmpeg separately as described below.

Peek is available in the default repositories (Fedora 29 and later):

sudo dnf install peek

To install the required ffmpeg package you can use the RPM Fusion free repository, see the setup instructions for RPM Fusion. Once the repository is enabled install FFmpeg with:

sudo dnf install ffmpeg

Solus

Solus users can simply install with:

sudo eopkg it peek

Arch Linux

Arch Linux users can simply install with:

sudo pacman -S peek

For GNOME Shell recording there are some optional packages you can choose from:

gst-plugins-good: Recording under Gnome Shell
gifski: High quality GIF animations with thousands of colors

If you have a package manager for AUR (or fetch from AUR manually) the git version is available here

Other distributions

See the Repology package list for a list of Peek packages for various distributions.

From source

You can build and install Peek using Meson with Ninja:

git clone https://github.com/phw/peek.git
cd peek
meson --prefix=/usr/local builddir
cd builddir
ninja

# Run directly from source
./src/peek

# Install system-wide
sudo ninja install

Note: ninja might be called ninja-build on some distributions.

Frequently Asked Questions

How can I capture mouse clicks and/or keystrokes?

Peek does not support this natively. But you could install an external tool like key-mon which is usually included in most distributions, so you can easily install with your package manager. Then start key-mon with key-mon --visible_click. The --visible_click option is for drawing small circles around mouse clicks.

How can I improve the quality of recorded GIF files

To get the best possible quality you should install the gifski GIF encoder. If available Peek will automatically use gifski and will provide a quality slider in the preferences dialog. The default value will give a balanced result between quality and file size. Set the quality to maximum if you want to get the highest possible quality even with thousands of colors. The file size will increase significantly, though (see below).

Why are the GIF files so big?

The GIF format is highly inefficient and not well suited for doing large animations with a lot of changes and colors. Peek tries its best to reduce the file size by using FFmpeg or gifski to generate optimized GIF files. For best results:

  • Use a lower frame rate. 10fps is the default and works well, but in many cases you can even get good results with lower framerates.
  • If you have gifski installed you can adjust the GIF quality in the preferences. A lower quality gives a smaller file size at the expense of visual quality (see above).
  • Avoid too much change. If there is heavy animation the frames will differ a lot.
  • Record small areas or use the downsample option to scale the image. The GIF file format is not well suited for high resolution or full-screen recording.
  • Avoid too many colors, since GIF is limited to a 256 color palette per frame. This one is not so much about file size but more about visual quality.
  • If the above suggestions are not suitable for your use case, consider using WebM format (see below).

If GIF is so bad why use it at all?

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.

What about WebM or MP4? Those are well supported on the web.

Peek allows you to record in WebM format, just choose your preferred output format in the preferences. WebM is well supported by modern browsers, even though they are still not as universally supported by tools and online services as GIFs.

[!NOTE] Support for MP4 was available till version 1.5.1 but was removed from later versions.

What is the cause for "Could not start GNOME Shell recorder" errors?

This usually indicates an error while starting the built-in GNOME shell recorder. Unfortunately Peek does not receive any error details, to find out more about this issues look at the GNOME Shell log output in journalctl.

A common cause for this is that the GNOME Shell recorder is already running, either because it was started via the GNOME Shell keyboard shortcut or by another application.

If this error is shown when trying to record MP4 a common cause is that you are missing the GStreamer ugly plugins, which provide MP4 encoding. Please refer to the documentation of your distribution on how to install these. Do note that you have to logout and login for Peek to recognize the new installed libraries if you are running the Wayland display server.

See also issue #287 for related discussion.

Why can't I interact with the UI elements inside the recording area?

You absolutely should be able to click the UI elements inside the area you are recording. If you use i3 you should stack Peek with the window you intend to record or make sure all windows are floating and uncheck "Always on top" from the Peek settings. If you want to be able to control the area when recording in i3 you can move Peek to the Scratchpad it will keep recording the area once you hide the window. If this does not work for you on any other window manager please open an issue on GitHub.

My recorded GIFs flicker, what is wrong?

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. For NVIDIA drivers changing the "Allow Flipping" setting in the NVIDIA control panel was reported to help.

On i3 the recording area is all black, how can I record anything?

i3 does not support the X shape extension. In order to get a transparent recording area, you have to run a compositor such as Compton.

Why no native Wayland support?

Wayland has two restrictions that make it hard for Peek to support Wayland natively:

  1. 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.

  2. 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 layout 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

编辑推荐精选

即梦AI

即梦AI

一站式AI创作平台

提供 AI 驱动的图片、视频生成及数字人等功能,助力创意创作

扣子-AI办公

扣子-AI办公

AI办公助手,复杂任务高效处理

AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!

Keevx

Keevx

AI数字人视频创作平台

Keevx 一款开箱即用的AI数字人视频创作平台,广泛适用于电商广告、企业培训与社媒宣传,让全球企业与个人创作者无需拍摄剪辑,就能快速生成多语言、高质量的专业视频。

TRAE编程

TRAE编程

AI辅助编程,代码自动修复

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

AI工具TraeAI IDE协作生产力转型热门
蛙蛙写作

蛙蛙写作

AI小说写作助手,一站式润色、改写、扩写

蛙蛙写作—国内先进的AI写作平台,涵盖小说、学术、社交媒体等多场景。提供续写、改写、润色等功能,助力创作者高效优化写作流程。界面简洁,功能全面,适合各类写作者提升内容品质和工作效率。

AI辅助写作AI工具蛙蛙写作AI写作工具学术助手办公助手营销助手AI助手
问小白

问小白

全能AI智能助手,随时解答生活与工作的多样问题

问小白,由元石科技研发的AI智能助手,快速准确地解答各种生活和工作问题,包括但不限于搜索、规划和社交互动,帮助用户在日常生活中提高效率,轻松管理个人事务。

热门AI助手AI对话AI工具聊天机器人
Transly

Transly

实时语音翻译/同声传译工具

Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。

讯飞智文

讯飞智文

一键生成PPT和Word,让学习生活更轻松

讯飞智文是一个利用 AI 技术的项目,能够帮助用户生成 PPT 以及各类文档。无论是商业领域的市场分析报告、年度目标制定,还是学生群体的职业生涯规划、实习避坑指南,亦或是活动策划、旅游攻略等内容,它都能提供支持,帮助用户精准表达,轻松呈现各种信息。

AI办公办公工具AI工具讯飞智文AI在线生成PPTAI撰写助手多语种文档生成AI自动配图热门
讯飞星火

讯飞星火

深度推理能力全新升级,全面对标OpenAI o1

科大讯飞的星火大模型,支持语言理解、知识问答和文本创作等多功能,适用于多种文件和业务场景,提升办公和日常生活的效率。讯飞星火是一个提供丰富智能服务的平台,涵盖科技资讯、图像创作、写作辅助、编程解答、科研文献解读等功能,能为不同需求的用户提供便捷高效的帮助,助力用户轻松获取信息、解决问题,满足多样化使用场景。

热门AI开发模型训练AI工具讯飞星火大模型智能问答内容创作多语种支持智慧生活
Spark-TTS

Spark-TTS

一种基于大语言模型的高效单流解耦语音令牌文本到语音合成模型

Spark-TTS 是一个基于 PyTorch 的开源文本到语音合成项目,由多个知名机构联合参与。该项目提供了高效的 LLM(大语言模型)驱动的语音合成方案,支持语音克隆和语音创建功能,可通过命令行界面(CLI)和 Web UI 两种方式使用。用户可以根据需求调整语音的性别、音高、速度等参数,生成高质量的语音。该项目适用于多种场景,如有声读物制作、智能语音助手开发等。

下拉加载更多