Ulrich Windl
2007-Mar-08 01:22 UTC
[Vorbis] Q: Tool to copy Vorbis comments to MP3 ID tags
Hi, I'm wondering: If you have audio files like foo1.ogg and foo1.mp3, and the Vorbis file has nice comments (title, tracknumber, artist, album, date, etc), is there a tool to copy the information to an MP3 file on a "best effort" strategy? I know that MP3 TAGs are quite limited regarding lengths. Regards, Ulrich
Ulrich Windl
2007-Mar-08 06:39 UTC
[Vorbis] Q: Tool to copy Vorbis comments to MP3 ID tags
On 8 Mar 2007 at 16:55, Pandu E Poluan wrote:> foobar2000Actually I was thinking about a command-line tool (scriptable), because the files to update are more than 600. Regards, Ulrich> > On 3/8/07, Ulrich Windl <ulrich.windl@rz.uni-regensburg.de> wrote: > > > > Hi, > > > > I'm wondering: If you have audio files like foo1.ogg and foo1.mp3, and the > > Vorbis > > file has nice comments (title, tracknumber, artist, album, date, etc), is > > there a > > tool to copy the information to an MP3 file on a "best effort" strategy? > > > > I know that MP3 TAGs are quite limited regarding lengths. > > > > Regards, > > Ulrich > > > > _______________________________________________ > > Vorbis mailing list > > Vorbis@xiph.org > > http://lists.xiph.org/mailman/listinfo/vorbis > > >
Frédéric Bastien
2007-Mar-08 06:54 UTC
[Vorbis] Q: Tool to copy Vorbis comments to MP3 ID tags
Hi, here is a script in bash that will run on cygwin or linux that do it. It need the application metaflac and id3v2. It take two parameter, the first one is the flac file and the second is the mp3 file. Hope this help Fr?d?ric Bastien ---begin after this line--- #!/bin/bash SOURCE=$1 OUTF=$2 ID3=id3v2 ARTIST=`metaflac "$SOURCE" --show-tag=ARTIST | sed s/.*=//g` TITLE=`metaflac "$SOURCE" --show-tag=TITLE | sed s/.*=//g` ALBUM=`metaflac "$SOURCE" --show-tag=ALBUM | sed s/.*=//g` GENRE=`metaflac "$SOURCE" --show-tag=GENRE | sed s/.*=//g` TRACKNUMBER=`metaflac "$SOURCE" --show-tag=TRACKNUMBER | sed s/.*=//g` TRACKTOTAL=`metaflac "$SOURCE" --show-tag=TRACKTOTAL | sed s/.*=//g` YEAR=`metaflac "$SOURCE" --show-tag=DATE | sed s/.*=//g | cut -b -4` if test "x$TITLE" != "x"; then $ID3 --song="$TITLE" "$OUTF" > /dev/null fi if test "x$TRACKNUMBER" != "x"; then $ID3 --track="$TRACKNUMBER" "$OUTF" > /dev/null fi if test "x$TRACKTOTAL" != "x"; then $ID3 -T "$TRACKTOTAL" "$OUTF" > /dev/null fi if test "x$ARTIST" != "x"; then $ID3 --artist="$ARTIST" "$OUTF" > /dev/null fi if test "x$ALBUM" != "x"; then $ID3 --album="$ALBUM" "$OUTF" > /dev/null fi if test "x$GENRE" != "x"; then $ID3 --genre="$GENRE" "$OUTF" > /dev/null fi if test "x$YEAR" != "x"; then $ID3 -year="$YEAR" "$OUTF" > /dev/null fi