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