Code Monkey home page Code Monkey logo

mkcast's People

Contributors

daamien avatar liam-middlebrook avatar micrub avatar morenoh149 avatar p-v avatar tckmn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mkcast's Issues

Syntax error when trying example

When I run...

 $ mkcast Terminal 10 -c reset

...output:

/usr/local/bin/mkcast: line 54: 1776/2-/2: syntax error: operand expected (error token is "/2")
/usr/local/bin/mkcast: line 55: 952-: syntax error: operand expected (error token is "-")
Wrong option: Cannot parse integer value '-y' for -x
usage: byzanz-record [OPTIONS] filename
   byzanz-record --help

webm support

GIF is great. I think we all know that. However, it's old, outdated, and bloated. I'd really love to see webm support for this project.

setup.sh fails if the symlinks already exists

You cannot run the setup script twice

$ sudo ./setup.sh 
$ sudo ./setup.sh 
ln: impossible de créer le lien symbolique «mkcast»: Le fichier existe
ln: impossible de créer le lien symbolique «newcast»: Le fichier existe

The error message is in French but I think you get the idea :)

xdpyinfo and byzans-record errors on Ubuntu 14.04

Get an error when running this on Ubuntu 14.04.

$ newcast
xdpyinfo:  unable to open display "".
/usr/local/google/home/ruslano/bin/mkcast: line 52: wmctrl: command not found
/usr/local/google/home/ruslano/bin/mkcast: line 54: /2-/2: syntax error: operand expected (error token is "/2-/2")
/usr/local/google/home/ruslano/bin/mkcast: line 55: -: syntax error: operand expected (error token is "-")
/usr/local/google/home/ruslano/bin/mkcast: line 56: wmctrl: command not found
Wrong option: Cannot parse integer value '-y' for -x
usage: byzanz-record [OPTIONS] filename
       byzanz-record --help

Error persists after installing missing wmctrl:

$ newcast
xdpyinfo:  unable to open display "".
Cannot open display.
/usr/local/google/home/ruslano/bin/mkcast: line 54: /2-/2: syntax error: operand expected (error token is "/2-/2")
/usr/local/google/home/ruslano/bin/mkcast: line 55: -: syntax error: operand expected (error token is "-")
Cannot open display.
Wrong option: Cannot parse integer value '-y' for -x
usage: byzanz-record [OPTIONS] filename
       byzanz-record --help

I use Tmux from within Terminator, if that has any value.

PyPI package

Do you plan to provide this as a pypi package? If you don't want to do it yourself I could make a pr that takes care of the necessary stuff and, if you want, push the releases to pypi.

Edit: Nvm - I assumed wrongly that it was a python script (the code-counter went pretty wrong through the screenkey-package being included).

Please add support for other terminals

I use the LXDE desktop environment. My default terminal emulator is evilvte.
I changed "gnome-terminal" to "evilvte" in newcast script and the program did record a gif. The quality is good. However, it recorded the whole desktop instead of just the terminal. I believe fetching the dimensions of the evilvte window failed.
This might be reproducible with any terminal emulator other than gnome-terminal. Can you please add support for some more terminal emulators other than gnome-terminal?

Contribute language on Transifex

Hello, I think will be awesome if put the translations on Transifex and get contributions for another languages (inclusive my language portuguese).

Package on debian

I propose to package mkcast for debian (and maybe fedora, if it runs successfully on it). I am a beginner and would love to package it. Also I think of creating a docker image for mkcast. What do you think?

Setup script results in broken symlink Ubuntu 14.10

➜ sudo ./setup.sh
➜ mkcast
zsh: too many levels of symbolic links: mkcast

This is what the links look like:

➜ ls -la /usr/local/bin/
drwxr-xr-x 2 root root 4096 Feb 2 11:05 .
drwxr-xr-x 12 root root 4096 Dec 10 13:24 ..
lrwxrwxrwx 1 root root 6 Feb 2 11:05 mkcast -> mkcast
lrwxrwxrwx 1 root root 7 Feb 2 11:05 newcast -> newcast

Does this suggest the links are pointing to themselves?

Breaks in Mac Terminal on OS X 10.10.2

Not sure if you're worried about Mac at this point, but I get the following error when running the specified command on OS X 10.10.2:

$ sudo ./setup.sh
$ newcast
xdpyinfo:  unable to open display "/private/tmp/com.apple.launchd.a93K09UjyA/org.macosforge.xquartz:0".
/usr/local/bin/mkcast: line 57: wmctrl: command not found
/usr/local/bin/mkcast: line 59: /2-/2: syntax error: operand expected (error token is "/2-/2")
/usr/local/bin/mkcast: line 60: -: syntax error: operand expected (error token is "-")
/usr/local/bin/mkcast: line 61: wmctrl: command not found
$ readlink: illegal option -- f
usage: readlink [-n] [file ...]
kill: 86355: No such process

After this, it just waits forever and nothing happens. I'm guessing this because wmctrl is for X Windows, but I felt like I'd post here to show my support for mkcast and to show interest on the Mac side.

Unknown option -0 for byzanz-record

It looks as though something is adding extra quotes to escape, but doing it badly. Running the newcast script with -x, I get the following (right before it blows up):

+ ENDCMD='--exec "bash -c '\''while kill -0 25811; do :; done'\''" '
+ echo ENDCMD= --exec '"bash' -c ''\''while' kill -0 '25811;' do ':;' 'done'\''"'
ENDCMD= --exec "bash -c 'while kill -0 25811; do :; done'"
+ byzanz-record -x 279 -y 230 -w 808 -h 538 --exec '"bash' -c ''\''while' kill -0 '25811;' do ':;' 'done'\''"' out.gif

Notice the extra quotes in the byzanz-record commandline; this is what's causing me grief, I believe.

Any ideas? Running ubuntu 14.04

Thanks!

Suggestion: get rid of the duration argument

Byzanz's duration argument bothers me every time I have to use it. Here's how I got rid of it in my own script: https://github.com/sagotsky/.dotfiles/blob/master/scripts/byzanz-gif.sh

tl;dr use the --exec flag instead of duration to end byzanz via shell commands. The shell commands I use check if a dzen is still running. Instead I'd suggestion spawning the terminal to record and having exec check if that's still up. When someone ctrl-d's out of it, end the recording.

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.