2011-08-28 3 views
1

큰 MP3 디렉토리가 있고 어쨌든 파일의 album 태그 (또는 album names) (실제로는 수백 개)의 값이 실제로는 값입니다 artist 태그 (또는 artist names) 또는 그 반대의 경우mp3 태그의 값을 MP3 파일 일괄의 다른 태그에 복사

이제 디렉토리의 각 파일마다 스왑되도록 값을 복사해야합니다. 또는 태그 이름을 바꿀 수 있습니다. 그냥 artist 태그에 아티스트 이름을 표시하고 album 태그로 앨범 이름을 표시하기 만하면됩니다.

배치 편집으로 어떻게해야합니까?

+0

ogg와 flac, 아티스트와 타이틀을 각각 바꾸기 위해이 작업을 수행해야합니다. 리눅스에서. – kaleissin

답변

1

불행하게도 오히려 까다 롭습니다 MP3 태그하지만 다음과 같은 파이썬 스크립트 (라이브러리 돌연 변이 필요) 적어도 내 자신의 문제를 해결, OGG 및 FLAC에 대한 작업을 수행합니다.

#! /usr/bin/env python 
# Copyright (c) 2011 kaleissin 
# MIT License, see http://www.opensource.org/licenses/mit-license.php 

import mutagen 
import os 
import os.path 

if len(sys.argv[1:]) < 1: 
    print "Usage: %s <file> [file..]" % os.path.basename(__file__) 

for filename in sys.argv[1:]: 
    audio = mutagen.File(filename) 
    audio['artist'], audio['title'] = audio['title'], audio['artist'] 
    audio.save() 
+0

시도했지만 작동하지 않았습니다. 그게 작동하면 몇 가지 수정 및 업데이 트를 시도합니다 여기에. – amar

0

ID3 대량 술래 (https://github.com/squell/id3)이 도움이 될 것입니다. Windows 및 Linux에서 작동합니다.

모든 mp3 파일의 아티스트 및 앨범 필드를 바꿉니다.

id3 -a %l -l %a "*.mp3" 

Sets keys: 
-a sets the artist key 
-l sets the album key 

Substitutes of current key values: 
%t title 
%a artist 
%l album title 
%n track number 
%y year 
%g genre 
%c comment field 
%f file name (without path) 
%p path to filename 

먼저 샘플을 사용하십시오.