As it is generall multimedia stuff, almost everything here should work on all other unices and Linux.
# ----------------------------------------------
ffmpeg -y -i too_big_moovie.mp4 -strict experimental -s wvga -sameq -ac 2 desired_film.avi
#!/bin/sh
# To make video from Sony-Ericsson phones smaller and usable
for i in ./*.MTS
do
o=`echo $i.avi |sed -e s/.MTS//g`
ffmpeg -i $i -s 768x432 -sameq $o
the file $i successfully resized as $o
done
# ----------------------------------------------
mplayer -dumpstream "http://media.rozhlas.cz/stream/_audio/2776365.mp3" -dumpfile my_captured_audio.mp3
# ----------------------------------------------
mplayer -dumpfile vatican_25.wma -dumpstream mms://netshow.play.cz/proglas/audio_10642.wma
# ----------------------------------------------
# zmensi a prepise puvodni soubor
mogrify -resize 1024x768 $i
echo "zmensil jsem obrazek $i ." ;
fi
done
for j in *.jpg ;
do
if test -f $j
then
# zmensi a zapise do noveho souboru
#convert -resize 800x600 $j
# zmensi a prepise puvodni soubor
mogrify -resize 1024x768 $j
echo "zmensil jsem obrazek $j ." ;
fi
done
sleep 5
# ----------------------------------------------
#!/bin/bash
# TRANSCODES FLAG TO OGG
for a in *.flac
do
OUTF=`echo "$a" | sed s/\.flac$/.ogg/g`
ARTIST=`metaflac "$a" --show-tag=ARTIST | sed s/.*=//g`
TITLE=`metaflac "$a" --show-tag=TITLE | sed s/.*=//g`
ALBUM=`metaflac "$a" --show-tag=ALBUM | sed s/.*=//g`
GENRE=`metaflac "$a" --show-tag=GENRE | sed s/.*=//g`
TRACKNUMBER=`metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g`
DATE=`metaflac "$a" --show-tag=DATE | sed s/.*=//g`
echo "$a"
flac -c -d "$a" | oggenc -q 8 -a "$ARTIST" -G "$GENRE" -t "$TITLE" -d "$DATE" -n "$TRACKNUMBER" -l "$ALBUM" - -o "$OUTF"
done
# ----------------------------------------------
01 #!/bin/bash
02 # TRANSCODES A WMA INTO MP3
03 current_directory=$( pwd )
04
05 #remove spaces
06 for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done
07
08 #remove uppercase
09 for i in *.[Ww][Mm][Aa]; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done
10
11 #Rip with Mplayer / encode with LAME
12 for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $i && lame -m s
audiodump.wav -o $i; done
13
14 #convert file names
15 for i in *.wma; do mv "$i" "`basename "$i" .wma`.mp3"; done
16
17 rm audiodump.wav
- HOME
~~~~~~~~~~~~~~~
- OpenBSD
- NetBSD
- FreeBSD
- Linux
- Solaris
- Windows
~~~~~~~~~~~~~~~
- Git
- Ansible
- Atlassian
- Network tools
- Qemu
- Virtualbox
- Vim
- Tmux
- Mutt
- STar
~~~~~~~~~~~~~~~
- MySQL
- PostgreSQL
- Postfix
- OpenSSL
- tcpdump
- SSH
~~~~~~~~~~~~~~~
- Packet Filter
- IP Filter
~~~~~~~~~~~~~~~
- Bash
- web-dev
- Hacking
- LINUX DAYS