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 2A3C41F464 for ; Mon, 16 Dec 2019 11:49:19 +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 1igosA-0001GS-Qc; Mon, 16 Dec 2019 11:49:10 +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 1igos9-0001G7-C4 for sox-users@lists.sourceforge.net; Mon, 16 Dec 2019 11:49:09 +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=K28lWgdjfqjRr8A/3LTE0yUKH0lm70oczDhMhlrXno0=; b=UxPlrm7HHDD+g9ftSI/qdeCkQE ey8vtEDOBeFGjNRBAolfSOSf8icz0F+TPjLRHI5TLV5zC0of8ww5JnRp8+IybIPJSGTD/A5I9cYnB lQWTBFtC0uvCtq/myR9nfVCivf3r9lXg5W0H416X7xIS6bn5c+2s5l2zylGqfRXwEZqg=; 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=K28lWgdjfqjRr8A/3LTE0yUKH0lm70oczDhMhlrXno0=; b=IAd2TNdBFXQMDjgt02+x26ozF3 Qry6qUJOnNsmPlj/jdCvgh+vOIyhUYxkkJSpx5XMvGxKUYNuHOE9QidiSF+1RsqOqeeKqv8+dUqe3 rEncii6wY/PQ4NOXSGv+K/2KptMGGkYL9loMmcAUTj6bf4YYnvKlkgOYFUFxBe+DmGzQ=; 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 1igos7-006bLI-2N for sox-users@lists.sourceforge.net; Mon, 16 Dec 2019 11:49:09 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 10E12187F8; Mon, 16 Dec 2019 11:48:54 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Martin Ratinaud References: Date: Mon, 16 Dec 2019 11:48:54 +0000 In-Reply-To: (Martin Ratinaud's message of "Wed, 11 Dec 2019 18:26:21 +0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1igos7-006bLI-2N 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 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 Martin Ratinaud writes: > 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 =3D 7938000 samples =3D 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 =3D 7939544 samples =3D 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 numb= er > of samples also changed. > In fact, 1544 samples have been added to the beginning of the file > > If I try to launch `sox -V vocals.mp3 vocals-trimmed.mp3 trim 1544s` it > does not work MP3 files have to have a multiple of 1152 samples. This can't be avoided. If the input isn't such a multiple, it will be padded by the encoder. -- = M=E5ns Rullg=E5rd _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users