After a bit of experimentation and looking at the transcoding logging
I've got this working...

I have two players I'm trying to work with - a Touch and a Topping
DX3Pro+ DAC/headphone amp.  I want to apply room correction to the
former and [URL="https://github.com/jaakkopasanen/AutoEq"]AutoEQ]
filters to the latter for my HD560S cans.  I had this working for local
files using entries in custom-convert.conf but I also wanted to apply
the settings to music from Spotify via Spotty.

This is what I've ended up with;

# Parametric eq for HD 560S via DX3
flc flc * 00:1e:06:11:22:33
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0
- gain -5.4 equalizer 20 0.88q +5.2 equalizer 1270 2.14q -2.0 equalizer
2002 1.64q +2.0 equalizer 4793 2.93q -3.5 equalizer 9542 1.79q +5.6
equalizer 180 1.59q -1.1 equalizer 6964 3.13q +0.9 equalizer 12134 2.1q
+2.8 equalizer 14488 1.77q +1.4 equalizer 19665 0.44q -11.5

spt flc * 00:1e:06:11:22:33
# RT:{START=--start-position %s}
[spotty] --enable-volume-normalisation  -n Squeezebox -c "$CACHE$"
--single-track $FILE$ --disable-discovery --bitrate 320
--disable-audio-cache $START$ | [sox] -q -t raw -b 16 -e signed -c 2 -r
44.1k -L - -t flac -C -0 - gain -5.4 equalizer 20 0.88q +5.2 equalizer
1270 2.14q -2.0 equalizer 2002 1.64q +2.0 equalizer 4793 2.93q -3.5
equalizer 9542 1.79q +5.6 equalizer 180 1.59q -1.1 equalizer 6964 3.13q
+0.9 equalizer 12134 2.1q +2.8 equalizer 14488 1.77q +1.4 equalizer
19665 0.44q -11.5

# Parametric eq for Touch
flc flc * 00:04:20:23:22:28
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0
- equalizer 33.05 9.591q -5.50 equalizer 46.00 7.885q -8.60 equalizer
59.10 6.872q -10.20 equalizer 62.30 7.176q 9.90 equalizer 182.0 3.282q
-9.80 equalizer 225.0 3.022q 10.00 equalizer 254.0 4.921q -7.60
equalizer 472.0 7.470q 1.30 equalizer 990.0 4.901q -1.90 equalizer 4133
1.190q -2.80 equalizer 10128 1.082q -2.30

spt flc * 00:04:20:23:22:28
# RT:{START=--start-position %s}
[spotty] --enable-volume-normalisation  -n Squeezebox -c "$CACHE$"
--single-track $FILE$ --disable-discovery --bitrate 320
--disable-audio-cache $START$ | [sox] -q -t raw -b 16 -e signed -c 2 -r
44.1k -L - -t flac -C 0 - equalizer 33.05 9.591q -5.50 equalizer 46.00
7.885q -8.60 equalizer 59.10 6.872q -10.20 equalizer 62.30 7.176q 9.90
equalizer 182.0 3.282q -9.80 equalizer 225.0 3.022q 10.00 equalizer
254.0 4.921q -7.60 equalizer 472.0 7.470q 1.30 equalizer 990.0 4.901q
-1.90 equalizer 4133 1.190q -2.80 equalizer 10128 1.082q -2.30

Using the transcoding log I could see that Spotty was using a spt-flc
rule by default so I added one to override that for each player with sox
applying the filters and outputting in flac format.

One odd thing I did notice was that I needed *two spaces* between these
two options  in the [spotty] command "--enable-volume-normalisation  -n
Squeezebox"   With only a single space the transcoding log showed the
resulting command as;

[22-04-12 07:13:14.7725]
Slim::Player::TranscodingHelper::tokenizeConvertCommand2 (667) Using
command for conversion: TMPDIR=/config/cache/spotty
"/config/cache/InstalledPlugins/Plugins/Spotty/Bin/aarch64-linux/*spotty"-n
Squeezebox* .......

Note the lack of space between the " and - which resulted in an invalid
command line.

All working now though so thanks for the hints.


------------------------------------------------------------------------
sparkyuk's Profile: http://forums.slimdevices.com/member.php?userid=70716
View this thread: http://forums.slimdevices.com/showthread.php?t=114263

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

Reply via email to