{"action":"created","issue":{"url":"https://api.github.com/repos/beetbox/audioread/issues/31","repository_url":"https://api.github.com/repos/beetbox/audioread","labels_url":"https://api.github.com/repos/beetbox/audioread/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/beetbox/audioread/issues/31/comments","events_url":"https://api.github.com/repos/beetbox/audioread/issues/31/events","html_url":"https://github.com/beetbox/audioread/issues/31","id":155116695,"number":31,"title":"gstreamer not getting duration","user":{"login":"matthysk","id":2802896,"avatar_url":"https://avatars.githubusercontent.com/u/2802896?v=3","gravatar_id":"","url":"https://api.github.com/users/matthysk","html_url":"https://github.com/matthysk","followers_url":"https://api.github.com/users/matthysk/followers","following_url":"https://api.github.com/users/matthysk/following{/other_user}","gists_url":"https://api.github.com/users/matthysk/gists{/gist_id}","starred_url":"https://api.github.com/users/matthysk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthysk/subscriptions","organizations_url":"https://api.github.com/users/matthysk/orgs","repos_url":"https://api.github.com/users/matthysk/repos","events_url":"https://api.github.com/users/matthysk/events{/privacy}","received_events_url":"https://api.github.com/users/matthysk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-16T20:39:43Z","updated_at":"2016-05-16T22:29:08Z","closed_at":null,"body":"Hi,\r\n\r\nI've installed beets on linux mint 17.3.\r\n\r\nI'm trying to get the chroma plugin to work but I got an error during import with every mp3 file saying\r\n\r\n'''chroma: fingerprinting of 'music_raw/foo.mp3' failed: audio could not be decoded'''\r\n\r\nI tried digging a bit in ipython and got to this point:\r\n\r\n```\r\nIn [10]: f = gstdec.GstAudioFile(\"Pearl Jam - I Am Mine.mp3\")\r\n---------------------------------------------------------------------------\r\nMetadataMissingError                      Traceback (most recent call last)\r\n<ipython-input-10-ae222d97b34d> in <module>()\r\n----> 1 f = gstdec.GstAudioFile(\"Leona Lewis - Bleeding in Love.mp3\")\r\n\r\n/usr/local/lib/python2.7/dist-packages/audioread/gstdec.pyc in __init__(self, path)\r\n    256             # An error occurred before the stream became ready.\r\n    257             self.close(True)\r\n--> 258             raise self.read_exc\r\n    259 \r\n    260     # Gstreamer callbacks.\r\n\r\nMetadataMissingError: duration not available\r\n```\r\n\r\nI am able to play these files in other music players.\r\n\r\nNot sure what information you need to reproduce the error but if you let know I'll post it.\r\n\r\nPython libs:\r\n\r\n```\r\n$pip freeze\r\nBeautifulSoup==3.2.1\r\nMako==0.9.1\r\nMarkupSafe==0.18\r\nPAM==0.4.2\r\nPillow==2.3.0\r\nPyBluez==0.18\r\nPyYAML==3.11\r\nTwisted-Core==13.2.0\r\nTwisted-Names==13.2.0\r\nTwisted-Web==13.2.0\r\nUnidecode==0.04.19\r\napt-xapian-index==0.45\r\napturl==0.4.1ubuntu4\r\nargparse==1.2.1\r\naudioread==2.1.2\r\nbeets==1.3.17\r\nccsm==0.9.11.3\r\nchardet==2.0.1\r\ncolorama==0.2.5\r\ncommand-not-found==0.3\r\ncompizconfig-python==0.9.11.3\r\nconfigglue==1.1.2\r\nconfigobj==4.7.2\r\ndebtagshw==0.1\r\ndecorator==3.4.0\r\ndefer==1.0.6\r\ndirspec==13.10\r\ndnspython==1.11.1\r\nduplicity==0.6.23\r\nenum34==1.1.6\r\nfeedparser==5.1.3\r\nhtml5lib==0.999\r\nhttplib2==0.8\r\niotop==0.6\r\nipython==1.2.1\r\njellyfish==0.5.4\r\nlockfile==0.8\r\nlxml==3.3.3\r\nmunkres==1.0.7\r\nmusicbrainzngs==0.6\r\nmutagen==1.32\r\noauthlib==0.6.1\r\noneconf==0.3.7.14.04.1\r\nparamiko==1.10.1\r\npexpect==3.1\r\npiston-mini-client==0.7.5\r\nprotobuf==2.5.0\r\npyOpenSSL==0.13\r\npyacoustid==1.1.0\r\npycrypto==2.6.1\r\npycups==1.9.66\r\npycurl==7.19.3\r\npygobject==3.12.0\r\npyinotify==0.9.4\r\npyserial==2.6\r\npysmbc==1.0.14.1\r\npython-apt==0.9.3.5ubuntu2\r\npython-debian==0.1.21-nmu2ubuntu2\r\npython-xlib==0.14\r\npyxdg==0.25\r\nreportlab==3.0\r\nrequests==2.2.1\r\nsessioninstaller==0.0.0\r\nsimplegeneric==0.8.1\r\nsimplejson==3.3.1\r\nsix==1.5.2\r\nsystem-service==0.1.6\r\ntrimage==1.0.2\r\nuTidylib==0.2\r\nurllib3==1.7.1\r\nvboxapi==1.0\r\nvirtualenv==1.11.4\r\nwsgiref==0.1.2\r\nzope.interface==4.0.5\r\n```\r\n\r\nGstreamer version:\r\n```\r\n$gst-play-1.0 --version\r\ngst-play-1.0 version 1.2.4\r\nGStreamer 1.2.4\r\nhttps://launchpad.net/distros/ubuntu/+source/gst-plugins-base1.0\r\n```\r\nAny help will be appreciated!"},"comment":{"url":"https://api.github.com/repos/beetbox/audioread/issues/comments/219567789","html_url":"https://github.com/beetbox/audioread/issues/31#issuecomment-219567789","issue_url":"https://api.github.com/repos/beetbox/audioread/issues/31","id":219567789,"user":{"login":"sampsyo","id":188033,"avatar_url":"https://avatars.githubusercontent.com/u/188033?v=3","gravatar_id":"","url":"https://api.github.com/users/sampsyo","html_url":"https://github.com/sampsyo","followers_url":"https://api.github.com/users/sampsyo/followers","following_url":"https://api.github.com/users/sampsyo/following{/other_user}","gists_url":"https://api.github.com/users/sampsyo/gists{/gist_id}","starred_url":"https://api.github.com/users/sampsyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampsyo/subscriptions","organizations_url":"https://api.github.com/users/sampsyo/orgs","repos_url":"https://api.github.com/users/sampsyo/repos","events_url":"https://api.github.com/users/sampsyo/events{/privacy}","received_events_url":"https://api.github.com/users/sampsyo/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T22:29:08Z","updated_at":"2016-05-16T22:29:08Z","body":"Thanks, @jrobeson; I was freehanding and mixed up the GStreamer commands. :cry:\r\n\r\nYes, I only saw this for very short files, but the symptom here seems to be the same: no duration available for MP3s. Maybe there's something related happening."}}