GIPH(1)
π GIPH(1) β the giph glow-up π
okay bestie, welcome to section 1 of the manual, and this one is literally about giph, a whole icon. buckle up π
β¨ NAME β¨
giph β record a gif from your desktop, a window, or a selection π¦
πΈ SYNOPSIS πΈ
giph [OPTIONS] [FILENAME]
giph [-g GEOMETRY | -w INT | -s [-l] [-c FLOAT,FLOAT,FLOAT,FLOAT] [-p
FLOAT] [-b FLOAT]] [-d INT] [-t INT] [-f INT] [--format STRING] [-a |
-as STRING] [-m | -ms STRING] [FILENAME]
π DESCRIPTION π
so giph is a screen recorder, right? it records the desktop, a window, or a selection, and then encodes all of that into a video file. main character energy honestly π
the recorded video file gets encoded in one of the supported formats β gif, webm, mp4, or mkv β and it picks based on the file extension you give it in [FILENAME].
when you omit [FILENAME], the default format "gif" is used (use --format to overwrite that), and the resulting video gets printed directly to standard output. slay β¨
π EXAMPLES π
giph -g 300x200+600+200 ~/Videos/$(date +%s).png
this records a 300x200 pixel (width x height) rectangle, shifted 600 pixel to the right and 200 pixel down from the top-left corner. the recording stops when either Ctrl+C is pressed, or after you call giph --stop.
the encoded gif will be saved in your user's videos directory and has the current timestamp as a name. cute and organized, we love to see it π«Ά
β¨ OPTIONS β¨
-h,--helpβ print help and exit, king behavior π--stopβ finish any runninggiphrecordings. the off switch, no cap π₯--versionβ print version and exit β-v*,--verbose,--quietβ defines how verbosegiphwill be. omitting[FILENAME]will overwrite the verbosity to-1(quiet). use the following list to figure out which option to use for each verbosity level π:-1(quiet) β--quietβ logs errors0(normal) β like quiet, also displays interactive components1(verbose) β-v,--verboseβ like normal, also logs basic information about steps2(very_verbose) β-vvβ like verbose, also logs detailed information about steps3(debug) β-vvvβ like very_verbose, also shows background process output
-s,--selectβ usesslopto interactively select the region or window you wanna record π¦. this uses the SLOP OPTIONS described below-g,--geometryGEOMETRY β sets the region to record-w,--windowINT β sets the window id of the desired window to record-d,--delayINT β sets the time in seconds to wait before the recording starts β³-t,--timerTIMEDURATION β sets a fixed time to record. the format is a timeduration as described in the ffmpeg documentation (<https://ffmpeg.org/ffmpeg-utils.html#Time-duration> β the original links it, we're just saying it like it is π). as an example,'10'would mean 10 seconds,'3:30'means 3 minutes and 30 seconds,'1:02:03'means 1 hour, 2 minutes and 3 seconds, and'5.5'means 5.5 seconds-f,--framerateINT (default:20) β sets the desired framerate of the recorded gif. a higher framerate will result in a larger filesize (bigger file, bigger vibe check π)--formatβ overwrites the format that should be used for the recording. the available formats aregif,webm,mp4andmkv. whilegifis the only format that does not support audio recording π-a,--audioβ enables audio recording for formats that support audio π§-as,--audio-sourceSTRING (default:'0') β define which pulseaudio source should be used for the recording. runpacmd list-sourcesto get a list of all available sources. you can use either the index or the name of the source for this parameter. when setting this parameter, setting-aor--audiocan be omitted π-m,--microphoneβ enables microphone recording for formats that support audio π€-ms,--microphone-sourceSTRING (default:'default') β define which pulseaudio source should be used for the recording. runpacmd list-sourcesto get a list of all available sources. you can use either the index or the name of the source for this parameter. when setting this parameter, setting-mor--microphonecan be omitted π«Ά-y,--notifyβ usesnotify-sendto send an urgent notification if an error happens, or a normal notification when the final gif was saved successfully π
π¦ SLOP OPTIONS π¦
when -s or --select is used, slop will be used to get geometry information. read slop(1) for more detailed information about slop options. the following options will be passed to slop if they are set π
-b,--bordersizeFLOAT (default:1) β set the selection border thickness-p,--paddingFLOAT (default:0) β set the selection padding. this can be negative π³-to,--toleranceFLOAT (default:2) β defines how far the mouse can move after clicking while still being considered a click π±οΈ-c,--colorFLOAT,FLOAT,FLOAT,FLOAT (default:0.5,0.5,0.5,1) β set the selection color as RGB or ARGB π-r,--shaderSTRING β set the shader to be used β¨-n,--nodecorationsINT (default:0) β tries to select child windows.0is off,1tries to remove decorations,2aggressively tries to remove decorations π-l,--highlightβ highlight the selection rectangle. this uses the color provided in-cor--colorπ-k,--nokeyboardβ disable being able to cancel the selection using the keyboard-o,--noopenglβ disable graphics acceleration
π SEE ALSO π
slop(1) β go read it, iykyk π§
and that's the whole page, bestie!! π MIT License, April 2019 β periodt, that's the sign-off, no cap βπ
π¦ where this page comes from
- nixos 26.05: giph 1.1.1
- nixpkgs unstable: giph 1.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms