From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6130 216.105.38.0/24 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id CB5AF1F45A for ; Sat, 18 Apr 2020 05:50:09 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jPgMc-0006tL-Kk; Sat, 18 Apr 2020 05:50:02 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jPgMa-0006t0-Km for sox-users@lists.sourceforge.net; Sat, 18 Apr 2020 05:50:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Sender:Reply-To:Cc: Content-Transfer-Encoding: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=zD7Z/rMWxGpd3uOf16ztcAyucHG4QMADsu6C3hVOEFg=; b=PI+Ones8iFztJV/DdW1RlPzTV 77R32ONHPJeP6yrmuSE/9MHFGZezyX5/FvDNpz6cAVGk7SivNQA6prQFbWPodHnXRTTf3Qbb3FKIo YFQN3eE8cmfbe98dbdNkNXBKr6Q2PRGQmsHQrj8sZGRuau6QExJHwXyv15MIzIZ2IoOHM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding: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=zD7Z/rMWxGpd3uOf16ztcAyucHG4QMADsu6C3hVOEFg=; b=TKACCqOh1KevMsk98nq3qLsdy4 i8l6R7tNAC/sl5Xv2kRgDcTLaotyDuV17TkkBioBe3fCcB/uXWYMU/P6G3f7dPvtTq8yd3inNAHrv JVWJPDka+zRzN6bmAhn8YfPhsYhdZwl4cKUuSKZqFsxT//dpez3hUnpo/peVOhXr+Uz8=; Received: from mail-qv1-f49.google.com ([209.85.219.49]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jPgMZ-004SJp-00 for sox-users@lists.sourceforge.net; Sat, 18 Apr 2020 05:50:00 +0000 Received: by mail-qv1-f49.google.com with SMTP id 37so2033664qvc.8 for ; Fri, 17 Apr 2020 22:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=zD7Z/rMWxGpd3uOf16ztcAyucHG4QMADsu6C3hVOEFg=; b=El9Z+/+cEextrxMsNg0FJ6AWVKP+vy0o6vSgxTp5bG4SGrCp3ujm320jeCszC9+Q4n uJyZDhUk5nbf6DU2ffU1gH3MUhHqHpsiNOI/nJNzluC7E1ZBXSZbtBkcr4d9QhtxlPOD YsoBZF2O38OnmBi+Bv0qK9jmikK4vFEGSxn7KyQ4saR5oOLI2zohksZc1F4RoDcVcVRS lKrllg0joNR44C1rbvAIDN6LRv4qS7Biq0MrlDoGlk1bQqt1mzTJNAi7qRidQgrX2sgv YNHsmUZxABcgsNZ0R7HdFahJELq4994+YZcPAQfBUg3CHq1qJ/Zrmu1Nxvhl7xQAwleV e1Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=zD7Z/rMWxGpd3uOf16ztcAyucHG4QMADsu6C3hVOEFg=; b=l6oWScl32MwW6QERW+UZ3itRue7sEf9A8TJgMoOGgyas4ld9hO7Ycwx+kS68q3k35y MCFSIMdrnE8z71IHhwARTH71Xiy62FV7FeBnpJKLkajwmeAs3bCn6eiTM+Yp7pR3BoTh jEMoL6QCMqmDEx/u8A/reyBzl57lm0zM2Nrlx65RC83+6xVsP/JTCtjzsKQayuDJ2VTT /IXqwfYU6l2cCHlcikPmMTypk/E37SS2DIDqbpZVFJEA8xonKXuzEkblKHDDfeBgPvKi lZjmpJHC1cJy8zr0rZu1Anwf+ntJ5viBIPaT2NgdM7WFGhuAREBErMNowgC0eGyQ0GTB cdpw== X-Gm-Message-State: AGi0PuZiZVHT+bx2X7AexgmOSJHRQiU2qThgSplsXXwhtj68ugO0UvWV hrW0Kp+QYbLQonj+k4o1Jjjgl/Gbcj40+sroIm1u3usL X-Google-Smtp-Source: APiQypIwmjO7wayTQwSYxYsRUyLc5+haOHuMn6aQ8LM4hZT4Tmfv+Ir3OHE7qa0hQYg0Tzl3OZTZhXi88jEmpY2aqo4= X-Received: by 2002:a0c:fdc8:: with SMTP id g8mr6213928qvs.108.1587188992670; Fri, 17 Apr 2020 22:49:52 -0700 (PDT) MIME-Version: 1.0 References: <2abc00c8-f19a-abbd-f197-2e31b8be6cee@gmail.com> In-Reply-To: <2abc00c8-f19a-abbd-f197-2e31b8be6cee@gmail.com> From: Mikko Olkkonen Date: Sat, 18 Apr 2020 08:49:41 +0300 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1jPgMZ-004SJp-00 Subject: Re: Combine and trim files with silence X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Content-Type: multipart/mixed; boundary="===============1308366793552319642==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============1308366793552319642== Content-Type: multipart/alternative; boundary="00000000000019818f05a38a3ccf" --00000000000019818f05a38a3ccf Content-Type: text/plain; charset="UTF-8" Hello, Maybe pad main_file.wav with 1.5 seconds first separately. Then `soxi -D main_file.wav` outputs what you need? M0 PS I am not absolutely sure if you want to mix three files (as "mix" in sox manual). If yes, then pad (as "pad" in sox manual) between two of them does not make much sense? padding makes sense in concatenation context not in mixing context? On Sat, Apr 18, 2020 at 8:12 AM jungle boogie wrote: > Hi All, > > I'm using SoX v14.4.2 and would like help mixing three files, with > silence in between two of them. > > Problem I want to solve: > Mix three files with, with the longest being shorten to a specific file. > I also want a 1.5 second pad between short_track.wav and main_file.wav > > What I've tried: > sox -m main_file.wav long_track.wav -p pad 1.5 0 | sox - -m > short_track.wav -t wavpcm out.wav trim 0 0 `soxi -D main_file.wav` > > Problem is that the file cuts off about 1.5 seconds too quick, which is > how long my pad is. > > > I've also tried creating a blank file: > sox -n -r 16000 -b 16 -c 1 silence.wav trim 0.0 1.5 > > Then combining it: > sox short_track.wav silence.wav main_file.wav long_track.wav out.wav > trim 0 `soxi -D main_file.wav` > > But you seasoned sox experts already know this means log_track.wav isn't > used at all. This also cuts off about the last 1.5 seconds of the > out.wav file as well. > > So is it possible to combine these files and trim to the main file? > > Any pointers would be greatly appreciated! > > > _______________________________________________ > Sox-users mailing list > Sox-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sox-users > --00000000000019818f05a38a3ccf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,=C2=A0 Maybe pad main_file.wav with 1.5 seconds= first separately. Then `soxi -D main_file.wav` outputs what you need?
M0
PS I am not absolutely sure if you want to mix three fil= es (as "mix" in sox manual). If yes, then pad (as "pad"= in sox manual) between two of them does not make much sense? padding makes= sense in concatenation context not in mixing context?

<= div class=3D"gmail_quote">
On Sat, Apr= 18, 2020 at 8:12 AM jungle boogie <jungleboogie0@gmail.com> wrote:
Hi All,

I'm using SoX v14.4.2 and would like help mixing three files, with
silence in between two of them.

Problem I want to solve:
Mix three files with, with the longest being shorten to a specific file. I also want a 1.5 second pad between short_track.wav and main_file.wav

What I've tried:
sox -m main_file.wav long_track.wav -p pad 1.5 0 | sox - -m
short_track.wav -t wavpcm out.wav trim 0 0 `soxi -D main_file.wav`

Problem is that the file cuts off about 1.5 seconds too quick, which is how long my pad is.


I've also tried creating a blank file:
sox -n -r 16000 -b 16 -c 1 silence.wav trim 0.0 1.5

Then combining it:
sox short_track.wav silence.wav main_file.wav long_track.wav out.wav
trim 0 `soxi -D main_file.wav`

But you seasoned sox experts already know this means log_track.wav isn'= t
used at all. This also cuts off about the last 1.5 seconds of the
out.wav file as well.

So is it possible to combine these files and trim to the main file?

Any pointers would be greatly appreciated!


_______________________________________________
Sox-users mailing list
Sox-us= ers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s= ox-users
--00000000000019818f05a38a3ccf-- --===============1308366793552319642== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1308366793552319642== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============1308366793552319642==--