Skip to content

audio/mpeg wrong duration #2643

Description

@puzzle9

Is there an existing issue for this?

  • I have searched the existing issues

music-metadata version

v11.12.3

Current Behavior

Only by setting duration to true can the time be calculated

{
    "cover_path": null,
    "format": {
        "tagTypes": [
            "ID3v2.4"
        ],
        "trackInfo": [],
        "lossless": false,
        "hasAudio": true,
        "hasVideo": false,
        "container": "MPEG",
        "codec": "MPEG 2 Layer 2",
        "sampleRate": 22050,
        "bitrate": 8000,
        "codecProfile": "CBR",
        "numberOfChannels": 2,
        "numberOfSamples": 717835392,
        "duration": 32554.89306122449
    },
    "track": {
        "no": null,
        "of": null
    },
    "disk": {
        "no": null,
        "of": null
    },
    "movementIndex": {
        "no": null,
        "of": null
    },
    "title": "越走越远",
    "artists": [
        "吴克群"
    ],
    "artist": "吴克群",
    "album": "数星星的人"
}

Expected Behavior

吴克群 - 越走越远.001.zip
吴克群 - 越走越远.002.zip

Volume compression requires changing the name to. zip.001. zip.002

Attached audio sample?

  • I have provided sufficient information to reproduce the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, will addressed with high priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions