Mike Kazantsev пишет:
On Tue, 31 Mar 2009 00:40:17 +0400
Vasya Volkov <my.pipes.b...@gmail.com> wrote:

Hello.
Can you suggest some simple program which can make these functions: 1).ape,.cue splitting 2)converting flac/ape/wav to ogg mp3 etc. 3)cutting parts of audio files? Please with overlay if one there is.


I use following simple script for flac->mp3 conversion:
=====
#!/bin/bash

lame_opts="--vbr-new -V 2 -B 256"

for FLAC in $@; do

        MP3=`basename "${FLAC%.flac}.mp3"`

        TAGS="TITLE TRACKNUMBER GENRE DATE COMMENT ARTIST ALBUM\
                Title Tracknumber Genre Date Comment Artist Album"
        for VAR in $TAGS; do eval "$VAR=''"; done

        eval $(metaflac --export-tags-to=- "$FLAC" | sed 's/=\(.*\)/="\1"/')

        [ -z "$TITLE" ] && TITLE="$Title"
        [ -z "$TRACKNUMBER" ] && TRACKNUMBER="$Tracknumber"
        [ -z "$GENRE" ] && GENRE="$Genre"
        [ -z "$DATE" ] && DATE="$Date"
        [ -z "$COMMENT" ] && COMMENT="$Comment"
        [ -z "$ARTIST" ] && ARTIST="$Artist"
        [ -z "$ALBUM" ] && ALBUM="$Album"

        echo "Converting $FLAC to mp3: $MP3"

        flac -c -d "$FLAC" | lame $lame_opts - "$MP3"

        id3tag \
                --artist="$ARTIST" \
                --album="$ALBUM" \
                --song="$TITLE" \
                --track="$TRACKNUMBER" \
                --genre="$GENRE" \
                --year="$DATE" \
                --comment="$COMMENT" \
                "$MP3"

done
=====

Script actually depends on following packages (main tree):
  media-libs/flac
  media-libs/id3lib
  media-sound/lame



I'm sorry for posting following on the list, since it's non-english.
Just disregard the rest of the message, please :)

Concerning ape, there were some suggestions in (quite recent) "ape 2
wav (flac)" thread on gentoo-user-ru mailing list:
http://archives.gentoo.org/gentoo-user-ru/msg_060cfe116536e31d0b823d7d5117e999.xml
Also, check out this link (if you haven't stumbled upon it already):
http://engraver.wordpress.com/2009/01/03/monkeys-audio-ape-cue-%D0%B2-gentoo/

Thanks. That's good. But can you suggest programm to convert wav to mp3?

Reply via email to