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