Ciao, Marco.
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
— E. F. Schumacher (mis-attributed to A. Einstein)
________________________________________________________________________________
Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE
1. non cambia di molto, se devo indicare il path a quella dir, devo comunque essere sicuro di passare path validi, non credo sia il path del perl il problema, in questo modo non ho più nulla nelle cartelle dedicate alle singole architetture ed è un vantaggio notevole, anche qualora dovessi arrivare a produrre i comandi per singola arcitettura con delle if.
2. Su Windowes bisogna fare cose che un utente 'normale' è meglio non faccia, poi il centro di sicurezza si lamenta che hai inserito vulnerabilità,... non ne esci.
3. Il problema con l'I/O l'ho parzialmente risolto , era dovuto al fatto che il comando exec (o system) lo puoi chiamare in 2 modi: con una stringa o con un array. Con l'array risolve automaticamente gli escaping ed i quoting bypassando le shell(!!!) però, c'è un però... il primo valore è il comando, gli altri sono parametri , sempre e comunque, quindi se metti una pipe - come nel nostro caso tra flac o ffmpeg e sox - questa più il path al secondo eseguibile e tutti i suoi parametri vengono passati al primo come altrettanti parametri...
Dico parzialmente, perchè in tutti gli altri modi (tranne in alcuni casi open) devi risolvere autonomamente quoting ed escaping, quindi siamo punto ed a capo, o quasi.
4. Si, riesco, con ogni probabilità, ma lo devo fare in modo 'dedicato' al tipo di architettura, quindi uno per mac uno per win ed (almeno) uno per linux, cosa che avrei voluto evitare, visto che ci sono tutte le librerie apposta...
devi farlo diventare:codice:$pathnamediPERL = "'C:\Program Files (x86)\blah\blah\Perl.exe'";
Windows: 'C":\Program Files (x86)\blah\blah\Perl.exe"'
Linux: '"/mount/Program Files (x86)/blah/blah/perl"' (e non sono nemmeno sicuro funzioni)
Mac: '/mount/"Program Files (x86)"/blah/blah/perl'
Con tutte le variabili dovute al fatto che una serie di comandi ti restituisce i path di windows come:
"C:\\Program Files (x86)\\blah\blah\\Perl.exe"'
Le cose poi si complicano con i passaggi, dato che se metti "questo comando" in un array, non c'è verso, quando lo metti in una stringa per passarlo come parametro ad un eseguibile diventa 'questo comando', che se riprendi in array è "questo", "comando". E' quello che succede invocando perl o .pl mediante un backtick, open, exec o system che coinvolga la riga di comando e non ne hai il controllo.
Piuttosto, allora, meglio essere certi che devi avere a che fare con la specifica shell e prepari i comandi apposta per lei... ma è orripilante!
5. Certo, modificando LMS avrei già risolto questa e tante altre cose, non avrei nemmeno modificato squeezelite ma fatto in modo che LMS inviasse le informazioni corrette e non avremmo bisogno dello script. Ma modificare LMS vuol dire fare una fork che poi va mantenuta ed io non ne ho forza, coraggio, tempo ne voglia...
Ciao, Marco.
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
— E. F. Schumacher (mis-attributed to A. Einstein)
________________________________________________________________________________
Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE
Mmmh... perché devi farlo tu? Non puoi lasciare che sia il meccanismo nativo di LMS a farlo, semplicemente specificando nella configurazione di LMS l'uso di "C3PO" (eseguibile... a quanto ho capito da quel che mi hai detto su windoze dovresti fare un .exe) per tutte le possibili combinazioni di input/output anziché qualche altra combinazione di comandi?
Abbastanza ovvio. In un caso del genere la "pipe" la devi creare tu, lanciando separatamente i diversi comandi e "collegando" opportunamente i rispettivi I/O nel tuo programma Perl.
Mac e Linux dovrebbero essere uguali; "perl" (se è installato correttamente) dovrebbe essere nel PATH, quindi non dovresti avere bisogno di passare il path completo ma solo il comando. Per altro non dovresti avere neanche bisogno di chiamare esplicitamente Perl, ma solo direttamente lo script.
P.S.: ora che ci penso, visto che stai chiamando uno script Perl da un programma Perl... non potresti farlo eseguire direttamente dal processo di LMS anziché avviare un sottoprocesso separato?
do - perldoc.perl.org
forse non più di tanto. Ne devi gestire solo due: quella standard Posix (/bin/sh, sia su Mac che su Linux che su qualsiasi altro sistema Posix) e quella di windoze... cosa che temo tu debba fare comunque, date le differenze tra questo e gli altri.
Ciao, Paolo.
«Se tu hai una mela, e io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee.»
Marco provata anche l´ultimissima...non va
codice:[15-10-31 23:22:46.5061] main::init (383) Starting Logitech Media Server (v7.9.0, 1443102866, Fri Sep 25 04:04:57 CUT 2015) perl 5.014001 [15-10-31 23:22:47.1050] Slim::Player::TranscodingHelper::loadConversionTables (50) Loading conversion config files... [15-10-31 23:22:47.1058] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'mp4' output: 'mp3' clienttype: '*': clientid: '*': '[faad] -q -w -f 1 $START$ $END$ $FILE$ | [lame] --silent -q $QUALITY$ $BITRATE$ - -' [15-10-31 23:22:47.1060] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'aac' output: 'mp3' clienttype: '*': clientid: '*': '[faad] -q -w -f 1 $FILE$ | [lame] --silent -q $QUALITY$ $BITRATE$ - -' [15-10-31 23:22:47.1061] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'sls' output: 'mp3' clienttype: '*': clientid: '*': '[sls] $FILE$ - -s | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -' [15-10-31 23:22:47.1062] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'alc' output: 'mp3' clienttype: '*': clientid: '*': '[faad] -q -w -f 1 $START$ $END$ $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -' [15-10-31 23:22:47.1063] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'ogg' output: 'mp3' clienttype: '*': clientid: '*': '[sox] -q -t ogg $FILE$ -t wav - | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -' [15-10-31 23:22:47.1064] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wav' output: 'mp3' clienttype: '*': clientid: '*': '[lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ $FILE$ -' [15-10-31 23:22:47.1066] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'aif' output: 'mp3' clienttype: '*': clientid: '*': '[lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ $FILE$ -' [15-10-31 23:22:47.1067] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'flc' output: 'mp3' clienttype: '*': clientid: '*': '[flac] -dcs $START$ $END$ -- $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -' [15-10-31 23:22:47.1068] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wma' output: 'mp3' clienttype: '*': clientid: '*': '[wmadec] -w $PATH$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -' [15-10-31 23:22:47.1069] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wmal' output: 'mp3' clienttype: '*': clientid: '*': '[wmadec] -w $PATH$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -' [15-10-31 23:22:47.1070] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wmap' output: 'mp3' clienttype: '*': clientid: '*': '[wmadec] -w $PATH$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -' [15-10-31 23:22:47.1072] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'mpc' output: 'mp3' clienttype: '*': clientid: '*': '[mppdec] --silent --prev --gain 3 - - | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -' [15-10-31 23:22:47.1073] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'ape' output: 'mp3' clienttype: '*': clientid: '*': '[mac] $FILE$ - -d | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -' [15-10-31 23:22:47.1074] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wvp' output: 'mp3' clienttype: '*': clientid: '*': '[wvunpack] $FILE$ -wq $START$ $END$ -o - | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -' [15-10-31 23:22:47.1075] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'mp3' output: 'mp3' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1076] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'aif' output: 'aif' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1077] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'flc' output: 'pcm' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1078] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'flc' output: 'aif' clienttype: '*': clientid: '*': '[flac] -dcs --force-raw-format --endian=big --sign=signed $START$ $END$ -- $FILE$' [15-10-31 23:22:47.1079] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'ogf' output: 'ogf' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1081] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'ogf' output: 'flc' clienttype: '*': clientid: '*': '[flac] --ogg -dcs -- $FILE$ | [flac] -cs --ignore-chunk-sizes --totally-silent --compression-level-0 -' [15-10-31 23:22:47.1082] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'ogg' output: 'ogg' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1083] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'ogg' output: 'aif' clienttype: '*': clientid: '*': '[sox] -q -t ogg $FILE$ -t raw -r 44100 -c 2 -2 -s $-x$ -' [15-10-31 23:22:47.1084] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'ogg' output: 'pcm' clienttype: '*': clientid: '*': '[sox] -q -t ogg $FILE$ -t raw -r 44100 -c 2 -2 -s -' [15-10-31 23:22:47.1085] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wma' output: 'pcm' clienttype: '*': clientid: '*': '[wmadec] -r 44100 -b 16 -n 2 $PATH$' [15-10-31 23:22:47.1086] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wmal' output: 'pcm' clienttype: '*': clientid: '*': '[wmadec] -r 44100 -b 16 -n 2 $PATH$' [15-10-31 23:22:47.1087] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wmap' output: 'pcm' clienttype: '*': clientid: '*': '[wmadec] -r 44100 -b 16 -n 2 $PATH$' [15-10-31 23:22:47.1088] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'mpc' output: 'pcm' clienttype: '*': clientid: '*': '[mppdec] --raw-le --silent --prev --gain 2 - -' [15-10-31 23:22:47.1089] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'ape' output: 'pcm' clienttype: '*': clientid: '*': '[mac] $FILE$ - -d' [15-10-31 23:22:47.1090] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'mpc' output: 'aif' clienttype: '*': clientid: '*': '[mppdec] --raw-be --silent --prev --gain 2 - -' [15-10-31 23:22:47.1091] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'alc' output: 'pcm' clienttype: '*': clientid: '*': '[faad] -q -w -f 2 $START$ $END$ $FILE$' [15-10-31 23:22:47.1092] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wvp' output: 'pcm' clienttype: '*': clientid: '*': '[wvunpack] $FILE$ -rq $START$ $END$ -o -' [15-10-31 23:22:47.1093] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'mp4' output: 'pcm' clienttype: '*': clientid: '*': '[faad] -q -w -f 2 -b 1 $START$ $END$ $FILE$' [15-10-31 23:22:47.1095] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'aac' output: 'pcm' clienttype: '*': clientid: '*': '[faad] -q -w -f 2 -b 1 $FILE$' [15-10-31 23:22:47.1096] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'sls' output: 'pcm' clienttype: '*': clientid: '*': '[sls] $FILE$ - -r -s' [15-10-31 23:22:47.1097] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wma' output: 'wma' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1098] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wmal' output: 'wmal' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1099] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wmap' output: 'wmap' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1100] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'flc' output: 'flc' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1101] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'aif' output: 'flc' clienttype: '*': clientid: '*': '[flac] -cs --totally-silent --compression-level-0 $START$ $END$ -- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -' [15-10-31 23:22:47.1102] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wav' output: 'flc' clienttype: '*': clientid: '*': '[flac] -cs --totally-silent --compression-level-0 $START$ $END$ -- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -' [15-10-31 23:22:47.1103] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'ogg' output: 'flc' clienttype: '*': clientid: '*': '[sox] -t ogg $FILE$ -t flac -C 0 $RESAMPLE$ -' [15-10-31 23:22:47.1104] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wma' output: 'flc' clienttype: '*': clientid: '*': '[wmadec] -w $PATH$ | [flac] -cs --totally-silent --compression-level-0 -' [15-10-31 23:22:47.1105] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wmal' output: 'flc' clienttype: '*': clientid: '*': '[wmadec] -w $PATH$ | [flac] -cs --totally-silent --compression-level-0 -' [15-10-31 23:22:47.1106] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wmap' output: 'flc' clienttype: '*': clientid: '*': '[wmadec] -w $PATH$ | [flac] -cs --totally-silent --compression-level-0 -' [15-10-31 23:22:47.1108] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'mpc' output: 'flc' clienttype: '*': clientid: '*': '[mppdec] --silent --prev --gain 2 - - | [flac] -cs --totally-silent --compression-level-0 -' [15-10-31 23:22:47.1109] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'ape' output: 'flc' clienttype: '*': clientid: '*': '[mac] $FILE$ - -d | [flac] -cs --totally-silent --compression-level-0 -' [15-10-31 23:22:47.1110] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'mp4' output: 'flc' clienttype: '*': clientid: '*': '[faad] -q -w -f 1 $START$ $END$ $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -' [15-10-31 23:22:47.1111] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'aac' output: 'flc' clienttype: '*': clientid: '*': '[faad] -q -w -f 1 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -' [15-10-31 23:22:47.1112] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'sls' output: 'flc' clienttype: '*': clientid: '*': '[sls] $FILE$ - -s | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ -' [15-10-31 23:22:47.1113] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'alc' output: 'flc' clienttype: '*': clientid: '*': '[faad] -q -w -f 1 $START$ $END$ $FILE$ | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ -' [15-10-31 23:22:47.1114] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'wvp' output: 'flc' clienttype: '*': clientid: '*': '[wvunpack] $FILE$ -wq $START$ $END$ -o - | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ -' [15-10-31 23:22:47.1115] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'aac' output: 'aac' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1116] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'mp4' output: 'aac' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1117] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'sls' output: 'aac' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1118] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'alc' output: 'alc' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1120] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'mp3' output: 'mp3' clienttype: 'transcode': clientid: '*': '[lame] --silent -q $QUALITY$ $BITRATE$ $RESAMPLE$ --mp3input $FILE$ -' [15-10-31 23:22:47.1121] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'flc' output: 'flc' clienttype: 'transcode': clientid: '*': '[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ -' [15-10-31 23:22:47.1122] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'spdr' output: 'spdr' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1123] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'dsf' output: 'dsf' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1124] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'dff' output: 'dff' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:47.1162] Slim::Player::TranscodingHelper::loadConversionTables (106) input: 'test' output: 'test' clienttype: '*': clientid: '*': '-' [15-10-31 23:22:48.0632] Plugins::Qobuz::Plugin::__ANON__ (46) Success: using Text::LevenshteinXS to speed Qobuz up. [15-10-31 23:22:48.2951] Plugins::C3PO::Plugin::testC3PO (222) WARNING: wrong path to perl, C-3PO.pl, will not start - [15-10-31 23:22:50.4172] Slim::Player::StreamingController::playerActive (2002) 50:e5:49:cc:b4:29 player already active: 50:e5:49:cc:b4:29 [15-10-31 23:22:50.4202] Slim::Player::Song::new (108) index 0 -> file:///C:/Users/filippo/Desktop/Music/David%20Virelles%20-%20Continuum%20(2012)%20[FLAC]%20%7BPi%20Recordings%7D/06%20-%20Royalty.flac [15-10-31 23:22:50.4221] Slim::Player::Song::new (150) live=1 [15-10-31 23:22:50.4222] Slim::Player::StreamingController::resetSongqueue (1788) Song queue is now 0 [15-10-31 23:22:50.4224] Slim::Player::StreamingController::playerActive (2002) 50:e5:49:cc:b4:29 player already active: 50:e5:49:cc:b4:29 [15-10-31 23:22:50.4225] Slim::Player::Squeezebox::reconnect (80) 50:e5:49:cc:b4:29 restaring play on pseudo-reconnect at 0 [15-10-31 23:22:50.4226] Slim::Player::StreamingController::playerReconnect (2081) 50:e5:49:cc:b4:29 [15-10-31 23:22:50.4301] Slim::Player::StreamingController::_eventAction (271) 50:e5:49:cc:b4:29: ContinuePlay in STOPPED-IDLE -> Slim::Player::StreamingController::_Stop [15-10-31 23:22:50.4302] Slim::Player::StreamingController::_eventAction (284) params: song => Slim::Player::Song=ARRAY(0xa3aca5c) bytesReceived => undef [15-10-31 23:22:50.4305] Slim::Player::StreamingController::_Stop (603) Song queue is now 0 [15-10-31 23:22:50.4306] Slim::Player::StreamingController::_setPlayingState (2366) new playing state STOPPED [15-10-31 23:22:50.4307] Slim::Player::StreamingController::_setStreamingState (2375) new streaming state IDLE [15-10-31 23:22:50.4308] Slim::Player::Squeezebox::reconnect (88) 50:e5:49:cc:b4:29 forcing stop on pseudo-reconnect
codice:[15-10-31 23:22:50.4316] Plugins::C3PO::Plugin::clientCalback (353) new ClientCallback received from id: 50:e5:49:cc:b4:29 mac address: 50:e5:49:cc:b4:29 modelName: SqueezeLite model: squeezelite name: SqueezeLite max samplerate: 384000 supported sample rates: 8000 11025 12000 16000 22050 24000 32000 44100 48000 88200 96000 176400 192000 352800 384000 supported codecs : mp3 pcm dff wma flc wmap wmal alc ogg aif aac dsf wav [15-10-31 23:22:50.4329] Plugins::C3PO::Plugin::setupTranscoder (660) transcodeTable: { aliasing => "on", bandwidth => 907, codecs => { aac => undef, aif => "on", alc => undef, dff => undef, dsf => undef, flc => "on", mp3 => undef, ogg => undef, pcm => "on", wav => undef, wma => undef, wmal => undef, wmap => undef, }, dither => "on", gain => 3, id => "50:e5:49:cc:b4:29", logFolder => "C:\\ProgramData\\Squeezebox\\Logs", macaddress => "50:e5:49:cc:b4:29", "maxSupportedSamplerate" => 384_000, model => "squeezelite", modelName => "SqueezeLite", name => "SqueezeLite", outBitDepth => 4, outByteOrder => "L", outChannels => 2, outCodec => "wav", outCompression => 0, outEncoding => "s", pathToC3PO => "C:\\PROGRA~2\\SQUEEZ~1\\server\\Plugins\\C3PO\\C-3PO.pl", pathToFFmpeg => "C:\\PROGRA~2\\SQUEEZ~1\\server\\Bin\\MSWin32-x86-multi-thread\\ffmpeg.exe", pathToFaad => "C:\\PROGRA~2\\SQUEEZ~1\\server\\Bin\\MSWin32-x86-multi-thread\\faad.exe", pathToFlac => "C:\\PROGRA~2\\SQUEEZ~1\\server\\Bin\\MSWin32-x86-multi-thread\\flac.exe", pathToPrefFile => "C:\\ProgramData\\Squeezebox\\prefs\\plugin\\C3PO.prefs", pathToSox => "C:\\PROGRA~2\\SQUEEZ~1\\server\\Bin\\MSWin32-x86-multi-thread\\sox.exe", phase => "M", quality => "v", resampleTo => "S", resampleWhen => "A", sampleRates => { 8000 => "on", 11025 => "on", 12000 => "on", 16000 => "on", 22050 => "on", 24000 => "on", 32000 => "on", 44100 => "on", 48000 => "on", 88200 => "on", 96000 => "on", 176400 => "on", 192000 => "on", 352800 => "on", 384000 => "on", 705600 => 0, 768000 => 0, }, serverFolder => "C:/PROGRA~2/SQUEEZ~1/server", } [15-10-31 23:22:50.4332] Plugins::C3PO::Plugin::setupTranscoder (670) PROFILE : aif-aif-*-50:e5:49:cc:b4:29 Command : [perl] "C:\PROGRA~2\SQUEEZ~1\server\Plugins\C3PO\C-3PO.pl" -c $CLIENTID$ -p "C:\ProgramData\Squeezebox\prefs\plugin\C3PO.prefs" -i aif -o wav $START$ $END$ $RESAMPLE$ $FILE$ Capabilities: { D => "RESAMPLE=-r %d", F => "noArgs", R => "noArgs", T => "START=-s %s", U => "END=-w %w", } [15-10-31 23:22:50.4335] Plugins::C3PO::Plugin::setupTranscoder (670) PROFILE : wav-pcm-*-50:e5:49:cc:b4:29 Command : [perl] "C:\PROGRA~2\SQUEEZ~1\server\Plugins\C3PO\C-3PO.pl" -c $CLIENTID$ -p "C:\ProgramData\Squeezebox\prefs\plugin\C3PO.prefs" -i wav -o wav $START$ $END$ $RESAMPLE$ $FILE$ Capabilities: { D => "RESAMPLE=-r %d", F => "noArgs", R => "noArgs", T => "START=-s %s", U => "END=-w %w", } [15-10-31 23:22:50.4337] Plugins::C3PO::Plugin::setupTranscoder (670) PROFILE : flc-pcm-*-50:e5:49:cc:b4:29 Command : [perl] "C:\PROGRA~2\SQUEEZ~1\server\Plugins\C3PO\C-3PO.pl" -c $CLIENTID$ -p "C:\ProgramData\Squeezebox\prefs\plugin\C3PO.prefs" -i flc -o wav $START$ $END$ $RESAMPLE$ $FILE$ Capabilities: { D => "RESAMPLE=-r %d", F => "noArgs", R => "noArgs", T => "START=-t %t", U => "END=-v %v", } [15-10-31 23:22:52.3023] Slim::Player::TranscodingHelper::enabledFormat (209) Checking to see if flc-flc-*-* is enabled [15-10-31 23:22:52.3024] Slim::Player::TranscodingHelper::enabledFormat (217) There are 6 disabled formats... [15-10-31 23:22:52.3025] Slim::Player::TranscodingHelper::enabledFormat (223) Testing aif-aif-*-* vs flc-flc-*-* [15-10-31 23:22:52.3026] Slim::Player::TranscodingHelper::enabledFormat (223) Testing aif-flc-*-* vs flc-flc-*-* [15-10-31 23:22:52.3027] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-aif-*-* vs flc-flc-*-* [15-10-31 23:22:52.3028] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-flc-*-* vs flc-flc-*-* [15-10-31 23:22:52.3029] Slim::Player::TranscodingHelper::enabledFormat (227) ** flc-flc-*-* Disabled ** [15-10-31 23:22:52.3030] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-dsf-squeezelite-50:e5:49:cc:b4:29 [15-10-31 23:22:52.3030] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-dsf-*-50:e5:49:cc:b4:29 [15-10-31 23:22:52.3031] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-dsf-squeezelite-* [15-10-31 23:22:52.3032] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-dsf-*-*
codice:[15-10-31 23:22:52.3087] Slim::Player::TranscodingHelper::enabledFormat (223) Testing wav-flc-*-* vs flc-pcm-*-50:e5:49:cc:b4:29 [15-10-31 23:22:52.3088] Slim::Player::TranscodingHelper::checkBin (250) enabled [15-10-31 23:22:52.3089] Slim::Player::TranscodingHelper::checkBin (252) Found command: [perl] "C:\PROGRA~2\SQUEEZ~1\server\Plugins\C3PO\C-3PO.pl" -c $CLIENTID$ -p "C:\ProgramData\Squeezebox\prefs\plugin\C3PO.prefs" -i flc -o wav $START$ $END$ $RESAMPLE$ $FILE$ [15-10-31 23:22:52.3197] Slim::Player::TranscodingHelper::checkBin (275) couldn't find binary for: perl [15-10-31 23:22:52.3198] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-pcm-squeezelite-* [15-10-31 23:22:52.3199] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-pcm-*-* [15-10-31 23:22:52.3200] Slim::Player::TranscodingHelper::enabledFormat (209) Checking to see if flc-pcm-*-* is enabledcodice:[15-10-31 23:22:52.3217] Slim::Player::TranscodingHelper::enabledFormat (223) Testing wav-flc-*-* vs flc-mp3-*-* [15-10-31 23:22:52.3218] Slim::Player::TranscodingHelper::checkBin (250) enabled [15-10-31 23:22:52.3219] Slim::Player::TranscodingHelper::checkBin (252) Found command: [flac] -dcs $START$ $END$ -- $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - - [15-10-31 23:22:52.3326] Slim::Player::TranscodingHelper::checkBin (275) couldn't find binary for: lame [15-10-31 23:22:52.3327] Slim::Player::TranscodingHelper::getConvertCommand2 (443) Error: Didn't find any command matches for type: flc [15-10-31 23:23:25.5193] Slim::Player::StreamingController::stop (2106) 50:e5:49:cc:b4:29 [15-10-31 23:23:25.5194] Slim::Player::StreamingController::_eventAction (271) 50:e5:49:cc:b4:29: Stop in STOPPED-IDLE -> Slim::Player::StreamingController::_NoOp [15-10-31 23:23:25.5195] Slim::Player::Song::DESTROY (160) DESTROY(Slim::Player::Song=ARRAY(0xa3aca5c)) live=0: index=0, url=file:///C:/Users/filippo/Desktop/Music/David%20Virelles%20-%20Continuum%20(2012)%20[FLAC]%20%7BPi%20Recordings%7D/06%20-%20Royalty.flac [15-10-31 23:23:25.5196] Slim::Player::StreamingController::resetSongqueue (1788) Song queue is now [15-10-31 23:23:25.5207] Slim::Player::StreamingController::play (2109) 50:e5:49:cc:b4:29 [15-10-31 23:23:25.5208] Slim::Player::StreamingController::_eventAction (271) 50:e5:49:cc:b4:29: Play in STOPPED-IDLE -> Slim::Player::StreamingController::_StopGetNext [15-10-31 23:23:25.5209] Slim::Player::StreamingController::_eventAction (284) params: index => 0 seekdata => undef [15-10-31 23:23:25.5212] Slim::Player::StreamingController::_setPlayingState (2366) new playing state STOPPED [15-10-31 23:23:25.5213] Slim::Player::StreamingController::_setStreamingState (2375) new streaming state IDLE [15-10-31 23:23:25.5225] Slim::Player::Song::new (108) index 0 -> file:///C:/Users/filippo/Desktop/Music/David%20Virelles%20-%20Continuum%20(2012)%20[FLAC]%20%7BPi%20Recordings%7D/12%20-%20To%20Know.flac [15-10-31 23:23:25.5226] Slim::Player::Song::new (150) live=1 [15-10-31 23:23:25.5227] Slim::Player::StreamingController::_setStreamingState (2375) new streaming state TRACKWAIT [15-10-31 23:23:25.5236] Slim::Player::StreamingController::_playersMessage (789) Riproduzione in corso: file:///C:/Users/filippo/Desktop/Music/David%20Virelles%20-%20Continuum%20(2012)%20[FLAC]%20%7BPi%20Recordings%7D/12%20-%20To%20Know.flac [15-10-31 23:23:25.5254] Slim::Player::Song::getNextSong (229) file:///C:/Users/filippo/Desktop/Music/David%20Virelles%20-%20Continuum%20(2012)%20[FLAC]%20%7BPi%20Recordings%7D/12%20-%20To%20Know.flac [15-10-31 23:23:25.5255] Slim::Player::StreamingController::_nextTrackReady (737) 50:e5:49:cc:b4:29: nextTrack will be index 0 [15-10-31 23:23:25.5256] Slim::Player::StreamingController::_eventAction (271) 50:e5:49:cc:b4:29: NextTrackReady in STOPPED-TRACKWAIT -> Slim::Player::StreamingController::_Stream [15-10-31 23:23:25.5257] Slim::Player::StreamingController::_Stream (1215) Song queue is now 0 [15-10-31 23:23:25.5258] Slim::Player::StreamingController::_Stream (1218) 50:e5:49:cc:b4:29: preparing to stream song index 0 [15-10-31 23:23:25.5259] Slim::Player::Song::open (363) file:///C:/Users/filippo/Desktop/Music/David%20Virelles%20-%20Continuum%20(2012)%20[FLAC]%20%7BPi%20Recordings%7D/12%20-%20To%20Know.flac [15-10-31 23:23:25.5262] Slim::Player::TranscodingHelper::enabledFormat (209) Checking to see if flc-flc-*-* is enabled [15-10-31 23:23:25.5263] Slim::Player::TranscodingHelper::enabledFormat (217) There are 6 disabled formats... [15-10-31 23:23:25.5264] Slim::Player::TranscodingHelper::enabledFormat (223) Testing aif-aif-*-* vs flc-flc-*-* [15-10-31 23:23:25.5265] Slim::Player::TranscodingHelper::enabledFormat (223) Testing aif-flc-*-* vs flc-flc-*-* [15-10-31 23:23:25.5266] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-aif-*-* vs flc-flc-*-* [15-10-31 23:23:25.5267] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-flc-*-* vs flc-flc-*-* [15-10-31 23:23:25.5268] Slim::Player::TranscodingHelper::enabledFormat (227) ** flc-flc-*-* Disabled ** [15-10-31 23:23:25.5269] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-dsf-squeezelite-50:e5:49:cc:b4:29 [15-10-31 23:23:25.5270] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-dsf-*-50:e5:49:cc:b4:29 [15-10-31 23:23:25.5270] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-dsf-squeezelite-*codice:[15-10-31 23:23:25.5324] Slim::Player::TranscodingHelper::checkBin (250) enabled [15-10-31 23:23:25.5325] Slim::Player::TranscodingHelper::checkBin (252) Found command: [perl] "C:\PROGRA~2\SQUEEZ~1\server\Plugins\C3PO\C-3PO.pl" -c $CLIENTID$ -p "C:\ProgramData\Squeezebox\prefs\plugin\C3PO.prefs" -i flc -o wav $START$ $END$ $RESAMPLE$ $FILE$ [15-10-31 23:23:25.5433] Slim::Player::TranscodingHelper::checkBin (275) couldn't find binary for: perl [15-10-31 23:23:25.5434] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-pcm-squeezelite-* [15-10-31 23:23:25.5435] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-pcm-*-* [15-10-31 23:23:25.5436] Slim::Player::TranscodingHelper::enabledFormat (209) Checking to see if flc-pcm-*-* is enabled [15-10-31 23:23:25.5437] Slim::Player::TranscodingHelper::enabledFormat (217) There are 6 disabled formats... [15-10-31 23:23:25.5438] Slim::Player::TranscodingHelper::enabledFormat (223) Testing aif-aif-*-* vs flc-pcm-*-* [15-10-31 23:23:25.5439] Slim::Player::TranscodingHelper::enabledFormat (223) Testing aif-flc-*-* vs flc-pcm-*-* [15-10-31 23:23:25.5440] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-aif-*-* vs flc-pcm-*-* [15-10-31 23:23:25.5441] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-flc-*-* vs flc-pcm-*-* [15-10-31 23:23:25.5442] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-pcm-*-* vs flc-pcm-*-* [15-10-31 23:23:25.5442] Slim::Player::TranscodingHelper::enabledFormat (227) ** flc-pcm-*-* Disabled ** [15-10-31 23:23:25.5443] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-mp3-squeezelite-50:e5:49:cc:b4:29 [15-10-31 23:23:25.5444] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-mp3-*-50:e5:49:cc:b4:29 [15-10-31 23:23:25.5445] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-mp3-squeezelite-* [15-10-31 23:23:25.5446] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-mp3-*-* [15-10-31 23:23:25.5447] Slim::Player::TranscodingHelper::enabledFormat (209) Checking to see if flc-mp3-*-* is enabled [15-10-31 23:23:25.5448] Slim::Player::TranscodingHelper::enabledFormat (217) There are 6 disabled formats...codice:15-10-31 23:23:25.5454] Slim::Player::TranscodingHelper::checkBin (250) enabled [15-10-31 23:23:25.5455] Slim::Player::TranscodingHelper::checkBin (252) Found command: [flac] -dcs $START$ $END$ -- $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - - [15-10-31 23:23:25.5562] Slim::Player::TranscodingHelper::checkBin (275) couldn't find binary for: lame [15-10-31 23:23:25.5563] Slim::Player::TranscodingHelper::getConvertCommand2 (443) Error: Didn't find any command matches for type: flc [15-10-31 23:23:25.5564] Slim::Player::Song::open (387) seek=false time=0 canSeek=0SEEK_ERROR_TRANSCODED [15-10-31 23:23:25.5566] Slim::Player::TranscodingHelper::enabledFormat (209) Checking to see if flc-flc-*-* iscodice:[15-10-31 23:23:25.5627] Slim::Player::TranscodingHelper::enabledFormat (223) Testing wav-flc-*-* vs flc-pcm-*-50:e5:49:cc:b4:29 [15-10-31 23:23:25.5628] Slim::Player::TranscodingHelper::checkBin (250) enabled [15-10-31 23:23:25.5629] Slim::Player::TranscodingHelper::checkBin (252) Found command: [perl] "C:\PROGRA~2\SQUEEZ~1\server\Plugins\C3PO\C-3PO.pl" -c $CLIENTID$ -p "C:\ProgramData\Squeezebox\prefs\plugin\C3PO.prefs" -i flc -o wav $START$ $END$ $RESAMPLE$ $FILE$ [15-10-31 23:23:25.5737] Slim::Player::TranscodingHelper::checkBin (275) couldn't find binary for: perl [15-10-31 23:23:25.5738] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-pcm-squeezelite-* [15-10-31 23:23:25.5739] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-pcm-*-* [15-10-31 23:23:25.5740] Slim::Player::TranscodingHelper::enabledFormat (209) Checking to see if flc-pcm-*-* is enabled [15-10-31 23:23:25.5741] Slim::Player::TranscodingHelper::enabledFormat (217) There are 6 disabled formats... [15-10-31 23:23:25.5742] Slim::Player::TranscodingHelper::enabledFormat (223) Testing aif-aif-*-* vs flc-pcm-*-* [15-10-31 23:23:25.5743] Slim::Player::TranscodingHelper::enabledFormat (223) Testing aif-flc-*-* vs flc-pcm-*-* [15-10-31 23:23:25.5744] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-aif-*-* vs flc-pcm-*-* [15-10-31 23:23:25.5745] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-flc-*-* vs flc-pcm-*-* [15-10-31 23:23:25.5746] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-pcm-*-* vs flc-pcm-*-* [15-10-31 23:23:25.5747] Slim::Player::TranscodingHelper::enabledFormat (227) ** flc-pcm-*-* Disabled ** [15-10-31 23:23:25.5748] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-mp3-squeezelite-50:e5:49:cc:b4:29 [15-10-31 23:23:25.5749] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-mp3-*-50:e5:49:cc:b4:29 [15-10-31 23:23:25.5749] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-mp3-squeezelite-* [15-10-31 23:23:25.5750] Slim::Player::TranscodingHelper::checkBin (242) Checking formats for: flc-mp3-*-* [15-10-31 23:23:25.5751] Slim::Player::TranscodingHelper::enabledFormat (209) Checking to see if flc-mp3-*-* is enabled [15-10-31 23:23:25.5752] Slim::Player::TranscodingHelper::enabledFormat (217) There are 6 disabled formats... [15-10-31 23:23:25.5753] Slim::Player::TranscodingHelper::enabledFormat (223) Testing aif-aif-*-* vs flc-mp3-*-* [15-10-31 23:23:25.5754] Slim::Player::TranscodingHelper::enabledFormat (223) Testing aif-flc-*-* vs flc-mp3-*-* [15-10-31 23:23:25.5755] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-aif-*-* vs flc-mp3-*-* [15-10-31 23:23:25.5756] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-flc-*-* vs flc-mp3-*-* [15-10-31 23:23:25.5756] Slim::Player::TranscodingHelper::enabledFormat (223) Testing flc-pcm-*-* vs flc-mp3-*-* [15-10-31 23:23:25.5757] Slim::Player::TranscodingHelper::enabledFormat (223) Testing wav-flc-*-* vs flc-mp3-*-* [15-10-31 23:23:25.5758] Slim::Player::TranscodingHelper::checkBin (250) enabled [15-10-31 23:23:25.5759] Slim::Player::TranscodingHelper::checkBin (252) Found command: [flac] -dcs $START$ $END$ -- $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - - [15-10-31 23:23:25.5866] Slim::Player::TranscodingHelper::checkBin (275) couldn't find binary for: lame [15-10-31 23:23:25.5867] Slim::Player::TranscodingHelper::getConvertCommand2 (443) Error: Didn't find any command matches for type: flc [15-10-31 23:23:25.5868] Slim::Player::Song::open (409) Error: Couldn't create command line for flc playback for [file:///C:/Users/filippo/Desktop/Music/David%20Virelles%20-%20Continuum%20(2012)%20[FLAC]%20%7BPi%20Recordings%7D/12%20-%20To%20Know.flac] [15-10-31 23:23:25.5869] Slim::Player::StreamingController::_playersMessage (789) Problema. Impossibile riprodurre tipo di file per:: file:///C:/Users/filippo/Desktop/Music/David%20Virelles%20-%20Continuum%20(2012)%20[FLAC]%20%7BPi%20Recordings%7D/12%20-%20To%20Know.flac [15-10-31 23:23:25.5873] Slim::Player::StreamingController::_willRetry (1403) no retry data [15-10-31 23:23:25.5874] Slim::Player::StreamingController::_setStreamingState (2375) new streaming state IDLE [15-10-31 23:23:25.5875] Slim::Player::StreamingController::nextsong (882) The next song is number 0, was 0 [15-10-31 23:23:25.5876] Slim::Player::StreamingController::_eventAction (303) 50:e5:49:cc:b4:29: NextTrackReady - new state STOPPED-IDLE
Allora, Non hai nemmeno il perl nel path, quindi o viene impostato da LMS quando parte (improbabile) o è registrato nello script di lancio. Questo potrebbe essere uno dei problemi da risolvere.
Prova per favore a scaricare la versione che ho appena rilasciato quando puoi, non risolve nulla, ma almeno ha qualche componente diagnostica in più per capire cosa non funziona.
Grazie.
Ciao, Marco.
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
— E. F. Schumacher (mis-attributed to A. Einstein)
________________________________________________________________________________
Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE
Marco vedi sopra...ci siamo incrociati...
Ciao, Marco.
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
— E. F. Schumacher (mis-attributed to A. Einstein)
________________________________________________________________________________
Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE
Ci sono attualmente 2 utenti che stanno visualizzando questa discussione. (0 utenti e 2 ospiti)