{"action":"created","issue":{"url":"https://api.github.com/repos/ampache/ampache/issues/678","labels_url":"https://api.github.com/repos/ampache/ampache/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/ampache/ampache/issues/678/comments","events_url":"https://api.github.com/repos/ampache/ampache/issues/678/events","html_url":"https://github.com/ampache/ampache/issues/678","id":54886024,"number":678,"title":"Ampache reports wrong time of tracks","user":{"login":"henryford","id":607308,"avatar_url":"https://avatars.githubusercontent.com/u/607308?v=3","gravatar_id":"","url":"https://api.github.com/users/henryford","html_url":"https://github.com/henryford","followers_url":"https://api.github.com/users/henryford/followers","following_url":"https://api.github.com/users/henryford/following{/other_user}","gists_url":"https://api.github.com/users/henryford/gists{/gist_id}","starred_url":"https://api.github.com/users/henryford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryford/subscriptions","organizations_url":"https://api.github.com/users/henryford/orgs","repos_url":"https://api.github.com/users/henryford/repos","events_url":"https://api.github.com/users/henryford/events{/privacy}","received_events_url":"https://api.github.com/users/henryford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-20T14:02:17Z","updated_at":"2015-01-22T08:10:17Z","closed_at":null,"body":"Hi,\r\n\r\nI'm currently facing a strange issue with ampache: \r\nA big, big part of my library (or catalog, as you might put it) is reporting wrong track durations when added to ampache. I tried several different approaches to resolve this issue, but even removing the entire catalog and readding it does not yield any results.\r\n\r\nA lot of my songs are reporting track lengths way over 40 minutes, despite them being only a few minutes long. When I check the database, the track duration is indeed wrong there. \r\n\r\nFor example:\r\n```\r\nMariaDB [ampache]> select file,time from song where file LIKE '%Rap God%';\r\n+------------------------------------------------------------+------+\r\n| file                                                       | time |\r\n+------------------------------------------------------------+------+\r\n| /var/Music/Eminem/The Marshall Mathers LP 2/09 Rap God.mp3 | 3635 |\r\n+------------------------------------------------------------+------+\r\n1 row in set (0.01 sec)\r\n```\r\n\r\nWhile mediainfo (and literally every other program I use for playback) reports the correct duration:\r\n```\r\n$> mediainfo /var/Music/Eminem/The\\ Marshall\\ Mathers\\ LP\\ 2/09\\ Rap\\ God.mp3 \r\nGeneral\r\nComplete name                            : /var/Music/Eminem/The Marshall Mathers LP 2/09 Rap God.mp3\r\nFormat                                   : MPEG Audio\r\nFile size                                : 13.9 MiB\r\nDuration                                 : 6mn 3s\r\n(...)\r\n```\r\n\r\nWhat's going on here? Why does ampache scrape those wrong times?\r\n\r\nThanks in advance for your help."},"comment":{"url":"https://api.github.com/repos/ampache/ampache/issues/comments/70984833","html_url":"https://github.com/ampache/ampache/issues/678#issuecomment-70984833","issue_url":"https://api.github.com/repos/ampache/ampache/issues/678","id":70984833,"user":{"login":"henryford","id":607308,"avatar_url":"https://avatars.githubusercontent.com/u/607308?v=3","gravatar_id":"","url":"https://api.github.com/users/henryford","html_url":"https://github.com/henryford","followers_url":"https://api.github.com/users/henryford/followers","following_url":"https://api.github.com/users/henryford/following{/other_user}","gists_url":"https://api.github.com/users/henryford/gists{/gist_id}","starred_url":"https://api.github.com/users/henryford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryford/subscriptions","organizations_url":"https://api.github.com/users/henryford/orgs","repos_url":"https://api.github.com/users/henryford/repos","events_url":"https://api.github.com/users/henryford/events{/privacy}","received_events_url":"https://api.github.com/users/henryford/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T08:10:17Z","updated_at":"2015-01-22T08:10:17Z","body":"On it's way - thanks for looking into it!"}}