Video & Audio

Take screenshot of the desktop

$ import -window root [fileName]
copy

Take webcam photo

$ uvccapture -d/dev/video0 -oscreenURC.jpg -m
copy

Play text by computer voice

$ spd-say "I am a robot"
copy

Play sound file in wav format

$ aplay /usr/share/sounds/alsa/Noise.wav
copy
$ play /usr/share/sounds/alsa/Noise.wav
copy

The classical way to play a beep sound through the PC speakers

$ beep
copy

Mute volume

$ amixer set Master mute
copy
$ pactl set-sink-mute 0 1
copy

Turn images to a video sequence

$ ffmpeg -f image2 -i image%d.jpg [fileName].mpg
copy

Turn a video to images

$ ffmpeg -i video.mpg image%d.jpg
copy

Convert sound from a video to mp3

$ ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192k -f mp3 sound.mp3
copy

Convert mpg to avi

$ ffmpeg -i video_origine.mpg video_finale.avi
copy

Convert avi to mpg

$ ffmpeg -i video_origine.avi video_finale.mpg
copy

Convert avi to flv

$ ffmpeg -i video_origine.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv video_finale.flv
copy

Convert avi to animated gif

$ ffmpeg -i video_origine.avi gif_anime.gif
copy
Copied to clipboard
free 100$ digital ocean credit