1 |
On Tue, 31 Mar 2009 00:40:17 +0400 |
2 |
Vasya Volkov <my.pipes.burn@×××××.com> wrote: |
3 |
|
4 |
> Hello. |
5 |
> Can you suggest some simple program which can make these functions: |
6 |
> 1).ape,.cue splitting 2)converting flac/ape/wav to ogg mp3 etc. |
7 |
> 3)cutting parts of audio files? Please with overlay if one there is. |
8 |
> |
9 |
|
10 |
I use following simple script for flac->mp3 conversion: |
11 |
===== |
12 |
#!/bin/bash |
13 |
|
14 |
lame_opts="--vbr-new -V 2 -B 256" |
15 |
|
16 |
for FLAC in $@; do |
17 |
|
18 |
MP3=`basename "${FLAC%.flac}.mp3"` |
19 |
|
20 |
TAGS="TITLE TRACKNUMBER GENRE DATE COMMENT ARTIST ALBUM\ |
21 |
Title Tracknumber Genre Date Comment Artist Album" |
22 |
for VAR in $TAGS; do eval "$VAR=''"; done |
23 |
|
24 |
eval $(metaflac --export-tags-to=- "$FLAC" | sed 's/=\(.*\)/="\1"/') |
25 |
|
26 |
[ -z "$TITLE" ] && TITLE="$Title" |
27 |
[ -z "$TRACKNUMBER" ] && TRACKNUMBER="$Tracknumber" |
28 |
[ -z "$GENRE" ] && GENRE="$Genre" |
29 |
[ -z "$DATE" ] && DATE="$Date" |
30 |
[ -z "$COMMENT" ] && COMMENT="$Comment" |
31 |
[ -z "$ARTIST" ] && ARTIST="$Artist" |
32 |
[ -z "$ALBUM" ] && ALBUM="$Album" |
33 |
|
34 |
echo "Converting $FLAC to mp3: $MP3" |
35 |
|
36 |
flac -c -d "$FLAC" | lame $lame_opts - "$MP3" |
37 |
|
38 |
id3tag \ |
39 |
--artist="$ARTIST" \ |
40 |
--album="$ALBUM" \ |
41 |
--song="$TITLE" \ |
42 |
--track="$TRACKNUMBER" \ |
43 |
--genre="$GENRE" \ |
44 |
--year="$DATE" \ |
45 |
--comment="$COMMENT" \ |
46 |
"$MP3" |
47 |
|
48 |
done |
49 |
===== |
50 |
|
51 |
Script actually depends on following packages (main tree): |
52 |
media-libs/flac |
53 |
media-libs/id3lib |
54 |
media-sound/lame |
55 |
|
56 |
|
57 |
|
58 |
I'm sorry for posting following on the list, since it's non-english. |
59 |
Just disregard the rest of the message, please :) |
60 |
|
61 |
Concerning ape, there were some suggestions in (quite recent) "ape 2 |
62 |
wav (flac)" thread on gentoo-user-ru mailing list: |
63 |
http://archives.gentoo.org/gentoo-user-ru/msg_060cfe116536e31d0b823d7d5117e999.xml |
64 |
Also, check out this link (if you haven't stumbled upon it already): |
65 |
http://engraver.wordpress.com/2009/01/03/monkeys-audio-ape-cue-%D0%B2-gentoo/ |
66 |
|
67 |
-- |
68 |
Mike Kazantsev // fraggod.net |