audio snippets

Create an flv movie

Tagged flv, movie, audio, ffmpeg, flash  Languages bash

Create an flv movie that is 320 wide by 240 high. For audio functionality ffmpeg needs to be compiled with the following parameters:

--enable-amr_nb 
--enable-amr_nb-fixed 
--enable-amr_wb 
--enable-mp3lame

The snippet itself:

ffmpeg -i mymovie.avi -s 320x240 -ar 44100 -r 12 mymovie.flv

Disable pc speaker beep in Linux

Tagged pc speaker, linux, quiet, disable, audio, beep  Languages bash

Not really a snippet, still a good fix for a big annoyance. Temporarily disable the speaker by removing the driver for it.

sudo rmmod pcspkr

To make the silence more permanent add this line into /etc/modprob.d/blacklist

blacklist pcspkr