pymedia中的MuxerError

时间:2011-08-29 09:16:57

标签: python

所以我有这个代码,当我运行它时,我得到错误:

Traceback (most recent call last):
  File "C:/Users/tryer.py", line 7, in <module>
    da=dm.getInfo()
MuxerError: The header has not been read yet. Cannot get stream information.

-

    import glob
    import pymedia
    for x in glob.glob('C:\Downloaded/*mp3'):


        dm=pymedia.muxer.Demuxer( str.split( x, '.' )[ -1 ].lower() )
        da=dm.getInfo()
        print da
        a=da('title')

请帮忙

1 个答案:

答案 0 :(得分:0)

是否必须明确打开文件?

 f= wave.open( 'YOUR FILE NAME', 'rb' )

我不确定,但请尝试。