sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: "Måns Rullgård" <mans@mansr.com>
To: Mikko Olkkonen <molkko@gmail.com>
Cc: sox-users@lists.sourceforge.net
Subject: Re: How can I reduce 8svx file size further?
Date: Wed, 24 Aug 2022 14:27:40 +0100	[thread overview]
Message-ID: <yw1xzgft4vqr.fsf@mansr.com> (raw)
In-Reply-To: <CANWtmUBDSn7GVJSAgUn=ycg5pB4v106bVw6MLi5Y69VOGiVzkQ@mail.gmail.com> (Mikko Olkkonen's message of "Fri, 29 Jul 2022 22:10:01 +0300")

Mikko Olkkonen <molkko@gmail.com> writes:

> On Fri, Jul 29, 2022 at 8:50 PM Iarla Ó'Riada <iarlaoriada@gmail.com> wrote:
>
>> I’m using this command to create 8svx files:
>>
>> sox -q --multi-threaded --buffer 131072 -S -V -D "epoch.wav" "epoch.8svx"
>> remix - rate -v -s -I -b 99 -a 16754 gain -n -0.14 dither -S stats -b 8
>>
>> It’s good for ancient computers , but I’d like to reduce file size further
>> if possible. What’s the best way to do this?
>
> At least in my setup the file size seems to be very much proportional to -a
> value. e.g. 16754->8300 results in roughly halved file size. -a 1 results
> in file size of only 29 bytes! I dont know if this qualifies as "the best
> way to do it".

There seems to be some misunderstanding here.  The -a flag to the rate
effect does not take an argument.  The number you are playing with is
the target sample rate.  Requesting a sample rate of 1 Hz amounts to
throwing out pretty much all the audio data, so it's no surprise the
resulting file is small.

As for the original question, 8svx files store uncompressed 8-bit
samples.  The file size thus depends entirely on the sample rate and
the number of channels (which you've already reduced to one/mono).

Depending on the application, a low sample rate may be acceptable.  For
reference, traditional landline telephony uses 8 kHz sample rate.

-- 
Måns Rullgård


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

      parent reply	other threads:[~2022-08-24 13:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-29 17:48 How can I reduce 8svx file size further? Iarla Ó'Riada
2022-07-29 19:10 ` Mikko Olkkonen
2022-07-29 21:19   ` [Solved] " Iarla Ó'Riada
2022-08-24 13:27   ` Måns Rullgård [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yw1xzgft4vqr.fsf@mansr.com \
    --to=sox-users@lists.sourceforge.net \
    --cc=molkko@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).