Disable pc speaker beep in Linux
Shell Script (Bash) posted over 2 years ago by marko
Not really a snippet, still a good fix for a big annoyance. Temporarily disable the speaker by removing the driver for it.
1 sudo rmmod pcspkr
To make the silence more permanent add this line into /etc/modprob.d/blacklist
1 blacklist pcspkr
Create an flv movie
Shell Script (Bash) posted over 2 years ago by marko
Create an flv movie that is 320 wide by 240 high. For audio functionality ffmpeg needs to be compiled with the following parameters:
1 --enable-amr_nb 2 --enable-amr_nb-fixed 3 --enable-amr_wb 4 --enable-mp3lame
The snippet itself:
1 ffmpeg -i mymovie.avi -s 320x240 -ar 44100 -r 12 mymovie.flv