Utilidades variadas

Montando um pendrive USB na mão:

mount -t vfat -o umask=0000 /dev/sda1 /mnt/pen

Convertendo .mpc para .mp3
instale o mppdec
rode o script:

for a in *.mpc; do n=`echo $a| cut -d. -f1`.wav;mppdec $a$n;done
for a in *.wav; do n=`echo $a| cut -d. -f1`.mp3;lame -h $a$n;done
rm *.mpc *.wav

Extraindo som de um vídeo

mplayer -vo null -dumpaudio -dumpfile arquivo.mp3 arquivo.avi

Baixando localmente um stream RealAudio

mplayer -dumpstream rtsp://adress-of-stream

o arquivo stream.dump contém o stream local

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s