Re: [SlimDevices: SqueezeCenter] Is it possible somehow to use square brackts in custom-convert-conf?

2020-07-04 Thread mavit


bpa wrote: 
> Much harder as it will be a BAT file which has limited scripting
> capability.

Perl is available if required, of course.



mavit's Profile: http://forums.slimdevices.com/member.php?userid=10203
View this thread: http://forums.slimdevices.com/showthread.php?t=112510

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


Re: [SlimDevices: SqueezeCenter] Is it possible somehow to use square brackts in custom-convert-conf?

2020-07-02 Thread gorman


Paul Webster wrote: 
> Here a basis for the unusual bit ... swapping {} to []
> 
> swap.bat
> > 
Code:

  >   > 
  > setlocal enabledelayedexpansion
  > set /P MY_TEXT=ENTER TEXT:
  > SET SWAP=[
  > set NEW_TEXT=%MY_TEXT:{=!SWAP!%
  > SET SWAP=]
  > set NEW_TEXT=%NEW_TEXT:}=!SWAP!%
  > ECHO %NEW_TEXT%
  > 

> > 
> 
> If you run it and enter
> some text {hello} more text
> you should see it echo back
> some text [hello] more textYup, I got this, thank you! What I don't have a 
> clue about is how to
pass variables from Squeezebox Server to a batch script and viceversa
:-(

Luckily I don't need it for the moment. I managed to use the other way
of using HRTF functionality. It wasn't working because the wav file with
the... impulse? With whatever's needed to do the magic... it needed the
full path. I had it in the bin directory and I thought that with all the
programs being in there that was the working directory but it's not.
So with this I get what I need:

Code:


  alc flc * bc:5f:f4:bf:3e:70
# FT:{START=-j %s}U:{END=-e %u}
[faad] -q -w -f 2 $START$ $END$ $FILE$ | [ffmpeg] -loglevel quiet 
-thread_queue_size 5 -i - -i "C:\Program Files 
(x86)\Squeezebox\server\Bin\MSWin32-x86-multi-thread\waves-HRIR.wav" 
-filter_complex 
"headphone=map=FL|FR|FC|LFE|SL|SR:hrir=multich:gain=5,equalizer=f=30:t=q:w=0.43:g=6.2,equalizer=f=699:t=q:w=2:g=1,equalizer=f=2924:t=q:w=4.11:g=-1.7,equalizer=f=6031:t=q:w=5.05:g=-6.2,equalizer=f=9825:t=q:w=4.08:g=2.2,equalizer=f=83:t=q:w=4.24:g=1.3,equalizer=f=209:t=q:w=1.54:g=-1.2,equalizer=f=2842:t=q:w=0.1:g=0.2,equalizer=f=12443:t=q:w=1.29:g=2.7,equalizer=f=19698:t=q:w=0.46:g=-11.8"
 -f flac -
  


Simulated surround sound while playing back DTS and AC3 files with
headphones. I encapsulate them in ALC files (that I use just for that
purpose, all the rest of lossless music is in FLAC) and I use a specific
instance of Squeezelite, identified by the MAC address.
I write this in case somebody might be interested.

Problem remains with brackets and custom-convert.conf... but I've
already spent too many hours solving this. I've lost my strength and my
suspicion is that this would be a really tough nut to crack (surely for
abysmal my skill level).

As always, thanks to everybody that chimed in to help. This community is
awesome, the whole project never ceases to amaze me, after all these
years.



gorman's Profile: http://forums.slimdevices.com/member.php?userid=56
View this thread: http://forums.slimdevices.com/showthread.php?t=112510

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


Re: [SlimDevices: SqueezeCenter] Is it possible somehow to use square brackts in custom-convert-conf?

2020-07-02 Thread Paul Webster


Here a basis for the unusual bit ... swapping {} to []

swap.bat

Code:


  setlocal enabledelayedexpansion
  set /P MY_TEXT=ENTER TEXT:
  SET SWAP=[
  set NEW_TEXT=%MY_TEXT:{=!SWAP!%
  SET SWAP=]
  set NEW_TEXT=%NEW_TEXT:}=!SWAP!%
  ECHO %NEW_TEXT%
  



If you run it and enter
some text {hello} more text
you should see it echo back
some text [hello] more text



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=112510

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


Re: [SlimDevices: SqueezeCenter] Is it possible somehow to use square brackts in custom-convert-conf?

2020-07-02 Thread gorman


bpa wrote: 
> Much harder as it will be a BAT file which has limited scripting
> capability.That's what I was afraid of...


Code:


  # FT:{START=-j %s}U:{END=-e %u}
faad -q -w -f 2 $START$ $END$ $FILE$ | ffmpeg -i - -filter_complex 
"amovie=waves-HRIR.wav[hrirs];[0:a][hrirs]headphone=map=FL|FR|FC|LFE|SL|SR:hrir=multich:gain=15,equalizer=f=30:t=q:w=0.43:g=6.2,equalizer=f=699:t=q:w=2:g=1,equalizer=f=2924:t=q:w=4.11:g=-1.7,equalizer=f=6031:t=q:w=5.05:g=-6.2,equalizer=f=9825:t=q:w=4.08:g=2.2,equalizer=f=83:t=q:w=4.24:g=1.3,equalizer=f=209:t=q:w=1.54:g=-1.2,equalizer=f=2842:t=q:w=0.1:g=0.2,equalizer=f=12443:t=q:w=1.29:g=2.7,equalizer=f=19698:t=q:w=0.46:g=-11.8"
 -f flac -
  



If it could help, I could apply equalization through ffmpeg, doing away
with sox. The above is used for HRTF playback of 5.1 material (DTS/AC3
encapsulated in ALAC files). A simple downmixing is easy and I've
already done it with:

Code:


  # FT:{START=-j %s}U:{END=-e %u}
[faad] -q -w -f 2 $START$ $END$ $FILE$ | [ffmpeg] -loglevel quiet -i - 
-ac 2 -f wav - | [sox] -q -t wav - -t flac -C 0 -b 24 - gain -6.9 equalizer 30 
0.43q +6.2 equalizer 699 2.00q +1.0 equalizer 2924 4.11q -1.7 equalizer 6031 
5.05q -6.2 equalizer 9825 4.08q +2.2 equalizer 83 4.24q +1.3 equalizer 209 
1.54q -1.2 equalizer 2842 0.1q +0.2 equalizer 12443 1.29q +2.7 equalizer 19698 
0.46q -11.8




gorman's Profile: http://forums.slimdevices.com/member.php?userid=56
View this thread: http://forums.slimdevices.com/showthread.php?t=112510

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


Re: [SlimDevices: SqueezeCenter] Is it possible somehow to use square brackts in custom-convert-conf?

2020-07-02 Thread gorman


Any pointers on how to create this script in a Windows environment? I'm
willing to learn but coming back to this I don't even know where to
start learning from... :)



gorman's Profile: http://forums.slimdevices.com/member.php?userid=56
View this thread: http://forums.slimdevices.com/showthread.php?t=112510

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


Re: [SlimDevices: SqueezeCenter] Is it possible somehow to use square brackts in custom-convert-conf?

2020-07-02 Thread gorman


I thank you both for your replies. You seriously overestimate my
programming skills but... I will search and try to learn. Thanks again!



gorman's Profile: http://forums.slimdevices.com/member.php?userid=56
View this thread: http://forums.slimdevices.com/showthread.php?t=112510

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


Re: [SlimDevices: SqueezeCenter] Is it possible somehow to use square brackts in custom-convert-conf?

2020-07-02 Thread bpa


You can create a shell script in Bin (e.g. ffmpeg.sh) and it take the
tokenized command line and then reformat it as necessary (e.g. use curly
bracket in conf file and replace them in shell scrpt)



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=112510

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


Re: [SlimDevices: SqueezeCenter] Is it possible somehow to use square brackts in custom-convert-conf?

2020-07-01 Thread Michael Herger

But many of its arguments and switches use square brackets. As soon as I
use them Squeezebox Server complains that it cannot find the
corresponding binary... This seems just an oversight or maybe I'm
missing something.


The transcoding helper framework considers strings in square brackets 
helper applications, thus tries to find them on your system and 
substitute them in the define command line.


You might have more luck writing a script with all the commands and only 
refer the script name in the conversion rule set.


--

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


[SlimDevices: SqueezeCenter] Is it possible somehow to use square brackts in custom-convert-conf?

2020-07-01 Thread gorman


FFMPEG has lots of incredibly interesting filters to play with, for
instance HRTF surround simulation for headphones.

But many of its arguments and switches use square brackets. As soon as I
use them Squeezebox Server complains that it cannot find the
corresponding binary... This seems just an oversight or maybe I'm
missing something.

Something like this apparently cannot work:

ffmpeg -i $FILE$ -i waves-HRIR.wav -filter_complex
"amovie=waves-HRIR.wav[hrirs];[0:a][hrirs]headphone=map=FL|FR|FC|LFE|SL|SR:hrir=multich:gain=5"
-f wav

As SBS complains about not finding the hrirs binary...



gorman's Profile: http://forums.slimdevices.com/member.php?userid=56
View this thread: http://forums.slimdevices.com/showthread.php?t=112510

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