bzr2git conversion script, direct mp4 to mp3 converter

This commit is contained in:
Markus Birth 2013-04-16 15:10:01 +02:00
parent 119c3f81cb
commit 1a9de96761
4 changed files with 62 additions and 0 deletions

28
bzr2git.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
PWD=`pwd`
DIRNAME=`basename "$PWD"`
GITDIR="../$DIRNAME.GIT"
echo "Processing: $DIRNAME"
if [ ! -d ".bzr" ]; then
echo "No .bzr directory here. Is this a BZR branch?"
exit 1
fi
if [ -d "$GITDIR" ]; then
echo "$GITDIR already exists. Rename it and try again."
exit 2
fi
echo "Creating bzr-git repo in $GITDIR"
mkdir "$GITDIR"
bzr init --format=git "$GITDIR"
echo "Pushing revisions to $GITDIR"
bzr dpush "$GITDIR"
echo "cd'ing"
cd "$GITDIR"
echo "Fixing branch"
git branch master
git checkout master
echo "Resetting branch"
git reset --hard HEAD
echo "cd'ing back"
cd -
echo "All done."

12
mp3lame4.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
if [ "$#" = "0" ]; then
echo "Usage: $0 file1 [file2 file3 ... fileN]"
exit 1
fi
while [ "$#" -gt 0 ]; do
echo "Processing $1 ($# more left)..."
#lame -m j --replaygain-fast --preset extreme -q 4 --vbr-new -V 4 -o --id3v2-only "$1" "$1.mp3"
lame -m j --replaygain-fast --vbr-new -V 4 -o --id3v2-only --resample 44.1 "$1" "$1.mp3"
shift
done

11
mp42mp3.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
if [ "$#" = "0" ]; then
echo "Usage: $0 file1 [file2 file3 ... fileN]"
exit 1
fi
while [ "$#" -gt 0 ]; do
echo "Processing $1 ($# more left)..."
avconv -i "$1" -f wav -vn - | lame -m j --replaygain-fast --vbr-new -V 2 -o --id3v2-only --resample 44.1 - "$1.mp3"
shift
done

11
mp42mp3_V4.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
if [ "$#" = "0" ]; then
echo "Usage: $0 file1 [file2 file3 ... fileN]"
exit 1
fi
while [ "$#" -gt 0 ]; do
echo "Processing $1 ($# more left)..."
avconv -i "$1" -f wav -vn - | lame -m j --replaygain-fast --vbr-new -V 4 -o --id3v2-only --resample 44.1 - "$1.mp3"
shift
done