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-3609370 ] Incorrect endian used when converting to caf on OSX Date: Wed, 10 Apr 2013 09:49:07 -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 1365612547 23219 80.91.229.3 (10 Apr 2013 16:49:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2013 16:49:07 +0000 (UTC) To: SourceForge.net Original-X-From: sox-devel-bounces@lists.sourceforge.net Wed Apr 10 18:49:11 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=HUpAjPdwdBYl2AJ7Qbk7VBgMB5WcJ1sawQg1hSjnT4A=; b=odm0g7PGmIJBDjOZyMc+ZiYYsFjPF5mnhd/t8WDjp8ly3XhO5sufuhvXv9DUt26ZPJjBTeksWqHSCTCV1LyF5evEK9VgezR2QT9IuDST+ZqGmC/siew+GgyDcV0fGnpI37ZwZNVCuEAXKoDIRnoBFpDN2WYz1U9KLiWXg8nOxMY=; Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of sourceforge.net designates 172.29.29.70 as permitted sender) client-ip=172.29.29.70; envelope-from=noreply@sourceforge.net; helo=localhost; X-SourceForge-Tracker-unixname: sox X-SourceForge-Tracker-trackerid: 110706 X-SourceForge-Tracker-itemid: 3609370 X-SourceForge-Tracker-itemstatus: Open 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:292 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPyCs-0002nZ-Ow for gcasd-sox-devel@m.gmane.org; Wed, 10 Apr 2013 18:49:11 +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 1UPyCr-00016D-DR; Wed, 10 Apr 2013 16:49:09 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UPyCp-000166-Nj for sox-devel@lists.sourceforge.net; Wed, 10 Apr 2013 16:49:07 +0000 Received: from sfs-web-10.v29.ch3.sourceforge.com ([172.29.29.70] helo=localhost) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1UPyCp-0004Hb-Jp; Wed, 10 Apr 2013 16:49:07 +0000 Bugs item #3609370, was opened at 2013-03-28 09:44 Message generated for change (Comment added) made by uklauer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3609370&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: verified Status: Open Resolution: None Priority: 5 Private: No Submitted By: LeeHickey (leehickey) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect endian used when converting to caf on OSX Initial Comment: On the latest OSX build, converting to caf seems to always output a big-endian irrespective of the --endian setting. If I then look at the outputted caf in Quicktime, or in my own sound loading code, the file is actually big endian. sox test.wav --endian little test.caf -V -V sox: SoX v14.3.1 time: Apr 10 2010 11:31:36 uname: Darwin lee2.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 gcc: 4.0.1 (Apple Inc. build 5493) arch: 1248 48 44 L sox INFO formats: detected file format type `caf' sox DBUG sndfile: `test.wav': Length : 110642 sox DBUG sndfile: `test.wav': caff sox DBUG sndfile: `test.wav': Version : 1 sox DBUG sndfile: `test.wav': Flags : 0 sox DBUG sndfile: `test.wav': desc : 32 sox DBUG sndfile: `test.wav': Sample rate : 44100.000 sox DBUG sndfile: `test.wav': Format id : lpcm sox DBUG sndfile: `test.wav': Format flags : 0 sox DBUG sndfile: `test.wav': Bytes / packet : 2 sox DBUG sndfile: `test.wav': Frames / packet : 1 sox DBUG sndfile: `test.wav': Channels / frame : 1 sox DBUG sndfile: `test.wav': Bits / channel : 16 sox DBUG sndfile: `test.wav': free : 4016 sox DBUG sndfile: `test.wav': data : 106546 sox DBUG sndfile: `test.wav': edit : 0 sox DBUG sndfile: `test.wav': End Input File : 'test.wav' (caf) Channels : 1 Sample Rate : 44100 Precision : 16-bit Duration : 00:00:01.21 = 53273 samples = 90.6003 CDDA sectors File Size : 111k Bit Rate : 733k Sample Encoding: 16-bit Signed Integer PCM Endian Type : little Reverse Nibbles: no Reverse Bits : no sox INFO sox: Overwriting `test.caf' sox DBUG sndfile: `test.caf': Length : 0 Output File : 'test.caf' Channels : 1 Sample Rate : 44100 Precision : 16-bit Duration : 00:00:01.21 = 53273 samples = 90.6003 CDDA sectors Sample Encoding: 16-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 16 bits (multi) sox INFO sox: effects chain: output 44100Hz 1 channels 16 bits (multi) ---------------------------------------------------------------------- >Comment By: Ulrich Klauer (uklauer) Date: 2013-04-10 09:49 Message: Yes, the sndfile format handler currently ignores any endian setting completely. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3609370&group_id=10706 ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter