thebigmunch / audio-metadata

A library for reading and, in the future, writing audio metadata. https://audio-metadata.readthedocs.io/
https://forum.thebigmunch.me
MIT License
53 stars 11 forks source link

Running this doesn't give the right output #3

Closed p8tgames closed 5 years ago

p8tgames commented 5 years ago

I have set up this snippet right here (variation of example): import audio_metadata metadata = audio_metadata.load('Music.flac') print(metadata)

And it only outputs this:

<FLAC ({ 'filepath': 'C:\Users\ptgms\PycharmProjects\medialibs\Music.flac', 'filesize': '30.30 MiB', 'pictures': [

    })>,
],
'seektable': <FLACSeekTable (26 seekpoints)>,

})>,

})>,

})> I honestly have no idea why lmao thanks for help

p8tgames commented 5 years ago

yeah sorry for formatting, best i can do lol

thebigmunch commented 5 years ago

You want to use a fenced code block for formatting. I can't tell at all what the output you're getting actually is. You'll also have to say what you'd expect and probably post the file for me to test.

p8tgames commented 5 years ago

File trying to run: https://del.dog/bikefoxuna Output: https://del.dog/mabupixeni I expected the results as shown in the example. The Media file has an Vorbis comments like album name, Artist, etc. I can uplaod the FLAC if needed.

thebigmunch commented 5 years ago

I can uplaod the FLAC if needed.

Please do, because that output doesn't look like something that's possible.

p8tgames commented 5 years ago

sorry, always try things out with meme songs xD https://drive.google.com/open?id=15lkJXdYkh1M-4xdlQCcI5dijtlM5UJl2

thebigmunch commented 5 years ago

Loads perfectly fine here:

<FLAC ({
    'filepath': 'C:\\Users\\thebigmunch\\Downloads\\Music.flac',
    'filesize': '30.30 MiB',
    'pictures': [
        <VorbisPicture ({
            'colors': 0,
            'data': '77.06 KiB',
            'depth': 0,
            'description': '',
            'height': 640,
            'mime_type': 'image/jpeg',
            'type': <ID3PictureType.COVER_FRONT>,
            'width': 640,
        })>,
    ],
    'seektable': <FLACSeekTable (26 seekpoints)>,
    'streaminfo': <FLACStreamInfo ({
        'bit_depth': 16,
        'bitrate': '1009 Kbps',
        'channels': 2,
        'duration': '04:11',
        'md5': '777bd0eceb35920ca72d16c4b1ffb8d3',
        'sample_rate': '44.1 KHz',
    })>,
    'tags': <VorbisComment ({
        'album': ['Deja Vu (Initial D)'],
        'albumartist': ['Tsuko G.'],
        'artist': ['Tsuko G.'],
        'copyright': ['Tsuko Records'],
        'date': ['2017'],
        'discnumber': ['1'],
        'disctotal': ['1'],
        'isrc': ['QM2PV1715853'],
        'title': ['Deja Vu (Initial D)'],
        'tracknumber': ['1'],
        'tracktotal': ['1'],
        'upc': ['840094933231'],
    })>,
})>
p8tgames commented 5 years ago

i still get the weird output, weird. maybe i missed some dependency?

thebigmunch commented 5 years ago

I have no idea what is wrong on your system. All I can say is that it works on multiple systems I've tested on, so it's likely something on your end.