From: "Måns Rullgård" <mans@mansr.com>
To: Toru Yagi <yagitohru@yahoo.co.jp>
Cc: "sox-users@lists.sourceforge.net" <sox-users@lists.sourceforge.net>
Subject: Re: sox can't encode to 16-bit
Date: Fri, 18 Jan 2019 12:54:35 +0000
Message-ID: <yw1xbm4e2kj8.fsf@mansr.com> (raw)
In-Reply-To: <652273.73317.qm@web102218.mail.kks.yahoo.co.jp> (Toru Yagi's message of "Thu, 17 Jan 2019 22:41:39 +0900 (JST)")
Toru Yagi <yagitohru@yahoo.co.jp> writes:
> Hi all,
>
> I'm trying to record by sox, splitting the input to multiple files:
>
> $ sox --version
> sox: SoX v14.4.1
>
> $ rec -c 2 -b 16 -r 48000 -p trim 0 20 |
> sox -V3 -c 2 -b 16 -r 48000 -p test.wav trim 0 10 : newfile : restart
>
> I want to record 16-bit wav files, but the files generated are 32-bit ones.
Put the "-b 16" option immediately before the output file argument. You
can also drop all the format options preceding the -p since the pipe
format already includes all information.
That said, why don't you do the splitting directly with the rec command?
This should work:
$ rec -c 2 -b 16 -r 48000 test.wav trim 0 10 : newfile : restart
--
Måns Rullgård
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
next prev parent reply other threads:[~2019-01-18 13:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-17 13:41 Toru Yagi
2019-01-18 12:54 ` Måns Rullgård [this message]
2019-01-18 14:47 ` Toru Yagi
2019-01-18 21:44 ` Måns Rullgård
2019-01-19 15:58 ` Toru Yagi
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=yw1xbm4e2kj8.fsf@mansr.com \
--to=sox-users@lists.sourceforge.net \
--cc=yagitohru@yahoo.co.jp \
/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
sox-users@lists.sourceforge.net unofficial mirror
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://public-inbox.org/sox-users
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V1 sox-users sox-users/ https://public-inbox.org/sox-users \
sox-users@lists.sourceforge.net
public-inbox-index sox-users
Example config snippet for mirrors.
Newsgroups are available over NNTP:
nntp://news.public-inbox.org/inbox.comp.audio.sox
nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
nntp://news.gmane.io/gmane.comp.audio.sox
note: .onion URLs require Tor: https://www.torproject.org/
code repositories for the project(s) associated with this inbox:
https://80x24.org/mirrors/sox.git
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git