Return to KLUBNL.PL main page

rsgb_lf_group
[Top] [All Lists]

Re: LF: Octo-soundcard for the Raspi, another question

To: [email protected]
Subject: Re: LF: Octo-soundcard for the Raspi, another question
From: Paul Nicholson <[email protected]>
Date: Sat, 24 Jun 2017 07:48:02 +0000
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=abelian.org ; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:To:References:Reply-To:Subject:Sender:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GLT8UXUE8SRhf9keF+DjLvuMyvosN7hYd3B9J3OJVKk=; b=3ABE4ZqCjwhCfVjn7qEUpqgZOD 7JVDN5cZ4zrW6+GfozJUksBnhSdWXO3ozRZpyU4/LLGmvNSp84VDiehUiFPebHhQIuLA0YWcxxSX9 GGdLmgYb/z+m1cPpph2TVuFKa1mFKqWjPBM+Dq902iznscgjI1mE9AvC2SwD8xojP8Io=;
In-reply-to: <[email protected]>
References: <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]>
Reply-to: [email protected]
Sender: [email protected]
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Stefan wrote:

> i did expect that @raw3 has the same format as @raw2
> and that the only difference is the changed samplerate.

All the vt programs write float8 to their output stream
(buffer, pipe, file, network) regardless of the input
format.

The only exception is vtwrite which writes to its signal
database in the format of its input stream.

float8 is usually the best to use, certainly for pipes
and buffers.  For saving to disk you might want f4 to
save space, or maybe i4 or i2 if you can be reasonably
sure of the dynamic range (these are clip-able formats).

> But what if the vtcat stage would be not obsolete for
> some reasons, how could i change the @raw3 format into
> ,i2 again?

In that case

 vtcat @raw:1,2,3 @raw2,i2
 vtresample -r24000 @raw2 @raw3,i2

will do that.   Check with

 vtstat @raw3

to see that it is int2 format.

> I tried vtresample -r24000 @raw2 @raw3,i2 but the
> the process aborts,

Make sure you haven't got another process writing to @raw2
or @raw3 at the same time, maybe one you started earlier
and put in background with -B option.  vtps might help.

If you can shape the PPS and run vttime, you can reduce the
disk space because you don't need to record the PPS channel.

For vttime to work, the Pi clock will have to be set within
a 100mS or so.   The Pi has no built-in RTC and if you're
running remotely you'll have to hook up the GPS to a serial
or USB port and install gpsd and ntpd.  Configure nptd to use
the GPS as a stratum zero time source.

--
Paul Nicholson
--

<Prev in Thread] Current Thread [Next in Thread>