From: Chris Koeritz Date: Wed, 25 Jan 2012 13:25:05 +0000 (-0500) Subject: moving some more example files into better places. X-Git-Tag: 2.140.90~1656^2~18 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=a956d26c709e5b2e6af243e0098953b509892f91;hp=3f07357c22fbb0c077c25f68fff7160464da3421;p=feisty_meow.git moving some more example files into better places. --- diff --git a/scripts/demo/OS_crusher.bat b/scripts/demo/OS_crusher.bat deleted file mode 100644 index 8adabbea..00000000 --- a/scripts/demo/OS_crusher.bat +++ /dev/null @@ -1,7 +0,0 @@ - - -:top -start "eep" "%0" -start "op" "%0" - -goto :top diff --git a/scripts/demo/OS_crusher.sh b/scripts/demo/OS_crusher.sh deleted file mode 100644 index 7c1683fa..00000000 --- a/scripts/demo/OS_crusher.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -while true; do - $0 & - $0 & -done - diff --git a/scripts/demo/wma2mp3.sh b/scripts/demo/wma2mp3.sh deleted file mode 100644 index a0224ef3..00000000 --- a/scripts/demo/wma2mp3.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash - -# wma to mp3 script by mtron -# from http://ubuntuforums.org/showthread.php?t=37793 - -# have found that soundconverter package on ubuntu works on more types -# and is a bit more polished, but mtron's script kicks ass anyhow, if all -# you need is wma -> mp3 conversions. -# --fred hamster - -zenity --info \ - --text="this script converts all wma files in the current folder -to mp3s and puts them in the folder output - -all lame command line options can be set in the next step. - -usage: - lame -m s: for stereo mp3 output - lame -m s V 3-4-5: for stereo mp3 output with VBR" - -# Dialog box to choose output quality -FORMAT=$(zenity --list --title="Choose mp3 output quality" --radiolist --column="Check" --column="Quality (editable)" --editable "" "lame -m s" "" "lame -m s -V 3" "" "lame -m s -V 4" "" "lame -m s -V 5") - -if [ $FORMAT -eq ""]; then -zenity --error --text="mp3 output quality not defined or no wma file found - -usage: - lame -m s: for stereo mp3 output - lame -m s V 3-4-5: for stereo mp3 output with VBR - -type: lame --longhelp -for all command line options " -exit 1 -fi - -mkdir -p output -cp *.wma output -cd output - -# How many files to make the progress bar -PROGRESS=0 -NUMBER_OF_FILES=$(find -iname "*.wma") -let "INCREMENT=100/$NUMBER_OF_FILES" - -#remove spaces -(for i in *.wma; do mv "$i" $(echo $i | tr ' ' '_'); done - -#remove uppercase -for i in *.[Ww][Mm][Aa]; do mv "$i" $(echo $i | tr '[A-Z]' '[a-z]'); done - -#Rip with Mplayer / encode with LAME -for i in *.wma ; do -echo "$PROGRESS"; -echo "# Re-Coding $i"; -mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $i && $FORMAT audiodump.wav -o $i; -let "PROGRESS+=$INCREMENT" -done - -#convert file names -for i in *.wma; do mv "$i" "$(basename "$i" .wma).mp3"; -done - -rm audiodump.wav -let "PROGRESS+=$INCREMENT" -) | zenity --progress --title "$Recoding...encoding..." --percentage=0 - - diff --git a/scripts/examples/multimedia/wma2mp3.sh b/scripts/examples/multimedia/wma2mp3.sh new file mode 100644 index 00000000..a0224ef3 --- /dev/null +++ b/scripts/examples/multimedia/wma2mp3.sh @@ -0,0 +1,67 @@ +#!/bin/bash + +# wma to mp3 script by mtron +# from http://ubuntuforums.org/showthread.php?t=37793 + +# have found that soundconverter package on ubuntu works on more types +# and is a bit more polished, but mtron's script kicks ass anyhow, if all +# you need is wma -> mp3 conversions. +# --fred hamster + +zenity --info \ + --text="this script converts all wma files in the current folder +to mp3s and puts them in the folder output + +all lame command line options can be set in the next step. + +usage: + lame -m s: for stereo mp3 output + lame -m s V 3-4-5: for stereo mp3 output with VBR" + +# Dialog box to choose output quality +FORMAT=$(zenity --list --title="Choose mp3 output quality" --radiolist --column="Check" --column="Quality (editable)" --editable "" "lame -m s" "" "lame -m s -V 3" "" "lame -m s -V 4" "" "lame -m s -V 5") + +if [ $FORMAT -eq ""]; then +zenity --error --text="mp3 output quality not defined or no wma file found + +usage: + lame -m s: for stereo mp3 output + lame -m s V 3-4-5: for stereo mp3 output with VBR + +type: lame --longhelp +for all command line options " +exit 1 +fi + +mkdir -p output +cp *.wma output +cd output + +# How many files to make the progress bar +PROGRESS=0 +NUMBER_OF_FILES=$(find -iname "*.wma") +let "INCREMENT=100/$NUMBER_OF_FILES" + +#remove spaces +(for i in *.wma; do mv "$i" $(echo $i | tr ' ' '_'); done + +#remove uppercase +for i in *.[Ww][Mm][Aa]; do mv "$i" $(echo $i | tr '[A-Z]' '[a-z]'); done + +#Rip with Mplayer / encode with LAME +for i in *.wma ; do +echo "$PROGRESS"; +echo "# Re-Coding $i"; +mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $i && $FORMAT audiodump.wav -o $i; +let "PROGRESS+=$INCREMENT" +done + +#convert file names +for i in *.wma; do mv "$i" "$(basename "$i" .wma).mp3"; +done + +rm audiodump.wav +let "PROGRESS+=$INCREMENT" +) | zenity --progress --title "$Recoding...encoding..." --percentage=0 + + diff --git a/scripts/examples/os_related/OS_crusher.bat b/scripts/examples/os_related/OS_crusher.bat new file mode 100644 index 00000000..8adabbea --- /dev/null +++ b/scripts/examples/os_related/OS_crusher.bat @@ -0,0 +1,7 @@ + + +:top +start "eep" "%0" +start "op" "%0" + +goto :top diff --git a/scripts/examples/os_related/OS_crusher.sh b/scripts/examples/os_related/OS_crusher.sh new file mode 100644 index 00000000..7c1683fa --- /dev/null +++ b/scripts/examples/os_related/OS_crusher.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +while true; do + $0 & + $0 & +done +