Last modified: 2014-02-17 07:48:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63441, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61441 - TMH gives duration=0.0 s for wav files containing ID3 tags
TMH gives duration=0.0 s for wav files containing ID3 tags
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
TimedMediaHandler (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Michael Dale
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-16 18:22 UTC by Marco
Modified: 2014-02-17 07:48 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Marco 2014-02-16 18:22:25 UTC
Either the wav is broken or TMH.

https://commons.wikimedia.org/wiki/File:%22FZ_Side_E_-_Trail%22_by_Disasterpeace.wav
Comment 1 Bawolff (Brian Wolff) 2014-02-17 00:19:50 UTC
I think broken wav file. mplayer cannot play the file locally. avprobe cannot give the time information either:

bawolff@Bawolff-L:~$ avprobe '"FZ_Side_E_-_Trail"_by_Disasterpeace.wav' 
avprobe version 0.8.6-6:0.8.6-1, Copyright (c) 2007-2013 the Libav developers
  built on Mar 24 2013 07:20:17 with gcc 4.7.2
[wav @ 0x90427e0] no 'data' tag found
"FZ_Side_E_-_Trail"_by_Disasterpeace.wav: Invalid data found when processing input
Comment 2 Bawolff (Brian Wolff) 2014-02-17 00:23:14 UTC
OTOH gstreamer/totem seems to be able to get duration and play file fine.
Comment 3 Bawolff (Brian Wolff) 2014-02-17 01:05:39 UTC
Actually newer versions of avprobe seem to recognize the file:

bawolff@Bawolff-L:~$ src/libav/avprobe \"FZ_Side_E_-_Trail\"_by_Disasterpeace.wav 
avprobe version v10_alpha1-151-gaab40bb, Copyright (c) 2007-2014 the Libav developers
  built on Jan 16 2014 23:34:44 with gcc 4.7 (Debian 4.7.2-5)
[wav @ 0x9db2b60] max_analyze_duration reached
Input #0, wav, from '"FZ_Side_E_-_Trail"_by_Disasterpeace.wav':
  Metadata:
    encoded_by      : Logic Pro
    date            : 2013-05-05
    creation_time   : 12:32:11
    time_reference  : 143796208
    coding_history  : 
  Duration: 00:01:53.72, bitrate: 1411 kb/s
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
# avprobe output



----

So perhaps bug in getid3 library we use to get duration of wav files (probably triggering some edge case which also didn't work on old versions of avprobe)
Comment 4 Bawolff (Brian Wolff) 2014-02-17 01:10:45 UTC
Oh hmm, would of saved time if I looked at the error we are generating:

From https://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&iiprop=metadata&titles=File:%22FZ_Side_E_-_Trail%22_by_Disasterpeace.wav :

Caught exception: module.audio-video.riff.php depends on /usr/local/apache/common-local/php-1.23wmf11/extensions/TimedMediaHandler/libs/getid3/module.tag.id3v2.php, which is missing

getid3 correctly recognizes the duration to be 113.72532879819 seconds. However the presence of the error message causes TMH to output a duration of 0.
Comment 5 Gerrit Notification Bot 2014-02-17 01:48:41 UTC
Change 113760 had a related patch set uploaded by Brian Wolff:
Add ID3 dependencies to getid3 library

https://gerrit.wikimedia.org/r/113760
Comment 6 Gerrit Notification Bot 2014-02-17 06:55:57 UTC
Change 113760 merged by Mdale:
Add ID3 dependencies to getid3 library

https://gerrit.wikimedia.org/r/113760
Comment 7 Bawolff (Brian Wolff) 2014-02-17 07:48:12 UTC
Fix should go live on commons on about Feb 25th. (Once fix is live, you may have to ?action=purge the image page of that file)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links