From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6130 216.105.38.0/24 X-Spam-Status: No, score=-2.9 required=3.0 tests=AWL,BAYES_00,BODY_8BITS, DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 7FF621F463 for ; Fri, 22 Nov 2019 18:33:42 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1iYDkN-0003Hg-4c; Fri, 22 Nov 2019 18:33:35 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iYDkL-0003HS-Bk for sox-users@lists.sourceforge.net; Fri, 22 Nov 2019 18:33:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Kt0ls6y2qVuPqedBwsQ/o4hSU97GqD5v5PMPYoQDFlc=; b=UwQ3i+KyHaiKtYKzSe8VwZrqRz cEyKprcu1Iw9YOmmQXMSlaViN86+NOn5wAfV/k9vCgwjTk2lKjbOg4po09g+s9XLet3yQLHqosJPL O4+prSzE9d2g6Fba+qFAPq5i6cOzQPcZrzAYSRNcFMBIycMaUpQwnAOznDxem3wqdsb8=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Kt0ls6y2qVuPqedBwsQ/o4hSU97GqD5v5PMPYoQDFlc=; b=GaTn4fkmZlj1M/o9SW8u2bva6c BHcA4KdgT0mrsSCdsUYIqanaTvQLjL+MeXsFN3e2/F3MYvfTzddMtcOFylOKAioAshIGR9SFqonnj NgwaGOmzE852V1Wdh7py3/p5JCwXBajoJkbatqoFgWToEFKzqArBzMlDH4sv7Dzq5GSE=; Received: from unicorn.mansr.com ([81.2.72.234]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1iYDkJ-00AVgm-Va for sox-users@lists.sourceforge.net; Fri, 22 Nov 2019 18:33:33 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 296AF1505E; Fri, 22 Nov 2019 18:16:31 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Sylvain Leroux References: <82417765-a2d3-3a9c-a445-6093141f12ee@chicoree.fr> Date: Fri, 22 Nov 2019 18:16:31 +0000 In-Reply-To: <82417765-a2d3-3a9c-a445-6093141f12ee@chicoree.fr> (Sylvain Leroux's message of "Fri, 22 Nov 2019 16:10:21 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1iYDkJ-00AVgm-Va Subject: Re: Soxi warn about missing extended part of the fmt chunk--but it seems to be there X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Cc: sox-users@lists.sourceforge.net Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: sox-users-bounces@lists.sourceforge.net Sylvain Leroux writes: > Hi everyone. > > First thank you for the great work and support. I'm in the process of > writing a sound library for an internal project, and I realize more each > day the amount of work the developers may have put in writing SoX. > > I am working now on a Wave file exporter, and while using `soxi` to > verify the my wave files are well formed, I noticed the warning "wave > header missing extended part of fmt chunk": > >> sh$ soxi -V4 test/tmp/float_32_1.wav >> soxi INFO formats: detected file format type `wav' >> soxi DBUG wav: WAV Chunk fmt >> soxi INFO wav: EXTENSIBLE >> soxi WARN wav: wave header missing extended part of fmt chunk >> soxi DBUG wav: WAV Chunk fact >> soxi DBUG wav: WAV Chunk data >> soxi DBUG wav: Reading Wave file: IEEE Float format, 1 channel, 48000 >> samp/sec >> soxi DBUG wav:=A0=A0=A0=A0=A0=A0=A0=A0 192000 byte/sec, 4 block align, 3= 2 bits/samp, >> 643200 data bytes >> soxi DBUG wav:=A0=A0=A0=A0=A0=A0=A0=A0 160800 Samps/chans >> >> Input File=A0=A0=A0=A0 : 'test/tmp/float_32_1.wav' >> Channels=A0=A0=A0=A0=A0=A0 : 1 >> Sample Rate=A0=A0=A0 : 48000 >> Precision=A0=A0=A0=A0=A0 : 24-bit >> Duration=A0=A0=A0=A0=A0=A0 : 00:00:03.35 =3D 160800 samples ~ 251.25 CDD= A sectors >> File Size=A0=A0=A0=A0=A0 : 643k >> Bit Rate=A0=A0=A0=A0=A0=A0 : 1.54M >> Sample Encoding: 32-bit Floating Point PCM > > However, it seems to me I write the extended 40 bytes fmt chunk in the fi= le: > >> 00000000 52 49 46 46 cc d0 09 00 57 41 56 45 66 6d 74 20 |RIFF....WAV= Efmt | >> 00000010 28 00 00 00 fe ff 01 00 80 bb 00 00 00 ee 02 00 |(..........= .....| >> 00000020 04 00 20 00[16 00]20 00 00 00 00 00 03 00 00 00 |.. ... ....= .....| >> 00000030 00 00 10 00 80 00 00 aa 00 38 9b 71 66 61 63 74 |.........8.= qfact| >> 00000040 04 00 00 00 80 d0 09 00 64 61 74 61 80 d0 09 00 |........dat= a....| >> 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |...........= .....| >> * >> 0009d0d0 > > At byte 0x24 we can see 0x0016 which is the size (22 bytes) of the > extended fmt header, followed by the extended header content. And after > that, the `fact` chunk starts. > > Why is `soxi` considering the extended header is missing? There is a small bug that triggers that warning in error for some combinations of parameters. Your file header looks correct to me. -- = M=E5ns Rullg=E5rd _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users