{
  "id": 171316,
  "title": "librosa load does not load all of mp3?",
  "url": "/competitions/birdsong-recognition/discussion/171316",
  "author_name": "",
  "post_date": "2020-07-31T09:42:04.275221200Z",
  "votes": 2,
  "comment_count": 2,
  "views": 0,
  "content": "<p>i try to align the annotation in RavenLite2 to the mp3 file loaded by librosa. I find that librosa does not load of mp3? Why?</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F113660%2F8fcea422210d361bd54b52de18fa1a66%2FSelection_054.png?generation=1596188521989583&amp;alt=media\" alt=\"\"></p>\n\n<p>the error results is the same if i librosa load with default sampling rate:\n<code>\nx, sample_rate = librosa.load(wave_file, sr=None)\n</code></p>\n\n<p>if i use torchaudio load, there is not problem.</p>\n\n<p><code>\ntorchaudio.load(wave_file)\n</code></p>",
  "messages": [
    {
      "id": "952891",
      "postDate": "07/31/2020 09:42:04",
      "content": "<p>i try to align the annotation in RavenLite2 to the mp3 file loaded by librosa. I find that librosa does not load of mp3? Why?</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F113660%2F8fcea422210d361bd54b52de18fa1a66%2FSelection_054.png?generation=1596188521989583&amp;alt=media\" alt=\"\"></p>\n\n<p>the error results is the same if i librosa load with default sampling rate:\n<code>\nx, sample_rate = librosa.load(wave_file, sr=None)\n</code></p>\n\n<p>if i use torchaudio load, there is not problem.</p>\n\n<p><code>\ntorchaudio.load(wave_file)\n</code></p>",
      "rawMarkdown": "i try to align the annotation in RavenLite2 to the mp3 file loaded by librosa. I find that librosa does not load of mp3? Why?\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F113660%2F8fcea422210d361bd54b52de18fa1a66%2FSelection_054.png?generation=1596188521989583&amp;alt=media)\n\nthe error results is the same if i librosa load with default sampling rate:\n```\nx, sample_rate = librosa.load(wave_file, sr=None)\n```\n\nif i use torchaudio load, there is not problem.\n\n```\ntorchaudio.load(wave_file)\n```",
      "votes": null
    },
    {
      "id": "952948",
      "postDate": "07/31/2020 11:02:29",
      "content": "<p>i think i know why. the mp3 tag reveal the following:\n<code>\nDuration: 00:00:04.18, start: 0.023021, bitrate: 107 kb/s\n</code></p>",
      "rawMarkdown": "i think i know why. the mp3 tag reveal the following:\n```\nDuration: 00:00:04.18, start: 0.023021, bitrate: 107 kb/s\n```",
      "votes": null
    },
    {
      "id": "958268",
      "postDate": "08/04/2020 22:21:25",
      "content": "<p>Hello, you may need to install either ffmpeg or GStreamer for that, please read this part of the documentation on MP3 decodingl:\n<a href=\"https://github.com/librosa/librosa#audioread-and-mp3-support\">https://github.com/librosa/librosa#audioread-and-mp3-support</a></p>",
      "rawMarkdown": "Hello, you may need to install either ffmpeg or GStreamer for that, please read this part of the documentation on MP3 decodingl:\nhttps://github.com/librosa/librosa#audioread-and-mp3-support",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 952948,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "07/31/2020 11:02:29",
      "content": "<p>i think i know why. the mp3 tag reveal the following:\n<code>\nDuration: 00:00:04.18, start: 0.023021, bitrate: 107 kb/s\n</code></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 958268,
      "author_name": "jainarindam",
      "author_url": "",
      "post_date": "08/04/2020 22:21:25",
      "content": "<p>Hello, you may need to install either ffmpeg or GStreamer for that, please read this part of the documentation on MP3 decodingl:\n<a href=\"https://github.com/librosa/librosa#audioread-and-mp3-support\">https://github.com/librosa/librosa#audioread-and-mp3-support</a></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "952891": "i try to align the annotation in RavenLite2 to the mp3 file loaded by librosa. I find that librosa does not load of mp3? Why?\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F113660%2F8fcea422210d361bd54b52de18fa1a66%2FSelection_054.png?generation=1596188521989583&amp;alt=media)\n\nthe error results is the same if i librosa load with default sampling rate:\n```\nx, sample_rate = librosa.load(wave_file, sr=None)\n```\n\nif i use torchaudio load, there is not problem.\n\n```\ntorchaudio.load(wave_file)\n```",
    "952948": "i think i know why. the mp3 tag reveal the following:\n```\nDuration: 00:00:04.18, start: 0.023021, bitrate: 107 kb/s\n```",
    "958268": "Hello, you may need to install either ffmpeg or GStreamer for that, please read this part of the documentation on MP3 decodingl:\nhttps://github.com/librosa/librosa#audioread-and-mp3-support"
  },
  "source": "meta"
}