* SoX syntax for trim with piped output
[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
0 siblings, 1 reply; 3+ messages in thread
From: David H. Durgee via Sox-users @ 2020-05-11 22:34 UTC (permalink / raw)
To: sox-users; +Cc: David H. Durgee
[-- Attachment #1.1: Type: text/plain, Size: 561 bytes --]
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.
Dave
[-- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: SoX syntax for trim with piped output
2020-05-11 22:34 ` SoX syntax for trim with piped output 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
0 siblings, 1 reply; 3+ messages in thread
From: Måns Rullgård @ 2020-05-12 9:59 UTC (permalink / raw)
To: David H. Durgee via Sox-users
"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.
--
Måns Rullgård
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: SoX syntax for trim with piped output
2020-05-12 9:59 ` Måns Rullgård
@ 2020-05-12 18:46 ` David H. Durgee via Sox-users
0 siblings, 0 replies; 3+ messages in thread
From: David H. Durgee via Sox-users @ 2020-05-12 18:46 UTC (permalink / raw)
To: Måns Rullgård, David H. Durgee via Sox-users; +Cc: David H. Durgee
[-- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-12 18:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <e511a8fe-17ee-700f-2a36-97ae30d6a58f.ref@verizon.net>
2020-05-11 22:34 ` SoX syntax for trim with piped output 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
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).