From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: SourceForge.net Newsgroups: gmane.comp.audio.sox.devel Subject: [ sox-Bugs-3610258 ] Decompressing 24bit flac to wav using SoX Date: Mon, 08 Apr 2013 03:40:59 -0700 Message-ID: Reply-To: sox-devel@lists.sourceforge.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1365446194 10242 80.91.229.3 (8 Apr 2013 18:36:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Apr 2013 18:36:34 +0000 (UTC) To: SourceForge.net Original-X-From: sox-devel-bounces@lists.sourceforge.net Mon Apr 08 20:36:37 2013 Return-path: Envelope-to: gcasd-sox-devel@m.gmane.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=beta; h=Message-Id:Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Reply-To:Subject:MIME-Version:Date:From:To; bh=PFn+k6QBvmXAV5nOTP1n6H7h2g+xSWQM42UpQTSi1jw=; b=dyaFRHKwXy9J/z9ezyeAeR/Y7Pey4bfa/uNjtF4ggVHnPaxWG7yV8ILMk7SRUiU5BR7/on/gIx122oo+ZO0SoUPHmQ1GKeefG7ohlI54/e8fovYx55/UB8nPwdPfbwqPxtf/ykv9bFoEhQGGdxkmZ2eXj68mYb+jX/bOY/6Eh4A=; Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of sourceforge.net designates 172.29.29.72 as permitted sender) client-ip=172.29.29.72; envelope-from=noreply@sourceforge.net; helo=localhost; X-SourceForge-Tracker-unixname: sox X-SourceForge-Tracker-trackerid: 110706 X-SourceForge-Tracker-itemid: 3610258 X-SourceForge-Tracker-itemstatus: Closed X-SourceForge-Tracker-itemassignee: nobody X-SourceForge-Tracker-itemupdate-reason: Comment added X-SourceForge-Tracker-itemupdate-username: uklauer Content-Disposition: inline X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: sox-devel-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.comp.audio.sox.devel:287 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPGvh-000343-TC for gcasd-sox-devel@m.gmane.org; Mon, 08 Apr 2013 20:36:34 +0200 Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UP9VV-0000r3-2G; Mon, 08 Apr 2013 10:41:01 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UP9VT-0000qx-R2 for sox-devel@lists.sourceforge.net; Mon, 08 Apr 2013 10:40:59 +0000 Received: from sfs-web-12.v29.ch3.sourceforge.com ([172.29.29.72] helo=localhost) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1UP9VT-0007Xt-PQ; Mon, 08 Apr 2013 10:40:59 +0000 Bugs item #3610258, was opened at 2013-04-07 16:07 Message generated for change (Comment added) made by uklauer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3610258&group_id=10706 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: None Group: None >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: softrunner (softrunner) Assigned to: Nobody/Anonymous (nobody) Summary: Decompressing 24bit flac to wav using SoX Initial Comment: I run this command on some 24bit file: c:\\>sox.exe 24bit_file.flac test.wav Then I try to compress decompressed file by FLAC: c:\\>flac.exe test.wav and it says: test.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x0004 On 16bit files it is ok. If aiff is used instead of wav, it is also ok: c:\\>sox.exe 24bit_file.flac test.aiff c:\\>flac test.aiff flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. test.aiff: WARNING: skipping unknown chunk 'COMT' (use --keep-foreign-metadata t o keep) test.aiff: wrote 101823 bytes, ratio=0,385 ------------------------------------------------------------------------------------------ c:\>sox -V -V 24bit_file.flac test.wav sox: SoX v14.4.1 time: Feb 10 2013 21:51:34 compiler: gcc 4.7.2 20120920 (Fedora MinGW 4.7.2-7.fc18) arch: 1248 48 44 L sox INFO formats: detected file format type `flac' sox DBUG flac: API version 10 Input File : '24bit_file.flac' Channels : 1 Sample Rate : 44100 Precision : 24-bit Duration : 00:00:02.00 = 88200 samples = 150 CDDA sectors File Size : 87.9k Bit Rate : 352k Sample Encoding: 24-bit FLAC Endian Type : little Reverse Nibbles: no Reverse Bits : no sox INFO sox: Overwriting `test.wav' sox DBUG wav: Writing Wave file: Microsoft PCM format, 1 channel, 44100 samp/sec sox DBUG wav: 132300 byte/sec, 3 block align, 24 bits/samp Output File : 'test.wav' Channels : 1 Sample Rate : 44100 Precision : 24-bit Duration : 00:00:02.00 = 88200 samples = 150 CDDA sectors Sample Encoding: 24-bit Signed Integer PCM Endian Type : little Reverse Nibbles: no Reverse Bits : no Comment : 'Processed by SoX' sox INFO sox: effects chain: input 44100Hz 1 channels (multi) 24 bits 00 :00:02.00 sox INFO sox: effects chain: output 44100Hz 1 channels (multi) 24 bits 00 :00:02.00 ---------------------------------------------------------------------- >Comment By: Ulrich Klauer (uklauer) Date: 2013-04-08 03:40 Message: The flac command-line utility is very picky about which channel mappings it accepts. A mono file whose single channel is marked "center" is not accepted. Run flac with the option --channel-map=none (it's undocumented, but it's there) to override the default. In the forthcoming version 1.3.0 of flac, the error message has been changed to point to this option: flac 1.3.0pre3, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007,2008,2009 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. tst1.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x0004 Use --channel-map=none option to store channels in current order; FLAC files must also be decoded with --channel-map=none to restore correct order. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3610258&group_id=10706 ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html