sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Jan Stary <hans@stare.cz>
To: sox-users@lists.sourceforge.net
Subject: Re: manualy setting output as for .s32 extension
Date: Fri, 21 Aug 2020 16:15:42 +0200	[thread overview]
Message-ID: <20200821141542.GB47311@www.stare.cz> (raw)
In-Reply-To: <CAB+hYN2qH1-A78C9Cg8TuJaUpMEv2Pzf5C3PWnu58jF0__YnWQ@mail.gmail.com>

On Aug 21 14:33:24, p-danijel.domazet@devialet.com wrote:
> This command works for me:
> 1) sox --channels 1 --rate 48000 in_signal.wav in_signal.s32

Why are you overriding the number of channels and the sample rate
for a wav file, which already has that information in the wav header?

> Now, I'd like to change the output filename extension. In that case SoX
> can't deduce the format from the extension, so I have to tell it the
> details. I tried the following line:
> 2) sox --bits 32 --channels 1 --encoding signed-integer --rate 48000
> in_signal.wav --type raw in_signal.q31

The option at the beginning of the line (before the input file)
overrdide the specifications for that file. Toy want to put those
specifications before the output file, to tell sox what its format is.
In the wors of the holy manpage,

  sox [global-options] [format-options] infile [format-options] outfile

Jan

> Danijel Domazet
> -- 
> - Confidential -

Don't tell anyone then.




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

      parent reply	other threads:[~2020-08-21 14:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-21 12:33 manualy setting output as for .s32 extension Danijel DOMAZET
2020-08-21 13:37 ` Måns Rullgård
2020-08-21 14:15 ` Jan Stary [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=20200821141542.GB47311@www.stare.cz \
    --to=sox-users@lists.sourceforge.net \
    /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).