Giter Club home page Giter Club logo

byzanz-window's Introduction

byzanz-window.go

This is Go port of byzanz_window.py. It is very nice python script however it does not work with Python 3.4. So I port it in Go language. I test on XFce4 and LUbuntu. If byzanz-window does not work on your platform please report me via github issue.

Installation

% go get github.com/syohex/byzanz-window/cmd/byzanz-window

You can also install binary from here.

Requirement Packages

Ubuntu

  • byzanz
  • xdotool
  • x11-utils(xprop, xwininfo)
  • libx11-dev
% sudo apt install byzanz xdotool x11-utils libx11-dev

Fedora

  • byzanz
  • xdotool
  • xorg-x11-utils
  • libX11-devel
% sudo yum install byzanz xdotool xorg-x11-utils libX11-devel

Example

% byzanz-window --duration=30 --delay=5 --cursor output.gif

Options

Some option names are changed from original ones.

option Description Default
-d, --duration Record seconds 10
--delay Delay seconds before recording 1
-c, --cursor Record mouse cursor false
-a, --audio Record audio false
-r, --rectangle Record in rectangle(Linux Only) false

zsh completion is here

Recording Steps

1. Execute byzanz-window

# Record 20 seconds
% byzanz-window --duration=20 --delay=5 --cursor output.gif

2. Select Window

3. Start recording

You type Return key, then recording starts after --delay second(Default: 1 second).

4. Gif is generated

After --duration seconds(Default: 10 seconds), Gif file is generated.

Have fun!!

Window Capture

% byzanz-window --duration=seconds --delay=seconds output-file.gif

window-capture

Generated gif is

window-capture-generated

Rectangle Capture

% byzanz-window --rectangle --duration=seconds --delay=seconds output-file.gif # with '--rectangle' option

rectangle-capture

Generated gif is

rectangle-capture-generated

byzanz-window's People

Contributors

boomskats avatar calavera avatar syohex avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.