You are not logged in.

#1 2012-07-29 14:49:26

seayatou
Member
From: China
Registered: 2012-02-27
Posts: 2

a method to set mp3 tag to use unicode encoded string

First, forgive me for my bad english. ;-)

I want to listen some chinese songs, BUT when i download the mp3 files,it can't be displayed normaly in Rhythmbox. I search a lot and tryed pyid3lib and mp3unicode, but falied, then i find eyeD3 works.Now i list the method:
you need python-eyeD3 installed.Then you can use it to manipulate the tag in the mp3 file.
i write the follow script:

#!/bin/bash

files=`ls *.mp3`
for f in $files
do 
	echo -n "do $f..."
	num=`echo $f | gawk -F'.' '{print $1}'`
	eyeD3 --remove-all $f
	eyeD3 --set-encoding=utf8 --to-v2.4 -a "叶倩" -A "子成 - 叶倩" -t "子成 - "$num -n $num --add-image=./front_cover.jpg:FRONT_COVER $f
	if [ $? == "0" ] ; then
		echo "OK"
	else
		echo "FAILED"
		break
	fi
done

This script was working for me, so if you get something wrong, "man eyeD3" would help you, or you can post me.  smile

Offline

#2 2012-08-01 16:42:15

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: a method to set mp3 tag to use unicode encoded string

Maybe you can add this to the wiki.

Offline

Board footer

Powered by FluxBB