sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
* Merge and pipe channel assignment madness
@ 2017-09-01 21:24 Bouke / VideoToolShed
  2017-09-04  8:21 ` Jan Stary
  2017-09-05 15:17 ` Jan Stary
  0 siblings, 2 replies; 13+ messages in thread
From: Bouke / VideoToolShed @ 2017-09-01 21:24 UTC (permalink / raw)
  To: sox-users

[-- Attachment #1.1.1: Type: text/plain, Size: 577 bytes --]

Hi guys,
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’m using something like sox -M “| sox 3ch.wav -p pad 1” “|sox 5ch.wav” -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.

Now, remix could fix it, but I need to know what logic behind the channel remapping is used, and I am clueless…

Thanks for any insight!

Bouke




[-- Attachment #1.1.2: Type: text/html, Size: 1959 bytes --]

<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi guys,<div class="">Trying to merge multiple mono and poly Wave files while piping (to add custom padding to each input file.)</div><div class="">Whatever I do, on input poly files the output channel order is totally unpredictable.</div><div class=""><br class=""></div><div class="">I’m using something like sox -M “| sox 3ch.wav -p pad 1” “|sox 5ch.wav” -b 24 output.wav</div><div class="">I would expect to get the same order of output as in the order of the input / pipe, but that does not happen.</div><div class=""><br class=""></div><div class="">Now, remix could fix it, but I need to know what logic behind the channel remapping is used, and I am clueless…</div><div class=""><br class=""></div><div class="">Thanks for any insight!</div><div class=""><br class=""></div><div class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Bouke<br class=""><br class=""></div><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div></div>
</div>
<br class=""></div></body></html>

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-01 21:24 Merge and pipe channel assignment madness Bouke / VideoToolShed
@ 2017-09-04  8:21 ` Jan Stary
  2017-09-04 10:07   ` Bouke \(VideoToolShed\)
  2017-09-05 15:17 ` Jan Stary
  1 sibling, 1 reply; 13+ messages in thread
From: Jan Stary @ 2017-09-04  8:21 UTC (permalink / raw)
  To: sox-users

On Sep 01 23:24:20, bouke@videotoolshed.com wrote:
> Hi guys,
> 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’m using something like sox -M “| sox 3ch.wav -p pad 1” “|sox 5ch.wav” -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.

What happens if you pad the files first
and then do the merge without any extra piping?

	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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-04  8:21 ` Jan Stary
@ 2017-09-04 10:07   ` Bouke \(VideoToolShed\)
  0 siblings, 0 replies; 13+ messages in thread
From: Bouke \(VideoToolShed\) @ 2017-09-04 10:07 UTC (permalink / raw)
  To: sox-users

---- Original Message ----- 
From: "Jan Stary" <hans@stare.cz>
To: <sox-users@lists.sourceforge.net>
Sent: Monday, September 04, 2017 10:21 AM
Subject: Re: [SoX-users] Merge and pipe channel assignment madness


> On Sep 01 23:24:20, bouke@videotoolshed.com wrote:
>> Hi guys,
>> 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’m using something like sox -M “| sox 3ch.wav -p pad 1” “|sox 
>> 5ch.wav” -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.
>
> What happens if you pad the files first
> and then do the merge without any extra piping?

Hi Jan,
That would create a lot of temp files, and take time.
However, I think I have it resolved by putting all inputs as mono into a 
(very long) pipe:
eg
sox - M “| sox 3ch.wav -p pad 1 remix 1" “| sox 3ch.wav -p pad 1 remix 2" “| 
sox 3ch.wav -p pad 1 remix 3" “| sox 5ch.wav -p pad 1 remix 1 ...... etc...

That seems to do the trick!

thx,
Bouke

> Jan
> 

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-01 21:24 Merge and pipe channel assignment madness Bouke / VideoToolShed
  2017-09-04  8:21 ` Jan Stary
@ 2017-09-05 15:17 ` Jan Stary
  2017-09-06 13:38   ` Bouke / VideoToolShed
  1 sibling, 1 reply; 13+ messages in thread
From: Jan Stary @ 2017-09-05 15:17 UTC (permalink / raw)
  To: sox-users

On Sep 01 23:24:20, bouke@videotoolshed.com wrote:
> Hi guys,
> 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’m using something like sox -M “| sox 3ch.wav -p pad 1” “|sox 5ch.wav” -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.

  $ sox -n poly.wav synth 5 sin 200 sin 300 sin 400 
  $ sox -n next.wav synth 5 sin 400 sin 600 sin 800 
  $ sox -M "|sox poly.wav -p pad 1" "|sox next.wav -p pad 1" output.wav
 
This creates a six-channel file with channels ordered as I would expect:
channel one from poly.wav, channel two from poly.wav, up to channel three
from next.wav. I verified that with listening to

  $ play output remix 1
  $ play output remix 2
  $ play output remix 3
  $ play output remix 4
  $ play output remix 5
  $ play output remix 6

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

Can you please upload two of your multichannel files
so that I can reproduce exactly what you are doing?

	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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-05 15:17 ` Jan Stary
@ 2017-09-06 13:38   ` Bouke / VideoToolShed
  2017-09-07 15:51     ` Jan Stary
  0 siblings, 1 reply; 13+ messages in thread
From: Bouke / VideoToolShed @ 2017-09-06 13:38 UTC (permalink / raw)
  To: sox-users

[-- Attachment #1.1.1: Type: text/plain, Size: 1650 bytes --]


> On 05 Sep 2017, at 17:17, Jan Stary <hans@stare.cz> wrote:
> 
> On Sep 01 23:24:20, bouke@videotoolshed.com wrote:
>> Hi guys,
>> 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’m using something like sox -M “| sox 3ch.wav -p pad 1” “|sox 5ch.wav” -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.
> 
Hi Jan,
> 
> What version of SoX are you using?
> Does it also happen with the current version

Hi Jan,
If you like, try this:
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.)
File can be downloaded here:
https://we.tl/4XNMXikv0J <https://we.tl/4XNMXikv0J>

Thx!
Bouke


> Can you please upload two of your multichannel files
> so that I can reproduce exactly what you are doing?
> 
> 	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


[-- Attachment #1.1.2: Type: text/html, Size: 3257 bytes --]

<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><div><blockquote type="cite" class=""><div class="">On 05 Sep 2017, at 17:17, Jan Stary &lt;<a href="mailto:hans@stare.cz" class="">hans@stare.cz</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">On Sep 01 23:24:20, <a href="mailto:bouke@videotoolshed.com" class="">bouke@videotoolshed.com</a> wrote:<br class=""><blockquote type="cite" class="">Hi guys,<br class="">Trying to merge multiple mono and poly Wave files while piping (to add custom padding to each input file.)<br class="">Whatever I do, on input poly files the output channel order is totally unpredictable.<br class=""><br class="">I’m using something like sox -M “| sox 3ch.wav -p pad 1” “|sox 5ch.wav” -b 24 output.wav<br class="">I would expect to get the same order of output as in the order of the input / pipe, but that does not happen.<br class=""></blockquote><br class="">I cannot reproduce this behaviour.<br class=""><br class=""></div></blockquote><div>Hi Jan,</div><blockquote type="cite" class=""><div class=""><br class="">What version of SoX are you using?<br class="">Does it also happen with the current version<br class=""></div></blockquote><div><br class=""></div>Hi Jan,</div><div>If you like, try this:</div><div>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<br class=""><div><br class=""></div><div>The file has ch1 (a bit) static, ch2 silence, ch3 voice</div><div>On merge, the input tracks are reversed (but other files behave random.)</div><div>File can be downloaded here:</div><div><a class="download_link_link" href="https://we.tl/4XNMXikv0J" style="font-size: 14px; line-height: 24px; color: rgb(23, 24, 26); font-family: 'Fakt Pro Medium', 'Segoe UI', 'SanFrancisco Display', Arial, sans-serif; word-wrap: break-word;"><span class="download_link_link" style="color: rgb(64, 159, 255); word-wrap: break-word;">https://we.tl/4XNMXikv0J</span></a></div><div><br class=""></div><div>Thx!</div><div>Bouke</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class="">Can you please upload two of your multichannel files<br class="">so that I can reproduce exactly what you are doing?<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">	</span>Jan<br class=""><br class=""><br class="">------------------------------------------------------------------------------<br class="">Check out the vibrant tech community on one of the world's most<br class="">engaging tech sites, <a href="http://Slashdot.org" class="">Slashdot.org</a>! <a href="http://sdm.link/slashdot" class="">http://sdm.link/slashdot</a><br class="">_______________________________________________<br class="">Sox-users mailing list<br class=""><a href="mailto:Sox-users@lists.sourceforge.net" class="">Sox-users@lists.sourceforge.net</a><br class="">https://lists.sourceforge.net/lists/listinfo/sox-users<br class=""></div></blockquote></div><br class=""></div></body></html>

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-06 13:38   ` Bouke / VideoToolShed
@ 2017-09-07 15:51     ` Jan Stary
  2017-09-07 18:43       ` Bouke / VideoToolShed
  0 siblings, 1 reply; 13+ messages in thread
From: Jan Stary @ 2017-09-07 15:51 UTC (permalink / raw)
  To: sox-users

> >> 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’m using something like sox -M “| sox 3ch.wav -p pad 1” “|sox 5ch.wav” -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

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?

	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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-07 15:51     ` Jan Stary
@ 2017-09-07 18:43       ` Bouke / VideoToolShed
  2017-09-07 19:31         ` Jan Stary
  0 siblings, 1 reply; 13+ messages in thread
From: Bouke / VideoToolShed @ 2017-09-07 18:43 UTC (permalink / raw)
  To: sox-users

[-- Attachment #1.1.1: Type: text/plain, Size: 2137 bytes --]


> 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’m using something like sox -M “| sox 3ch.wav -p pad 1” “|sox 5ch.wav” -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’s 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:
Download link
https://we.tl/lRpO2tMTxu <https://we.tl/lRpO2tMTxu>

I must say, I’ve only checked in Audacity, but I doubt that would matter...
Btw, I’ve only tested on Windows (7, but I doubt that will matter….)
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


[-- Attachment #1.1.2: Type: text/html, Size: 4914 bytes --]

<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 07 Sep 2017, at 17:51, Jan Stary &lt;<a href="mailto:hans@stare.cz" class="">hans@stare.cz</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">Trying to merge multiple mono and poly Wave files while piping (to add custom padding to each input file.)<br class="">Whatever I do, on input poly files the output channel order is totally unpredictable.<br class=""><br class="">I’m using something like sox -M “| sox 3ch.wav -p pad 1” “|sox 5ch.wav” -b 24 output.wav<br class="">I would expect to get the same order of output as in the order of the input / pipe, but that does not happen.<br class=""></blockquote><br class="">I cannot reproduce this behaviour.<br class=""><br class="">What version of SoX are you using?<br class="">Does it also happen with the current version<br class=""></blockquote></blockquote><br class=""><blockquote type="cite" class=""><a href="https://we.tl/4XNMXikv0J" class="">https://we.tl/4XNMXikv0J</a><br class="">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<br class=""><br class="">The file has ch1 (a bit) static, ch2 silence, ch3 voice<br class="">On merge, the input tracks are reversed (but other files behave random.)<br class=""></blockquote><br class="">With my installation of SoX, running<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">	</span>$ sox -M "|sox T72.WAV -p pad 0" "|sox T72.WAV -p pad 1" output.wav<br class=""><br class="">creates an output file with 6 channels, containing (in this order):<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">	</span>1 static<br class=""><span class="Apple-tab-span" style="white-space:pre">	</span>2 silence<br class=""><span class="Apple-tab-span" style="white-space:pre">	</span>3 voice<br class=""><span class="Apple-tab-span" style="white-space:pre">	</span>4 static<br class=""><span class="Apple-tab-span" style="white-space:pre">	</span>5 silence<br class=""><span class="Apple-tab-span" style="white-space:pre">	</span>6 voice<br class=""></div></blockquote><div><br class=""></div><div>Hi Jan,</div><div>Yeah, that’s what I would expect :-)</div><br class=""><blockquote type="cite" class=""><div class="">so I still cannot reproduce your problem.<br class="">I also tried with the "-b 24" which should be irrelevant - no change.<br class=""><br class="">Can you please also upload your output file?<br class=""></div></blockquote><div><br class=""></div>Sure, here you go:</div><div><span class="body_content_subheading_span" style="line-height: 24px; color: rgb(23, 24, 26); font-family: 'FreightSans Pro', 'Segoe UI', 'SanFrancisco Display', Arial, sans-serif; font-size: 18px;">Download link&nbsp;</span><span style="color: rgb(121, 124, 127); font-family: 'Fakt Pro', 'Segoe UI', 'SanFrancisco Display', Arial, sans-serif; font-size: 14px; line-height: 24px; background-color: rgb(255, 255, 255);" class=""></span><br style="color: rgb(121, 124, 127); font-family: 'Fakt Pro', 'Segoe UI', 'SanFrancisco Display', Arial, sans-serif; font-size: 14px; line-height: 24px;" class=""><span class="download_link_link" style="font-size: 14px; line-height: 24px; color: rgb(64, 159, 255); font-family: 'Fakt Pro Medium', 'Segoe UI', 'SanFrancisco Display', Arial, sans-serif; word-wrap: break-word;"><font color="#17181a" class=""><a href="https://we.tl/lRpO2tMTxu" class="">https://we.tl/lRpO2tMTxu</a></font></span></div><div><br class=""></div><div><div>I must say, I’ve only checked in Audacity, but I doubt that would matter...</div><div>Btw, I’ve only tested on Windows (7, but I doubt that will matter….)</div>Bouke</div><div><br class=""><blockquote type="cite" class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">	</span>Jan<br class=""><br class=""><br class="">------------------------------------------------------------------------------<br class="">Check out the vibrant tech community on one of the world's most<br class="">engaging tech sites, <a href="http://Slashdot.org" class="">Slashdot.org</a>! <a href="http://sdm.link/slashdot" class="">http://sdm.link/slashdot</a><br class="">_______________________________________________<br class="">Sox-users mailing list<br class=""><a href="mailto:Sox-users@lists.sourceforge.net" class="">Sox-users@lists.sourceforge.net</a><br class="">https://lists.sourceforge.net/lists/listinfo/sox-users<br class=""></div></blockquote></div><br class=""></body></html>

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-07 18:43       ` Bouke / VideoToolShed
@ 2017-09-07 19:31         ` Jan Stary
  2017-09-08  8:02           ` Jan Stary
  0 siblings, 1 reply; 13+ messages in thread
From: Jan Stary @ 2017-09-07 19:31 UTC (permalink / raw)
  To: sox-users

> >> 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’s 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:
> https://we.tl/lRpO2tMTxu

Listening to this file with "play output.wav remix 1" etc, I hear:

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

Note that the channels are not "reversed" as you said, it's 2 3 1.
Can you also try with two different 3ch files to see
if it behaves consistently?

> I must say, I’ve only checked in Audacity, but I doubt that would matter...

Hm, have you done anything else to the file with Audacity?
Are you sure Audacity does not reorder the channels somehow?
Please keep it simple and only use SoX: what is your exact SoX command,
and what do you hear when listening to the individual channels with play?

Other than that, I don't have any idea why SoX
would change the order of channels at all.

> Btw, I’ve only tested on Windows (7, but I doubt that will matter….)

I don't think that would be causing it.

	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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-07 19:31         ` Jan Stary
@ 2017-09-08  8:02           ` Jan Stary
  2017-09-08 15:05             ` Bouke / VideoToolShed
  0 siblings, 1 reply; 13+ messages in thread
From: Jan Stary @ 2017-09-08  8:02 UTC (permalink / raw)
  To: sox-users

On Sep 07 21:31:53, hans@stare.cz wrote:
> > >> 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’s 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:
> > https://we.tl/lRpO2tMTxu
> 
> Listening to this file with "play output.wav remix 1" etc, I hear:
> 
> 	1 silence
> 	2 voice
> 	3 static
> 	4 silence
> 	5 voice
> 	6 static
> 
> Note that the channels are not "reversed" as you said, it's 2 3 1.
> Can you also try with two different 3ch files to see
> if it behaves consistently?
> 
> > I must say, I’ve only checked in Audacity, but I doubt that would matter...

Just to be sure: using Audacity, you do hear the very same
in the channels as I describe above, right?


------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-08  8:02           ` Jan Stary
@ 2017-09-08 15:05             ` Bouke / VideoToolShed
  2017-09-08 15:53               ` Jan Stary
  0 siblings, 1 reply; 13+ messages in thread
From: Bouke / VideoToolShed @ 2017-09-08 15:05 UTC (permalink / raw)
  To: sox-users

[-- Attachment #1.1.1: Type: text/plain, Size: 2266 bytes --]



> On 08 Sep 2017, at 10:02, Jan Stary <hans@stare.cz> wrote:
> 
> On Sep 07 21:31:53, hans@stare.cz <mailto:hans@stare.cz> wrote:
>>>>> 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’s 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:
>>> https://we.tl/lRpO2tMTxu
>> 
>> Listening to this file with "play output.wav remix 1" etc, I hear:
>> 
>> 	1 silence
>> 	2 voice
>> 	3 static
>> 	4 silence
>> 	5 voice
>> 	6 static
>> 
>> Note that the channels are not "reversed" as you said, it's 2 3 1.
>> Can you also try with two different 3ch files to see
>> if it behaves consistently?
>> 
>>> I must say, I’ve only checked in Audacity, but I doubt that would matter...
> 
> Just to be sure: using Audacity, you do hear the very same
> in the channels as I describe above, right?
> 

Hi Jan,
I’ve tested also Avid and WaveAgent,
Output is definitely wrong!
I’ll test some more and look at it with a HEX editor, see if samples are missing.
(But I need to generate some testfiles first…)

Bouke


> 
> ------------------------------------------------------------------------------
> 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


[-- Attachment #1.1.2: Type: text/html, Size: 13981 bytes --]

<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div apple-content-edited="true" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 08 Sep 2017, at 10:02, Jan Stary &lt;<a href="mailto:hans@stare.cz" class="">hans@stare.cz</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">On Sep 07 21:31:53,<span class="Apple-converted-space">&nbsp;</span></span><a href="mailto:hans@stare.cz" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">hans@stare.cz</a><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><span class="Apple-converted-space">&nbsp;</span>wrote:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><a href="https://we.tl/4XNMXikv0J" class="">https://we.tl/4XNMXikv0J</a><br class="">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<br class=""><br class="">The file has ch1 (a bit) static, ch2 silence, ch3 voice<br class="">On merge, the input tracks are reversed (but other files behave random.)<br class=""></blockquote><br class="">With my installation of SoX, running<br class=""><br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>$ sox -M "|sox T72.WAV -p pad 0" "|sox T72.WAV -p pad 1" output.wav<br class=""><br class="">creates an output file with 6 channels, containing (in this order):<br class=""><br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>1 static<br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>2 silence<br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>3 voice<br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>4 static<br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>5 silence<br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>6 voice<br class=""></blockquote><br class="">Hi Jan,<br class="">Yeah, that’s what I would expect :-)<br class=""><br class=""><blockquote type="cite" class="">so I still cannot reproduce your problem.<br class="">I also tried with the "-b 24" which should be irrelevant - no change.<br class=""><br class="">Can you please also upload your output file?<br class=""></blockquote><br class="">Sure, here you go:<br class=""><a href="https://we.tl/lRpO2tMTxu" class="">https://we.tl/lRpO2tMTxu</a><br class=""></blockquote><br class="">Listening to this file with "play output.wav remix 1" etc, I hear:<br class=""><br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>1 silence<br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>2 voice<br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>3 static<br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>4 silence<br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>5 voice<br class=""><span class="Apple-tab-span" style="white-space: pre;">	</span>6 static<br class=""><br class="">Note that the channels are not "reversed" as you said, it's 2 3 1.<br class="">Can you also try with two different 3ch files to see<br class="">if it behaves consistently?<br class=""><br class=""><blockquote type="cite" class="">I must say, I’ve only checked in Audacity, but I doubt that would matter...<br class=""></blockquote></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Just to be sure: using Audacity, you do hear the very same</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">in the channels as I describe above, right?</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>Hi Jan,</div><div>I’ve tested also Avid and WaveAgent,</div><div>Output is definitely wrong!</div><div>I’ll test some more and look at it with a HEX editor, see if samples are missing.</div><div>(But I need to generate some testfiles first…)</div><div><br class=""></div><div>Bouke</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">------------------------------------------------------------------------------</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Check out the vibrant tech community on one of the world's most</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">engaging tech sites, <a href="http://Slashdot.org" class="">Slashdot.org</a>! <a href="http://sdm.link/slashdot" class="">http://sdm.link/slashdot</a></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Sox-users mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="mailto:Sox-users@lists.sourceforge.net" class="">Sox-users@lists.sourceforge.net</a></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="https://lists.sourceforge.net/lists/listinfo/sox-users" class="">https://lists.sourceforge.net/lists/listinfo/sox-users</a></span></div></blockquote></div><br class=""></body></html>

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-08 15:05             ` Bouke / VideoToolShed
@ 2017-09-08 15:53               ` Jan Stary
  2017-09-08 22:28                 ` Jeremy Nicoll - ml sox users
  0 siblings, 1 reply; 13+ messages in thread
From: Jan Stary @ 2017-09-08 15:53 UTC (permalink / raw)
  To: sox-users

On Sep 08 17:05:25, bouke@videotoolshed.com wrote:
> 
> 
> > On 08 Sep 2017, at 10:02, Jan Stary <hans@stare.cz> wrote:
> > 
> > On Sep 07 21:31:53, hans@stare.cz <mailto:hans@stare.cz> wrote:
> >>>>> 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’s 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:
> >>> https://we.tl/lRpO2tMTxu
> >> 
> >> Listening to this file with "play output.wav remix 1" etc, I hear:
> >> 
> >> 	1 silence
> >> 	2 voice
> >> 	3 static
> >> 	4 silence
> >> 	5 voice
> >> 	6 static
> >> 
> >> Note that the channels are not "reversed" as you said, it's 2 3 1.
> >> Can you also try with two different 3ch files to see
> >> if it behaves consistently?
> >> 
> >>> I must say, I’ve only checked in Audacity, but I doubt that would matter...
> > 
> > Just to be sure: using Audacity, you do hear the very same
> > in the channels as I describe above, right?
> > 
> 

> I’ve tested also Avid and WaveAgent,
> Output is definitely wrong!

I'll repeat the question: do you hear the same
in the individual channels as I describe above?

> (But I need to generate some testfiles first…)

No, use the file you sent me,
so that we listen to the same thing.
https://we.tl/lRpO2tMTxu

	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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-08 15:53               ` Jan Stary
@ 2017-09-08 22:28                 ` Jeremy Nicoll - ml sox users
  2017-09-10 18:26                   ` Jan Stary
  0 siblings, 1 reply; 13+ messages in thread
From: Jeremy Nicoll - ml sox users @ 2017-09-08 22:28 UTC (permalink / raw)
  To: sox-users

On 2017-09-08 16:53, Jan Stary wrote:

> I'll repeat the question: do you hear the same
> in the individual channels as I describe above?
> 
>> (But I need to generate some testfiles first…)
> 
> No, use the file you sent me,
> so that we listen to the same thing.
> https://we.tl/lRpO2tMTxu


If there's something odd going on with the way that sound is 
processed/routed on
either of your computers, 'listening' might not be the best way to 
discriminate
between behaviour on different machines.

Might it not be better to use soxi or the stat/stats effects to report 
on the
content of each channel in the multi-channel file?

That file might need rebuilt so that instead of (as I think it may have) 
different
frequencies of test tones in each channel, it has significantly 
different levels of
sound on each channel.   The isolation of each channel and stat/stats 
should show
each such channel's different peak level, and the output from those 
effects can be
listed here for everyone to see.

-- 
Jeremy Nicoll - my opinions are my own

------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Merge and pipe channel assignment madness
  2017-09-08 22:28                 ` Jeremy Nicoll - ml sox users
@ 2017-09-10 18:26                   ` Jan Stary
  0 siblings, 0 replies; 13+ messages in thread
From: Jan Stary @ 2017-09-10 18:26 UTC (permalink / raw)
  To: sox-users

On Sep 08 23:28:35, jn.ml.sxu.88@wingsandbeaks.org.uk wrote:
> On 2017-09-08 16:53, Jan Stary wrote:
> 
> > I'll repeat the question: do you hear the same
> > in the individual channels as I describe above?
> > 
> > > (But I need to generate some testfiles first…)
> > 
> > No, use the file you sent me,
> > so that we listen to the same thing.
> > https://we.tl/lRpO2tMTxu
> 
> 
> If there's something odd going on with the way that sound is
> processed/routed on either of your computers,
> 'listening' might not be the best way to
> discriminate between behaviour on different machines.
> Might it not be better to use soxi or the stat/stats effects to report on
> the content of each channel in the multi-channel file?

No. It's three (resp. six) channels of audio that are
so apparently different (silence, scratches, speech)
that just listening to it is the easiest way to tell them apart.

> That file might need rebuilt so that instead of (as I think it may have)
> different
> frequencies of test tones in each channel, it has significantly different
> levels of
> sound on each channel.

It has completely different material in each channel.
Computing peaks/frequencies/whatnot would be completely pointless.

> The isolation of each channel and stat/stats should
> show each such channel's different peak level,
> and the output from those effects
> can be listed here for everyone to see.

The OP has already posted the actual audio output file
for everyone to see.

	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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, back to index

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-01 21:24 Merge and pipe channel assignment madness Bouke / VideoToolShed
2017-09-04  8:21 ` Jan Stary
2017-09-04 10:07   ` Bouke \(VideoToolShed\)
2017-09-05 15:17 ` Jan Stary
2017-09-06 13:38   ` Bouke / VideoToolShed
2017-09-07 15:51     ` Jan Stary
2017-09-07 18:43       ` Bouke / VideoToolShed
2017-09-07 19:31         ` Jan Stary
2017-09-08  8:02           ` Jan Stary
2017-09-08 15:05             ` Bouke / VideoToolShed
2017-09-08 15:53               ` Jan Stary
2017-09-08 22:28                 ` Jeremy Nicoll - ml sox users
2017-09-10 18:26                   ` Jan Stary

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/sox-users

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
	nntp://news.gmane.org/gmane.comp.audio.sox

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox