m4a 转MP3

import os
for filename in os.listdir(r'.'):
    print filename
    os.rename(filename,filename.replace(' ','_'))
    cmd= "avconv -i "+filename.replace(' ','_') + " ./mp3/"+ filename.replace('m4a','mp3').replace(' ','_')
    print cmd
    os.system(cmd)

 

posted @ 2019-06-19 23:58  ahuo  阅读(715)  评论(0编辑  收藏  举报