Linux
Command
Library
GitHub
F-Droid
Google Play Store
Basics
Tips
Commands
Video & Audio
Screenshots
Desktop-environment tools (
gnome-screenshot
,
spectacle
,
flameshot
) come with the desktop;
scrot
and
maim
work anywhere on X11,
grim
on Wayland.
$
flameshot
gui
copy
$
gnome-screenshot
copy
$
spectacle
copy
$
scrot
copy
$
maim
[fileName].png
copy
$
grim
[fileName].png
copy
$
import
-window root [fileName].png
copy
Screen Recording
Record the screen with ffmpeg on X11 or
wf-recorder
on Wayland. For terminal sessions,
asciinema
records text instead of pixels.
$
ffmpeg
-f x11grab -i :0.0 recording.mp4
copy
$
wf-recorder
-f recording.mp4
copy
$
recordmydesktop
copy
$
asciinema
rec session.cast
copy
Webcam
Take a photo from the webcam.
$
fswebcam
[fileName].jpg
copy
$
ffmpeg
-f v4l2 -i /dev/video0 -frames:v 1 [fileName].jpg
copy
$
uvccapture
-d/dev/video0 -o[fileName].jpg
copy
Playing Audio & Video
mpv
and
vlc
play virtually anything.
ffplay
is ffmpeg's bare-bones player;
aplay
and
play
handle simple sound files.
$
mpv
[file]
copy
$
vlc
[file]
copy
$
ffplay
[file]
copy
$
aplay
sound.wav
copy
$
play
sound.wav
copy
Volume
alsamixer
and
pavucontrol
are the interactive mixers. From scripts,
pactl
controls the PulseAudio/PipeWire default output.
$
alsamixer
copy
$
pavucontrol
copy
$
pactl
set-sink-volume @DEFAULT_SINK@ +5%
copy
$
pactl
set-sink-mute @DEFAULT_SINK@ toggle
copy
$
amixer
set Master mute
copy
$
amixer
set Master unmute
copy
Recording Audio
Record from the default microphone.
$
arecord
-f cd [fileName].wav
copy
$
ffmpeg
-f alsa -i default [fileName].wav
copy
Speech & Beep
Make the computer talk, or play the classic PC speaker beep.
$
spd-say
"I am a robot"
copy
$
espeak
"I am a robot"
copy
$
beep
copy
Inspect Media Files
Show codecs, resolution, duration, and bitrate.
$
ffprobe
[file]
copy
$
mediainfo
[file]
copy
Converting with ffmpeg
ffmpeg picks the output format from the file extension, so plain conversion needs no flags.
$
ffmpeg
-i input.avi output.mp4
copy
$
ffmpeg
-i input.mp4 output.webm
copy
Extract the audio track as MP3 (
-vn
drops the video,
-b:a
sets the audio bitrate;
-q:a 0
uses best variable quality instead).
$
ffmpeg
-i video.mp4 -vn -b:a 192k audio.mp3
copy
$
ffmpeg
-i video.mp4 -vn -q:a 0 audio.mp3
copy
Resize a video;
-1
keeps the aspect ratio.
$
ffmpeg
-i input.mp4 -vf scale=1280:-1 output.mp4
copy
Cutting Video
-ss
sets the start,
-t
the duration.
-c copy
cuts without re-encoding: instant and lossless, but only accurate to the nearest keyframe.
$
ffmpeg
-ss 00:01:30 -i input.mp4 -t 00:00:20 -c copy clip.mp4
copy
$
ffmpeg
-ss 00:01:30 -i input.mp4 -t 00:00:20 clip.mp4
copy
Images & Video
Turn a numbered image sequence into a video and back, or make an animated GIF.
$
ffmpeg
-framerate 24 -i image%d.jpg video.mp4
copy
$
ffmpeg
-i video.mp4 image%d.jpg
copy
$
ffmpeg
-i video.mp4 -vf "fps=10,scale=480:-1" animation.gif
copy
Convert images to the WebP format.
$
gif2webp
[inputFile] -o [outputFile]
copy
$
img2webp
[inputFile] -o [outputFile]
copy
Copied to clipboard
Kai
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル