sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
From: "David H. Durgee via Sox-users" <sox-users@lists.sourceforge.net>
To: "Måns Rullgård" <mans@mansr.com>,
	"David H. Durgee via Sox-users" <sox-users@lists.sourceforge.net>
Cc: "David H. Durgee" <dhdurgee@verizon.net>
Subject: Re: SoX syntax for trim with piped output
Date: Tue, 12 May 2020 14:46:35 -0400
Message-ID: <0a88f581-6fca-815e-3211-7eccd174b530@verizon.net> (raw)
In-Reply-To: <yw1x7dxh323y.fsf@mansr.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 982 bytes --]

I had tried that and received errors with the "--" present, but as you
note it works if I remove the "--" on the line.

Thank you for your assistance.

Dave

> Måns Rullgård wrote:  "David H. Durgee via Sox-users" <sox-users@lists.sourceforge.net>
> writes:
>
>> I am working on an application of SoX that I want to include a trim
>> effect but have been unable to figure out the syntax with this case. 
>> The command line (in a shell script) without the trim is:
>>
>> sox "$1" -t wav - -- | aplay
>>
>> I have tried adding trim $offset offset various places and get errors
>> for each, although the errors vary.  What is the appropriate place for
>> me to put trim $offset in this command line?  In case it matters this is
>> SoX v14.4.1 and it is a binary on a platform for which I cannot provide
>> an alternative version.
> The trim effect, like any other, goes after the output file.  In your
> command above, it should be where the "--" is.
>


[-- Attachment #1.1.2: Type: text/html, Size: 1540 bytes --]

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4056 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

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

      reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <e511a8fe-17ee-700f-2a36-97ae30d6a58f.ref@verizon.net>
2020-05-11 22:34 ` David H. Durgee via Sox-users
2020-05-12  9:59   ` Måns Rullgård
2020-05-12 18:46     ` David H. Durgee via Sox-users [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=0a88f581-6fca-815e-3211-7eccd174b530@verizon.net \
    --to=sox-users@lists.sourceforge.net \
    --cc=dhdurgee@verizon.net \
    --cc=mans@mansr.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

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/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/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git