Deutsch   English   Français   Italiano  
<vqaf1j$2jbji$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.os.vms
Subject: Re: Local Versus Global Command Options
Date: Wed, 5 Mar 2025 21:17:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vqaf1j$2jbji$1@dont-email.me>
References: <volt3s$33lo1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 05 Mar 2025 22:17:40 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ccde15c8b30be8b462a3deae2fb7e66d";
	logging-data="2731634"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18zW2fB8CGsop0N6wb5teI7"
User-Agent: Pan/0.162 (Pokrosvk)
Cancel-Lock: sha1:U5SR4vUXMJJToSGDTFx2ou6grEE=
Bytes: 1781

On Thu, 13 Feb 2025 22:52:44 -0000 (UTC), I wrote:

> What’s the most complex *nix command you’ve come across? I think it has
> to be ffmpeg.

For example, here’s a command I came up with for using ffmpeg to
convert an audio file for playback through the Asterisk telephony
engine. The sample rate has to be 8kHz, so to make sure there are no
aliasing artifacts, you have to make sure there are no frequency
components above about 3kHz. To achieve this, I apply a first-order
low-pass filter 16 times in a row, to produce a “brick wall” cutoff at
that frequency:

ffmpeg -i in.wav -f s16le -acodec pcm_s16le -ar 8000 \
    -af $(sep=""; for i in $(seq 16); do echo -n ${sep}lowpass=f=3000; sep=","; done) \
    out.slin

Note the substitution of the output of one command inside another, not
just to one, but two levels of nesting.