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=-3.6 required=3.0 tests=AWL,BAYES_00,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 5A9FD1F463 for ; Wed, 11 Dec 2019 17:38:52 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1if5wc-0005qc-Ls; Wed, 11 Dec 2019 17:38:38 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1if5wb-0005qT-Ax for sox-users@lists.sourceforge.net; Wed, 11 Dec 2019 17:38:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-ID:References:In-Reply-To:Subject:To:From: Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To:Cc: 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=jc/EKMn/jonPIhYK/ZdS7uNom4SS2/C4DYnHWS363pk=; b=XJErsIFEVsk9AHyXG0bcPJXMXV shbEnolN9VZaQlz2v/bOGSnl3P2hlxF8OIl0187XHgGs3HlZtHF7cjrPxrTSs/gFQiCz4JuzT+fMW Wa995+jfP7ZGHzSDliOwagnhdlaDwRyfZt0t4RT+IZvSjNVYmmC5ReDaIuMSV6dFJXmc=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Message-ID:References:In-Reply-To:Subject:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To:Cc: 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=jc/EKMn/jonPIhYK/ZdS7uNom4SS2/C4DYnHWS363pk=; b=HqFLYpleb2g487c1rsnzL4SH4j NqJ8EvYiKG9xLrrr7SVBIzWxEe8uKfOfSh9jj+LkMnUuRPmBuk7hq0+aRACNExaNJb0vJek+Qwb4M ABLmQy3JnWpqds5E+AlekhrWKAjCdiEw3xeCOBM9XBDXn4PbrHZ+MAE5jN6kO6yYmVtc=; Received: from a-painless.mh.aa.net.uk ([81.187.30.51]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1if5wY-006s3Y-Ur for sox-users@lists.sourceforge.net; Wed, 11 Dec 2019 17:38:37 +0000 Received: from webmailtest.aa.net.uk ([2001:8b0:0:30::66]) by a-painless.mh.aa.net.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1if5d0-0008Fg-5A for sox-users@lists.sourceforge.net; Wed, 11 Dec 2019 17:18:22 +0000 Received: from cpc132346-sgyl43-2-0-cust166.know.cable.virginm.net ([82.42.23.167]) by webmailtest.aa.net.uk with HTTP (HTTP/1.1 POST); Wed, 11 Dec 2019 17:18:11 +0000 MIME-Version: 1.0 Date: Wed, 11 Dec 2019 17:18:11 +0000 From: Jeremy Nicoll - ml sox users To: sox-users@lists.sourceforge.net In-Reply-To: References: Message-ID: <6b2ed34b929889fb655800973e7e030e@wingsandbeaks.org.uk> X-Sender: jn.ml.sxu.88@wingsandbeaks.org.uk User-Agent: Roundcube Webmail/1.3.8 X-Headers-End: 1if5wY-006s3Y-Ur Subject: Re: Wav to Mp3 leads to an mp3 file that has a longer duration 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: sox-users-bounces@lists.sourceforge.net On 2019-12-11 14:26, Martin Ratinaud wrote: > Hi all, > > I'm converting a file called vocals.wav to vocals.mp3 > vocals.wav > > For this I'm using this command > > ``` > sox vocals.wav vocals.mp3 > ``` > and here is the result of the corresponding files > > - original file > ``` > soxi /Users/martin/Downloads/split-test/vocals.wav > > Input File : '/Users/martin/Downloads/split-test/vocals.wav' > Channels : 2 > Sample Rate : 44100 > Precision : 16-bit > Duration : 00:03:00.00 = 7938000 samples = 13500 CDDA sectors > File Size : 31.8M > Bit Rate : 1.41M > Sample Encoding: 16-bit Signed Integer PCM > ``` > > - converted file > ``` > soxi /Users/martin/Downloads/split-test/vocals.mp3 > > Input File : '/Users/martin/Downloads/split-test/vocals.mp3' > Channels : 2 > Sample Rate : 44100 > Precision : 16-bit > Duration : 00:03:00.04 = 7939544 samples = 13502.6 CDDA sectors > File Size : 2.88M > Bit Rate : 128k > Sample Encoding: MPEG audio (layer I, II or III) > ``` > > You can see that the duration is not the same which is weird and the > number > of samples also changed. > In fact, 1544 samples have been added to the beginning of the file Which version of sox, on what OS? Did you build the sox binary yourself or download it from somewhere? Although you say the command was just sox vocals.wav vocals.mp3 sox can also incorporate values of environment variables. Is there any chance that on your OS the command has included any other parameters? See the 'SOX_OPTS' section of the manual. If you reissue the command, as eg sox -V3 vocals.wav vocals002.mp3 (or even -V4 or more) do any of the info messsages give any clues? Is the result file the same size as your one? > If I try to launch `sox -V vocals.mp3 vocals-trimmed.mp3 trim 1544s` it > does not work You'll need to be more precise. What sort of "not work"? Does sox run? Does it produce any messages? Is there a result file? How long was it? -- Jeremy Nicoll - my opinions are my own _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users