Bugs item #1611944, was opened at 2006-12-09 02:37 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1611944&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Floris van Manen (klankschap) Assigned to: Nobody/Anonymous (nobody) Summary: sndhdr.what() does not recognize wav file Initial Comment: using 2.5 on osx 10.4 the sndhdr.what() function fails to recognize some wav headers. however these wav files are recognized correctly by other 'standard' applications like quicktime and itunes. ---------------------------------------------------------------------- >Comment By: Georg Brandl (gbrandl) Date: 2006-12-09 10:26 Message: Logged In: YES user_id=849994 Originator: NO I see. The problem is, as the "bext" chunk can be arbitrarily long, the test function would need more than 512 bytes to read the "fmt " chunk, or it could return that it cannot read the format details. Would you like to work on a patch? ---------------------------------------------------------------------- Comment By: Floris van Manen (klankschap) Date: 2006-12-09 10:02 Message: Logged In: YES user_id=1064918 Originator: YES Apparently the sndhdr.what() function does not skip the embedded comment chunk at the start. ---------------------------------------------------------------------- Comment By: Floris van Manen (klankschap) Date: 2006-12-09 09:56 Message: Logged In: YES user_id=1064918 Originator: YES Attached you find (in a rar file) a 260kb wav file, 2 tracks, 24 bit, 44.1kHz You can play it, ask either OSX or XP to show the properties. Yet sndhdr.what() returns None File Added: Audio01.rar ---------------------------------------------------------------------- Comment By: Georg Brandl (gbrandl) Date: 2006-12-09 08:55 Message: Logged In: YES user_id=849994 Originator: NO We'd need some more information about these specific wave files in order to improve sndhdr.what(). Can you try to find out why they aren't recognized correctly, or what their header (sndhdr reads the first 512 bytes) looks like? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1611944&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com