Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lipkowski.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 X-Spam-DCC: INFN-TO: mailn 1233; Body=3 Fuz1=3 Fuz2=3 Received: from post.thorcom.com (post.thorcom.com [195.171.43.25]) by lipkowski.org (8.14.4/8.14.4/Debian-8+deb8u1) with ESMTP id v5O7qVEf028676 for ; Sat, 24 Jun 2017 09:52:33 +0200 Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1dOfna-0005Oe-UY for rs_out_1@blacksheep.org; Sat, 24 Jun 2017 08:48:06 +0100 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1dOfna-0005OV-AZ for rsgb_lf_group@blacksheep.org; Sat, 24 Jun 2017 08:48:06 +0100 Received: from porthos.netcom.co.uk ([217.72.171.73]) by relay1.thorcom.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1dOfnX-0001UM-FN for rsgb_lf_group@blacksheep.org; Sat, 24 Jun 2017 08:48:05 +0100 X-DKIM-Result: Domain=abelian.org Result=Signature OK 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=; Received: from i-194-106-52-83.freedom2surf.net ([194.106.52.83]:50753 helo=pn.abelian.org) by porthos.netcom.co.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1dOfnW-0001k2-SL for rsgb_lf_group@blacksheep.org; Sat, 24 Jun 2017 08:48:02 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by pn.abelian.org (Postfix) with ESMTP id 4591140043B for ; Sat, 24 Jun 2017 07:48:02 +0000 (UTC) References: <15ca21dc75e-1e15-bcda@webprd-m105.mail.aol.com> <0f9558b4-457d-a395-58c9-7f9be3393cdd@sky.com> <4767d79f-2bf6-d838-bfd4-3e78102d6f5d@abelian.org> <510c15eb-b57a-0ebb-9037-1f83e0652cf2@sky.com> <933fcc32-d4c9-10cd-14b4-c179d66e27f9@abelian.org> <7ab80e0f-40d7-6b07-19c1-f4b256d47c52@sky.com> <594DB217.8060707@posteo.de> <2eb826d6-d299-7b37-cf64-f5bef6718f24@abelian.org> To: rsgb_lf_group@blacksheep.org From: Paul Nicholson Message-ID: Date: Sat, 24 Jun 2017 07:48:02 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <2eb826d6-d299-7b37-cf64-f5bef6718f24@abelian.org> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - porthos.netcom.co.uk X-AntiAbuse: Original Domain - blacksheep.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - abelian.org X-Get-Message-Sender-Via: porthos.netcom.co.uk: authenticated_id: catchall@abelian.org X-Authenticated-Sender: porthos.netcom.co.uk: catchall@abelian.org X-Scan-Signature: 1c38f63d01970a2bf149f660c9cb2a37 Subject: Re: LF: Octo-soundcard for the Raspi, another question Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Scanned: Yes Sender: owner-rsgb_lf_group@blacksheep.org Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group X-SA-Exim-Rcpt-To: rs_out_1@blacksheep.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Scanned-By: MIMEDefang 2.75 Status: O X-Status: X-Keywords: X-UID: 12080 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 --