From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3561 216.34.176.0/20 X-Spam-Status: No, score=-3.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (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 46B5920286 for ; Thu, 7 Sep 2017 18:44:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1dq1mT-00025l-RF; Thu, 07 Sep 2017 18:44:01 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1dq1mR-000251-Nl for sox-users@lists.sourceforge.net; Thu, 07 Sep 2017 18:43:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:To:References:Date:Subject:Mime-Version:Message-Id:Content-Type:From; bh=4wE2B/1Jj12sPTGIMIiots2WR5+LRb9RSEK0Sj/aQss=; b=BEa9gr/RzX/8gBRHsIayE0ujBUOzvyGYZ+sTKOmSP/4aArdhkUpTn3m1W9upkGsHLzSZqFcBBdYFxPVNo3Kppd5WwVEtVqWPmfpJZAatIl3WSWZ26wiclUIG7pkIbu7FFvG8t7wOWd7APdYTYH0FKTLU8eZ8DZre9jQwu2EJAFI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=In-Reply-To:To:References:Date:Subject:Mime-Version:Message-Id:Content-Type:From; bh=4wE2B/1Jj12sPTGIMIiots2WR5+LRb9RSEK0Sj/aQss=; b=OW9kfSMmJEg+lQGP5ZhSOKFbNYH50gWBviCL0ONGZ7+4K40pCUK6wdBAQp7wHmNu8A51Q8Z/5kCUcnKOwTDX4t8dRT48tQPlJy4GqcMLmwqEE4rZ9mRZP5h+75VbJuYlvzlule5Na9WhpC2puebebQFQJXhHiTJlm6FCixqRwzE=; X-ACL-Warn: Received: from lb3-smtp-cloud9.xs4all.net ([194.109.24.30]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1dq1mP-00086B-OW for sox-users@lists.sourceforge.net; Thu, 07 Sep 2017 18:43:59 +0000 Received: from [IPv6:2001:984:93c2:1:4c52:d435:19b1:2d52] ([IPv6:2001:984:93c2:1:4c52:d435:19b1:2d52]) by smtp-cloud9.xs4all.net with ESMTPA id q1mHdV3mzdRLjq1mJdkTIe; Thu, 07 Sep 2017 20:43:51 +0200 From: Bouke / VideoToolShed Message-Id: <9E5933CF-6BC6-49C3-82A6-6C21B2FD991E@videotoolshed.com> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Date: Thu, 7 Sep 2017 20:43:48 +0200 References: <55982714-FD94-401E-9391-E41BDA42BCC9@videotoolshed.com> <20170905151747.GA56785@www.stare.cz> <20170907155114.GA36094@www.stare.cz> To: sox-users@lists.sourceforge.net In-Reply-To: <20170907155114.GA36094@www.stare.cz> X-Mailer: Apple Mail (2.2104) X-CMAE-Envelope: MS4wfFflBu3qvlO2L6E4P407PItyyZ8DlCfV2kev/8ndmrLQFXhcZ5ZzzLv2E0Sgo8B+O/96ty6In9gG4bKcR8ziHcsp8jbuA1pvAzsypEV4NqD2+t1I/lCa uU+DxRpLLIiiLe+SOQf4mygslqAgEYC5cvZ27S4yoRTPtKzf8kYUmFKRYCJ4r+X+hy5K/RHKaLmLBW4vOYIRN4PSYzIinFKOZ8sYDue4LqxRX8nfxO2ae/s1 nKh1x3aS4UFX55NUB7gxYg== X-Headers-End: 1dq1mP-00086B-OW Subject: Re: Merge and pipe channel assignment madness 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="===============6935251956421108814==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============6935251956421108814== Content-Type: multipart/signed; boundary="Apple-Mail=_229AE88B-AC30-47E3-BB89-B1485B25F5B5"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Apple-Mail=_229AE88B-AC30-47E3-BB89-B1485B25F5B5 Content-Type: multipart/alternative; boundary="Apple-Mail=_7F3D3234-912B-4C4E-A933-F692EED779AC" --Apple-Mail=_7F3D3234-912B-4C4E-A933-F692EED779AC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 07 Sep 2017, at 17:51, Jan Stary wrote: >=20 >>>> Trying to merge multiple mono and poly Wave files while piping (to = add custom padding to each input file.) >>>> Whatever I do, on input poly files the output channel order is = totally unpredictable. >>>>=20 >>>> I=E2=80=99m using something like sox -M =E2=80=9C| sox 3ch.wav -p = pad 1=E2=80=9D =E2=80=9C|sox 5ch.wav=E2=80=9D -b 24 output.wav >>>> I would expect to get the same order of output as in the order of = the input / pipe, but that does not happen. >>>=20 >>> I cannot reproduce this behaviour. >>>=20 >>> What version of SoX are you using? >>> Does it also happen with the current version >=20 >> https://we.tl/4XNMXikv0J >> Y:\sox-14-4-2\sox -M "| Y:\sox-14-4-2\sox J:\Torsten\tst\T72.WAV -p = pad 0" "| Y:\sox-14-4-2\sox J:\Torsten\tst\T72.WAV -p pad 1" -b 24 = J:\Torsten\tst\output.wav >>=20 >> The file has ch1 (a bit) static, ch2 silence, ch3 voice >> On merge, the input tracks are reversed (but other files behave = random.) >=20 > With my installation of SoX, running >=20 > $ sox -M "|sox T72.WAV -p pad 0" "|sox T72.WAV -p pad 1" = output.wav >=20 > creates an output file with 6 channels, containing (in this order): >=20 > 1 static > 2 silence > 3 voice > 4 static > 5 silence > 6 voice Hi Jan, Yeah, that=E2=80=99s what I would expect :-) > so I still cannot reproduce your problem. > I also tried with the "-b 24" which should be irrelevant - no change. >=20 > Can you please also upload your output file? Sure, here you go: Download link https://we.tl/lRpO2tMTxu I must say, I=E2=80=99ve only checked in Audacity, but I doubt that = would matter... Btw, I=E2=80=99ve only tested on Windows (7, but I doubt that will = matter=E2=80=A6.) Bouke > Jan >=20 >=20 > = --------------------------------------------------------------------------= ---- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Sox-users mailing list > Sox-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sox-users --Apple-Mail=_7F3D3234-912B-4C4E-A933-F692EED779AC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On 07 Sep 2017, at 17:51, Jan Stary <hans@stare.cz> = wrote:

Trying to merge multiple = mono and poly Wave files while piping (to add custom padding to each = input file.)
Whatever I do, on input poly files the output = channel order is totally unpredictable.

I=E2=80= =99m using something like sox -M =E2=80=9C| sox 3ch.wav -p pad 1=E2=80=9D = =E2=80=9C|sox 5ch.wav=E2=80=9D -b 24 output.wav
I would = expect to get the same order of output as in the order of the input / = pipe, but that does not happen.

I cannot reproduce this behaviour.

What version of SoX are you using?
Does it also = happen with the current version

https://we.tl/4XNMXikv0J
Y:\sox-14-4-2\sox = -M "| Y:\sox-14-4-2\sox J:\Torsten\tst\T72.WAV -p pad 0" "| = Y:\sox-14-4-2\sox J:\Torsten\tst\T72.WAV -p pad 1" -b 24 = J:\Torsten\tst\output.wav

The file has ch1 = (a bit) static, ch2 silence, ch3 voice
On merge, the input = tracks are reversed (but other files behave random.)

With my installation of SoX, = running

$ sox -M "|sox T72.WAV -p pad 0" = "|sox T72.WAV -p pad 1" output.wav

creates = an output file with 6 channels, containing (in this order):

1 static
2 = silence
3 voice
4 = static
5 silence
6 = voice

Hi = Jan,
Yeah, that=E2=80=99s what I would expect :-)

so I = still cannot reproduce your problem.
I also tried with the = "-b 24" which should be irrelevant - no change.

Can you please also upload your output file?

Sure, here you = go:

I must say, I=E2=80=99ve only checked in = Audacity, but I doubt that would matter...
Btw, I=E2=80=99ve = only tested on Windows (7, but I doubt that will = matter=E2=80=A6.)
Bouke

Jan


---------------------------------------------------------------= ---------------
Check out the vibrant tech community on = one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

= --Apple-Mail=_7F3D3234-912B-4C4E-A933-F692EED779AC-- --Apple-Mail=_229AE88B-AC30-47E3-BB89-B1485B25F5B5 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJZsZNlAAoJEGvldIVYaqVUouoP/1fcRfo4VNU/Vwn6eA0sKsXE EtaK0+JpnPqM+jgScS4jEF4B1DvuHPem6/EvR0FnmZPOJo3W3hDcTcdsMlZRvjmH LyU+1fCu4jAx5tN930fwV+lcpZcOJejj6OgfjO2k3Y+I1ec6gau0ldNMb26laKLm W1PAxLuiFepHhV9wbreLDIgWWqR5mYwP+bYJBtHSb3kpjnMxQinKrktThGz6ixYv B0iB+KhVnfjE/3ptb2Pf+UGVVyncK6WrskOEsYINwxf/g3oU1JmCCXk5K5/f3t/V /qu45DBNA0as+oof3RR8e8yCNLKkSLM2okQUPHpz7dabsF+5FvLwpHWxiamv3eGJ Sp0echczaaezd7pyPpjgyt841fTWAGYzWyk6PlWV84xbN7W1Iwk2g0fmjqwBjYPs D7vXCaQ90ok6f/i+bvaDMSinZYclGZjDQ0VURv75TbL85UJlU7NSidilj+i+BQAx 0zRe0gU16U9OZ8Ii979eOPJN8Q63to8dehM4oAuEKq6/y40BLNfRysdUDQF4Msd9 kzXSgy2FZjbKHZwIJzYqbq3yCd7rQQCrcjDcxP40yoR3eot8U/05eop503V5V08c qh/bpL+nGLL//H+Pll4gpqz0gPd9TvoZ512d8YNrm0RZjWCHi7sf+BoZe65hKuMj 3/aHI7+fjjof3ZjPg89E =jTG0 -----END PGP SIGNATURE----- --Apple-Mail=_229AE88B-AC30-47E3-BB89-B1485B25F5B5-- --===============6935251956421108814== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============6935251956421108814== 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 --===============6935251956421108814==--