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.4 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,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 C60731F463 for ; Wed, 18 Dec 2019 09:07:09 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1ihVIL-0002yv-Cu; Wed, 18 Dec 2019 09:07:01 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ihVIJ-0002yn-UE for sox-users@lists.sourceforge.net; Wed, 18 Dec 2019 09:06:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Sender:Reply-To:Cc: Content-Transfer-Encoding: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=I4EGEmfKezJdN48OgNmFJcr08Zb7Zh0Rjtkm3lR4rJA=; b=LcKyoFG/+iUHJg1hS8EQT0O6z DOeZT18K9jQmQFKjob0YP4t3R15BV7+0LwKCuH+SJPTtEeTD362A5BEZw3to8TxHS49luIcl4rCZh X0I3Lh2Ygzn2+JgBSWmKcrGcXWKdPQVODNm/zWtPYzXrbFIgt5ZNWy4h3C1Mac3wCRdJQ=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding: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=I4EGEmfKezJdN48OgNmFJcr08Zb7Zh0Rjtkm3lR4rJA=; b=KAoa0RZsinRUABcMavAnjd78Rc riPNF9dfyVUzzyBqOrVUXlJuwo3DiRwzXLhHBnypnx5LC1HJ845QehmbfFJnu3/fT+coysdDsYXSx oEDrnp5suHSPQTzBt3YkOD5Abp99PHMEm7KVd0ikY7ALwFq6mBoOIWkmoU815BF19ixA=; Received: from mail-qk1-f178.google.com ([209.85.222.178]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1ihVII-008ePT-7F for sox-users@lists.sourceforge.net; Wed, 18 Dec 2019 09:06:59 +0000 Received: by mail-qk1-f178.google.com with SMTP id c17so947211qkg.7 for ; Wed, 18 Dec 2019 01:06:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=I4EGEmfKezJdN48OgNmFJcr08Zb7Zh0Rjtkm3lR4rJA=; b=LI3zrQAUbUm0w9R+KYIXTWsyiS224QKBZfJ1EzyWiDlwIwNdlAAYyBmqz30+LoIogQ SlfSJbrcueDtf2EdZgdkcYO4XKd5q0yzVwNZ98fqX+LtcE1towoYs5Mc/mhct665ktwV +ZIo85Kc5cN5oUGymA9xXTggWaDfktQz04rBNhAnvdPtqHx+oyMb3FijAFQzVfmdilo8 vxWPDvjcapI97H6lM5alTYc2HYp0o/X4ggwOIrch2GSB7Tn8W6h6wrh8BwLeqQlxD6cg iOevYQCBg1B4vBY6IzRUoK6Zsh7LtBrdhPKu6QiIdmtfx/OM59iufR0QD5hJNvaDgscF vEmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=I4EGEmfKezJdN48OgNmFJcr08Zb7Zh0Rjtkm3lR4rJA=; b=VwWArWFeNyPDAMnRgwlc8drMMUkOvgrYX5FA+xRYwkV2u/jxTO/ViUG1c2KgwbYEWU ZBUpOFZwb+O4zKjoaXqsLqJ9wMTWcVvRtLHzg4lb5IvTOCWjuK4sowhjNRKTQcpNCkGe JMDeOHjxuo+jLU5Z3RZYTGg35XHUwMa1FlbpdPk8TfVqajcpLVBhfwvNNHzgVYwds7pv AO0KMkj1kTXRV1FFT8P4qGKMD/yjpggsCd/0V6vr8d1eVoJrGjE+jj/60zz8aPq64Sp2 Y5AWa9GUNLb39Gul++h9Ynttz/7TuxpLAi3+3zB7hbpk9qfDKJD0TBM7WpuKhGi9Q0Cz Bj7A== X-Gm-Message-State: APjAAAVdSch5ncq1XSpm03e7cWW5WF8W8j1AuEdEzx9sYB5WjIlE/0fT hoDQz4bSsictelAPwSid6PLC5h+h2H1GWAa1uFVaLbA= X-Google-Smtp-Source: APXvYqywc69var69ktwnUNd3Ate2zZoLoiZ+Oz0nnzqCuHc3tcRtmS3swU4pFH1ggKSbXZTznM0gUq4Pzz3Dyfe/is8= X-Received: by 2002:ae9:c317:: with SMTP id n23mr1392427qkg.356.1576660011779; Wed, 18 Dec 2019 01:06:51 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Martin Ratinaud Date: Wed, 18 Dec 2019 13:06:25 +0400 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1ihVII-008ePT-7F 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-Type: multipart/mixed; boundary="===============8235486149612098528==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============8235486149612098528== Content-Type: multipart/alternative; boundary="000000000000ef089d0599f6c333" --000000000000ef089d0599f6c333 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok thanks Mikko Maybe I'm doing it wrong but here is my initial request the number of samples is not really important to me. What does is that the compression algorithm does not add data at the beginning of the file, which it does now Do you have any idea how I can achieve that ? ----------------------------------------------------------------------- *Martin RATINAUD* ----------------------------------------------------------------------- On Wed, Dec 18, 2019 at 11:44 AM Mikko Olkkonen wrote: > If those are your requirements why dont you just stick to mp3? If your > additional requirements would be that 1) audio quality perception remains > OK and 2) number of samples remains intact then I believe that solution i= s > nonexisting. You must relax either compression or quality requirement. My > reasoning is as follows: you have a lot of samples in the original audio. > If you have all those samples (in any reasonable format) in the output fi= le > you have large file again i.e. dont have much compression. In other words= , > if you want compression you must do more drastic processing e.g. transfor= m > the signal from "time domain" to "frequency domain" like mp3 does as far = as > I know. After such compression there is no any meaningful concept of a > "sample" anymore. Thus you can not require that number of samples matches= . > The fact that sox reports number of samples for mp3 does not change this > fact (maybe it should not report number of samples but some concept of a > block mp3 uses). I believe that additional difficulty (e.g. the discrepan= cy > you observed when you trimmed your signal) arises from aspects discussed = in > the sox manual section "Accuracy". regards, Mikko > > > > On Wed, Dec 18, 2019 at 6:02 AM Martin Ratinaud > wrote: > >> Ok and what would be one that >> - compresses the file a lot >> - is readable on the web >> >> Thanks >> ----------------------------------------------------------------------- >> *Martin RATINAUD* >> ----------------------------------------------------------------------- >> >> >> On Tue, Dec 17, 2019 at 2:50 PM M=C3=A5ns Rullg=C3=A5rd = wrote: >> >>> Martin Ratinaud writes: >>> >>> > Thanks for the tip! >>> > >>> > What codec should I use then ? >>> >>> Depends on your needs. Obviously, you have to use a codec supported by >>> whatever is going to read the file. >>> >>> -- >>> M=C3=A5ns Rullg=C3=A5rd >>> >> _______________________________________________ >> Sox-users mailing list >> Sox-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/sox-users >> > _______________________________________________ > Sox-users mailing list > Sox-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sox-users > --000000000000ef089d0599f6c333 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ok thanks Mikko

Maybe I'm doing it = wrong but here is my initial request

the number of samples is not re= ally important to me. What does is that the compression algorithm=C2=A0does= not add data at the beginning of the file, which it does now
Do you have any idea how I can achieve that ?

---------------= --------------------------------------------------------
Martin RATINAU= D
---------------------------------------------------------------------= --


On Wed, Dec 18, 2019 at 11:44 AM Mikko Olkko= nen <molkko@gmail.com> wrote:=
If those are your requirements why dont you just stick to mp3? If yo= ur additional requirements would be that 1) audio quality perception remain= s OK and 2) number of samples remains intact then I believe that solution i= s nonexisting. You must relax either compression or quality requirement. My= reasoning is as follows: you have a lot of samples in the original audio. = If you have all those samples (in any reasonable format) in the output file= you have large file again i.e. dont have much compression. In other words,= if you want compression you must do more drastic processing e.g. transform= the signal from "time domain" to "frequency domain" li= ke mp3 does as far as I know. After such compression there is no any meanin= gful concept of a "sample" anymore. Thus you can not require that= number of samples matches. The fact that sox reports number of samples for= mp3 does not change this fact (maybe it should not report number of sample= s but some concept of a block mp3 uses). I believe that additional difficul= ty (e.g. the discrepancy you observed when you trimmed your signal) arises = from aspects discussed in the sox manual section "Accuracy". rega= rds, Mikko



On W= ed, Dec 18, 2019 at 6:02 AM Martin Ratinaud <martinratinaud@gmail.com> wrote:<= br>
Ok and what would be one that
- compresses the file a lot
- = is readable on the web

Thanks
-----------------= ------------------------------------------------------
Martin RATINAUD<= /b>
-----------------------------------------------------------------------=


On Tue, Dec 17, 2019 at 2:50 PM M=C3=A5ns Rul= lg=C3=A5rd <mans@man= sr.com> wrote:
Martin Ratinaud <martinratinaud@gmail.com> writes:

> Thanks for the tip!
>
> What codec should I use then ?

Depends on your needs.=C2=A0 Obviously, you have to use a codec supported b= y
whatever is going to read the file.

--
M=C3=A5ns Rullg=C3=A5rd
_______________________________________________
Sox-users mailing list
Sox-us= ers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s= ox-users
_______________________________________________
Sox-users mailing list
Sox-us= ers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s= ox-users
--000000000000ef089d0599f6c333-- --===============8235486149612098528== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============8235486149612098528== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============8235486149612098528==--