Re: [SlimDevices: Plugins] spotty conversion for Inguz?

2018-06-17 Thread Dela Vandaag


Could one of you direct me where in custom-convert.conf these lines have
to be put? All spotify music is skipped when I try a modified
custom-convert.conf.

Thanks, Dela



Dela Vandaag's Profile: http://forums.slimdevices.com/member.php?userid=66390
View this thread: http://forums.slimdevices.com/showthread.php?t=108010

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] spotty conversion for Inguz?

2017-09-20 Thread JohnB

Bob,

I'd rather wait for now because, from what very little I can understand
of the InguzDSP source code (and it is very little), it looks as though
Inguz might well accept raw pcm input (as long as it is 44100Hz, 2
channel, 16 bit, little endian) if the -wav parameter is changed to
-raw. That would be a better solution IF it worked - so I would like to
check things out.

(All these things take time . lots of time  at least for me.)



Touch, Meridian G92, Meridian G55, PMC OB1i speakers, HP Proliant
Microserver/Ubuntu, PC/Windows 7, iPad 4, iPeng, Squeezepad.

JohnB's Profile: http://forums.slimdevices.com/member.php?userid=31553
View this thread: http://forums.slimdevices.com/showthread.php?t=108010

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] spotty conversion for Inguz?

2017-09-20 Thread bobertuk

JohnB wrote: 
> I've been doing some testing, using the custom-convert.conf command
> lines - as suggested by Michael, though not using Spotify.
> 
> This sox section of the command line seems to work. It accepts piped in
> pcm and pipes out wav.
> 
> | [sox]  -q -t raw -b 16 -e signed -c 2 -r 44.1k -L - -t wav  - |
> 
> I've tested it on files (within LMS) but not on Spotify streams.
> 
> It would make the Inguz section:
> 
> > 
Code:

  >   > spt flc * xx:xx:xx:xx:xx:xx
  > # RT:{START=--start-position %s}
  > [spotty] -n Squeezebox -c "$CACHE$" --single-track $FILE$ 
--disable-discovery --disable-audio-cache $START$ | [sox]  -q -t raw -b 16 -e 
signed -c 2 -r 44.1k -L - -t wav  - | [InguzDSP] -id "xx:xx:xx:xx:xx:xx" -wav 
-wavo -d 24 | [flac] -cs --fast --totally-silent --ignore-chunk-sizes -

> > 
> 
> That seemed to work, according to Bob.

All working now thanks to JohnB. John has also written a new section for
Inguz Plugin.pm that generates the appropriate lines in
custom-convert.conf.

John, do you want to publish your modification for Plugin.pm or would
you rather wait?

Bob



1 x Touch
1 x Radio
1 x Boom
1 x Intel-NUC server/squeezelite running LMS 7.91 on Windows 10
1 X Odroid-XU4 server/squeezelite running LMS 7.91 on Ubuntu 16.04
WaveIO USB into Lavry DA-10 DAC
Starfish Pre-amp : Based on NAIM NAC 72
Heavily modified NAIM NAP 250 Power-amp
Behringer DEQ2496
Linn Isobarik DMS

bobertuk's Profile: http://forums.slimdevices.com/member.php?userid=30376
View this thread: http://forums.slimdevices.com/showthread.php?t=108010

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] spotty conversion for Inguz?

2017-09-20 Thread JohnB

On further investigation it seems that the sox command that I had tried
before, the first example in post #4, just needed a tailing "-" to make
it work!



Touch, Meridian G92, Meridian G55, PMC OB1i speakers, HP Proliant
Microserver/Ubuntu, PC/Windows 7, iPad 4, iPeng, Squeezepad.

JohnB's Profile: http://forums.slimdevices.com/member.php?userid=31553
View this thread: http://forums.slimdevices.com/showthread.php?t=108010

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] spotty conversion for Inguz?

2017-09-19 Thread JohnB

I've been doing some testing, using the custom-convert.conf command
lines - as suggested by Michael, though not using Spotify.

This sox section of the command line seems to work. It accepts piped in
pcm and pipes out wav.

| [sox]  -q -t raw -b 16 -e signed -c 2 -r 44.1k -L - -t wav  - |

I've tested it on files (within LMS) but not on Spotify streams.

It would make the Inguz section:


Code:

spt flc * xx:xx:xx:xx:xx:xx
# RT:{START=--start-position %s}
[spotty] -n Squeezebox -c "$CACHE$" --single-track $FILE$ 
--disable-discovery --disable-audio-cache $START$ | [sox]  -q -t raw -b 16 -e 
signed -c 2 -r 44.1k -L - -t wav  - | [InguzDSP] -id "xx:xx:xx:xx:xx:xx" -wav 
-wavo -d 24 | [flac] -cs --fast --totally-silent --ignore-chunk-sizes -



Worth a try...?...



Touch, Meridian G92, Meridian G55, PMC OB1i speakers, HP Proliant
Microserver/Ubuntu, PC/Windows 7, iPad 4, iPeng, Squeezepad.

JohnB's Profile: http://forums.slimdevices.com/member.php?userid=31553
View this thread: http://forums.slimdevices.com/showthread.php?t=108010

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] spotty conversion for Inguz?

2017-09-19 Thread JohnB

I feel the tests I've done have very much been the blind leaving the
blind. :o

Just in case there is an obvious solution - these notes might be
useful:

>From what I can see, the spotty output is PCM. 

Inguz expects the input to be wav.

So the task is to convert the spotty pcm output to wave.  I tried the
following sox command: 


Code:

| [sox] -q -r 44100 -e signed-integer -b 16 -L -c 2 -t raw - -t wav |



and then, just in case "ignore-length" might make a difference:


Code:

| [sox] -q -r 44100 -e signed-integer -b 16 -L -c 2 --ignore-length -t raw 
- -t wav |



The sox parameters are based on those used in the spt-flc section of the
Spotty custom-convert.conf file.

As a test I created a 44.1k, 16bit, 2 channel, little-endian raw file
(using Sound Forge) and the following command line correctly converted
it to wav:


Code:

sox  -q -r 44100 -e signed-integer -b 16 -L -c 2 F:\test.raw F:\test.wav



The difference between this and what I tried in the Inguz Spotty command
is: 
Code:

F:\test.raw F:\test.wav

  vs 
Code:

-t raw - -t wav



Any thoughts?



Touch, Meridian G92, Meridian G55, PMC OB1i speakers, HP Proliant
Microserver/Ubuntu, PC/Windows 7, iPad 4, iPeng, Squeezepad.

JohnB's Profile: http://forums.slimdevices.com/member.php?userid=31553
View this thread: http://forums.slimdevices.com/showthread.php?t=108010

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] spotty conversion for Inguz?

2017-09-19 Thread bobertuk

mherger wrote: 
> >spt flc * xx:xx:xx:xx:xx:xx
> > # RT:{START=--start-position %s}
> > [spotty] -n Squeezebox -c "$CACHE$" --single-track $FILE$
> --disable-discovery --disable-audio-cache $START$ |[sox] -q -r 44100 -e
> signed-integer -b 16 -L -c 2 --ignore-length -t raw - -t wav |
> [InguzDSP] -id "xx:xx:xx:xx:xx:xx" -wav -wavo -d 24 | [flac] -cs --fast
> --totally-silent --ignore-chunk-sizes -
> 
> Unfortunately I'm not familiar with inguz at all. But what you could do
> 
> is run the command from the command line, rather than within LMS. That 
> could help you to figure out which of the components in this command is
> 
> failing (spotty, sox, inguz, flac). Replace the items in brackets with 
> the path to the executable, $CACHE$ with the path to your LMS' spotty 
> cache folder (see Settings/Information for the cache folder), $FILE$ 
> with a spotify URI (can be found in Spotify's "..." menu). Then pipe all
> 
> of it in a .flac file. If that can be played, then there's a problem in
> 
> LMS. If it can't be played, leave out one component after the other: 
> spotty would give you PCM data, sox would convert it to WAV, inguz dito,
> 
> flac, well, flac. Store sox' output in a .wav file. Can it be played? 
> Yes: add inguz to the mix, repeat. If no. Hmm...
> 
> -- 
> 
> Michael

Thank you Michael, I'll give that a go and report back if I can get it
to work.

Bob



1 x Touch
1 x Radio
1 x Boom
1 x Intel-NUC server/squeezelite running LMS 7.91 on Windows 10
1 X Odroid-XU4 server/squeezelite running LMS 7.91 on Ubuntu 16.04
WaveIO USB into Lavry DA-10 DAC
Starfish Pre-amp : Based on NAIM NAC 72
Heavily modified NAIM NAP 250 Power-amp
Behringer DEQ2496
Linn Isobarik DMS

bobertuk's Profile: http://forums.slimdevices.com/member.php?userid=30376
View this thread: http://forums.slimdevices.com/showthread.php?t=108010

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] spotty conversion for Inguz?

2017-09-19 Thread Michael Herger

   spt flc * xx:xx:xx:xx:xx:xx
# RT:{START=--start-position %s}
[spotty] -n Squeezebox -c "$CACHE$" --single-track $FILE$ --disable-discovery 
--disable-audio-cache $START$ |[sox] -q -r 44100 -e signed-integer -b 16 -L -c 2 --ignore-length -t 
raw - -t wav | [InguzDSP] -id "xx:xx:xx:xx:xx:xx" -wav -wavo -d 24 | [flac] -cs --fast 
--totally-silent --ignore-chunk-sizes -


Unfortunately I'm not familiar with inguz at all. But what you could do 
is run the command from the command line, rather than within LMS. That 
could help you to figure out which of the components in this command is 
failing (spotty, sox, inguz, flac). Replace the items in brackets with 
the path to the executable, $CACHE$ with the path to your LMS' spotty 
cache folder (see Settings/Information for the cache folder), $FILE$ 
with a spotify URI (can be found in Spotify's "..." menu). Then pipe all 
of it in a .flac file. If that can be played, then there's a problem in 
LMS. If it can't be played, leave out one component after the other: 
spotty would give you PCM data, sox would convert it to WAV, inguz dito, 
flac, well, flac. Store sox' output in a .wav file. Can it be played? 
Yes: add inguz to the mix, repeat. If no. Hmm...


--

Michael
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins