Marco scusa hai letto tutti i messaggi?
Printable View
Marco scusa hai letto tutti i messaggi?
Li ho provati anche senza IR
Allora, capisco la fatica, ma non riesco fisicamente a seguirvi se non procediamo con ordine.
direi che da quello che ho letto:
1. Con l'upsampling di FLAC, WAV ed AIFF uscendo in FLAC secondo quanto al post #460 dovrebbe funzionare per tutti, se non funziona è molto probabile sia un problema di struttura dei file .conf, vi consiglio di ripartire da una situazione pulita.
2. Con i files WAV funziona su tutte le piattaforme tranne win32 (la mia...).
C'è qualcosa che mi sfugge rispetto a questa situazione?
Vediamo di fare un passo per volta nella stessa direzione.
Butta tutto e metti questo nel convert.conf
Poi mettiamo a posto anche i files.codice:# $Id$
#
# Configuration file for transcoding
#
# If you wish to create custom transcoding entries that won't be overwritten
# by a new release of Logitech Media Server, create a custom-convert.conf file in the
# Logitech Media Server root directory, or the root of the Plugins directory.
#
# On Debian, you can also create this file in # /etc/slimserver/custom-convert.conf
#
# first line is the source format, destination format and the destination device. Asterisk matches all
# second line is the command line for the conversion
#
# First line format:
#
#
#: Source music format: mp3, mp4, ogg, wav, etc...
#: Destination music format: Generally mp3, or
# possibly aif or others depending on the types
# your player supports. SliMP3 supports only
# MP3. Squeezebox currently supports mp3, aif
# and pcm. Squeezebox2 adds support for Flac and WMA.
#: currently slimp3, squeezebox, or *.
# The * is a wildcard that matches all device
# types.
#: The ID of the destination device. The
# ID of the destination device is the MAC address
# of a SliMP3 or Squeezebox device, or the IP of
# an HTTP client (such as your computer running
# WinAmp). The '*' wildcard matches all hosts
#
# either or both ofand
#may be the '*' wildcard
#
#
# $FILE$ is the absolute path to the local source file
# $URL$ is the full URL for remote streams
# [bin] is the executable binary for the encoder or decoder
# - is a special command line that implies passthrough of data
#
# Capabilities
# I - can transcode from stdin
# F - can transcode from a named file
# R - can transcode from a remote URL (URL types unspecified)
#
# O - can seek to a byte offset in the source stream (not yet implemented)
# T - can seek to a start time offset
# U - can seek to start time offset and finish at end time offset
#
# D - can downsample
# B - can limit bitrate
#
# default is "IF"
#
# Substitution strings for variable capabilities
# %f, $FILE$ - file path (local files)
# %F, $URL$ - full URL (remote streams)
#
# %o - stream start byte offset
#
# %S - stream samples start offset (not yet implemented)
# %s - stream seconds start offset
# %t - stream time (m:ss) start offset
# %U - stream samples end offset (not yet implemented)
# %u - stream seconds end offset
# %v - stream time (m:ss) end offset
# %w - stream seconds duration
#
# %b - limit bitrate: b/s
# %B - limit bitrate: kb/s
# %d - samplerate: samples/s
# %D - samplerate: ksamples/s
# %C, $CHANNELS$ - channel count
# %c, $OCHANNELS$ - output channel count
# %i - clientid
# %I, $CLIENTID$ - clientid ( : or . replaced by - )
# %p - player model
# %P, $PLAYER$ - player model ( SPACE or QOUTE replaced by _ )
# %n - player name
# %N, $NAME$ - player name ( SPACE or QOUTE replaced by _ )
# %q, $QUALITY$ - quality
# %Q, - quality ( fractal notation: if = '0' return '01' )
# ${FILENAME}$ - contents of {FILENAME} (may contain other $*$ substitutions )
# specific combinations match before wildcards
mp4 mp3 * *
# FB:{BITRATE=--abr %B}T:{START=-j %s}U:{END=-e %u}
[faad] -q -w -f 1 $START$ $END$ $FILE$ | [lame] --silent -q $QUALITY$ $BITRATE$ - -
aac mp3 * *
# IFB:{BITRATE=--abr %B}
[faad] -q -w -f 1 $FILE$ | [lame] --silent -q $QUALITY$ $BITRATE$ - -
sls mp3 * *
# FB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[sls] $FILE$ - -s | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
alc mp3 * *
# FB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}T:{START=-j %s}U:{END=-e %u}
[faad] -q -w -f 1 $START$ $END$ $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
ogg mp3 * *
# IFB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[sox] -q -t ogg $FILE$ -t wav - | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
wav mp3 * *
# IFB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ $FILE$ -
aif mp3 * *
# IFB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ $FILE$ -
flc mp3 * *
# FB:{BITRATE=--abr %B}T:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=--resample %D}
[flac] -dcs $START$ $END$ -- $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
wma mp3 * *
# F:{PATH=%f}R:{PATH=%F}B:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[wmadec] -w $PATH$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
wmal mp3 * *
# F:{PATH=%f}R:{PATH=%F}B:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[wmadec] -w $PATH$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
wmap mp3 * *
# F:{PATH=%f}R:{PATH=%F}B:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[wmadec] -w $PATH$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
mpc mp3 * *
# IRB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[mppdec] --silent --prev --gain 3 - - | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
ape mp3 * *
# FB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[mac] $FILE$ - -d | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
wvp mp3 * *
# FB:{BITRATE=--abr %B}T:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=--resample %D}
[wvunpack] $FILE$ -wq $START$ $END$ -o - | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
mp3 mp3 * *
-
# Non-mp3 starts here
aif aif * *
-
wav pcm * *
-
flc pcm * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -dcs --force-raw-format --endian=little --sign=signed $START$ $END$ -- $FILE$
flc aif * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -dcs --force-raw-format --endian=little --sign=signed $START$ $END$ -- $FILE$
ogf ogf * *
-
ogf flc * *
[flac] --ogg -dcs -- $FILE$ | [flac] -cs --ignore-chunk-sizes --totally-silent --compression-level-0 -
ogg ogg * *
-
ogg aif * *
[sox] -q -t ogg $FILE$ -t raw -r 44100 -c 2 -2 -s $-x$ -
ogg pcm * *
[sox] -q -t ogg $FILE$ -t raw -r 44100 -c 2 -2 -s -
wma pcm * *
# F:{PATH=%f}R:{PATH=%F}
[wmadec] -r 44100 -b 16 -n 2 $PATH$
wmal pcm * *
# F:{PATH=%f}R:{PATH=%F}
[wmadec] -r 44100 -b 16 -n 2 $PATH$
wmap pcm * *
# F:{PATH=%f}R:{PATH=%F}
[wmadec] -r 44100 -b 16 -n 2 $PATH$
mpc pcm * *
# IR
[mppdec] --raw-le --silent --prev --gain 2 - -
ape pcm * *
# F
[mac] $FILE$ - -d
mpc aif * *
# IR
[mppdec] --raw-be --silent --prev --gain 2 - -
alc pcm * *
# FT:{START=-j %s}U:{END=-e %u}
[faad] -q -w -f 2 $START$ $END$ $FILE$
wvp pcm * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[wvunpack] $FILE$ -rq $START$ $END$ -o -
mp4 pcm * *
# FT:{START=-j %s}U:{END=-e %u}
[faad] -q -w -f 2 -b 1 $START$ $END$ $FILE$
aac pcm * *
# IF
[faad] -q -w -f 2 -b 1 $FILE$
sls pcm * *
# F
[sls] $FILE$ - -r -s
wma wma * *
-
wmal wmal * *
-
wmap wmap * *
-
# FLAC output starts here
#mp3 flc * *
# [lame] --mp3input --decode -t --silent $FILE$ - | [flac] -cs --totally-silent --compression-level-0 -
flc flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -e signed -C 0 -b 24 - rate -v -M -a -b 90.7 192000 dither -S
aif flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -cs --totally-silent --compression-level-0 $START$ $END$ -- $FILE$ | [sox] -q -t flac - -t flac -e signed -C 0 -b 24 - rate -v -M -a -b 90.7 192000 dither -S
wav flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -cs --totally-silent --compression-level-0 $START$ $END$ -- $FILE$ | [sox] -q -t flac - -t flac -e signed -C 0 -b 24 - rate -v -M -a -b 90.7 192000 dither -S
ogg flc * *
# IFRD:{RESAMPLE=-r %d}
[sox] -t ogg $FILE$ -t flac -C 0 $RESAMPLE$ -
wma flc * *
# F:{PATH=%f}R:{PATH=%F}
[wmadec] -w $PATH$ | [flac] -cs --totally-silent --compression-level-0 -
wmal flc * *
# F:{PATH=%f}R:{PATH=%F}
[wmadec] -w $PATH$ | [flac] -cs --totally-silent --compression-level-0 -
[wmadec] -w $PATH$ | [flac] -cs --totally-silent --compression-level-0 -
wmap flc * *
# F:{PATH=%f}R:{PATH=%F}
mpc flc * *
# IR
[mppdec] --silent --prev --gain 2 - - | [flac] -cs --totally-silent --compression-level-0 -
ape flc * *
# F
[mac] $FILE$ - -d | [flac] -cs --totally-silent --compression-level-0 -
mp4 flc * *
# FT:{START=-j %s}U:{END=-e %u}
[faad] -q -w -f 1 $START$ $END$ $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -
aac flc * *
# IF
[faad] -q -w -f 1 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -
sls flc * *
# FD:{RESAMPLE=-r %d}
[sls] $FILE$ - -s | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ -
alc flc * *
# FT:{START=-j %s}U:{END=-e %u}D:{RESAMPLE=-r %d}
[faad] -q -w -f 1 $START$ $END$ $FILE$ | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ -
wvp flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[wvunpack] $FILE$ -wq $START$ $END$ -o - | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ -
# AAC & ALAC output start here
aac aac * *
-
mp4 aac * *
-
sls aac * *
-
alc alc * *
-
# special case for smart bitrates on mp3 input
mp3 mp3 transcode *
# IFB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[lame] --silent -q $QUALITY$ $BITRATE$ $RESAMPLE$ --mp3input $FILE$ -
flc flc transcode *
# 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 $RESAMPLE$ -
# This example transcodes MP3s to MP3s, if the target machine has the
# given MAC address. This rule will take precedence over the
# previous rule because it's more specific.
#mp3 mp3 squeezebox 00:02:dd:34:e9:62
# ./brute_filter $FILE$ -
spdr spdr * *
-
dsf dsf * *
# IFD
-
dff dff * *
# IFD
-
@Antonello da te va l'upsamplig via flac? @Giovanni?
se fai generare un file wav e gli dai estensione ".flac", è molto probabile (specie sotto windoze o mac) che le cose non funzionino... ;)
sarebbe da capire perché non è attivabile. Sarà mica che hai anche la vecchia entry "flc pcm * *" e forse LMS non gradisce che ci siano entrambe? Oppure proprio LMs/squeezelite non ne vogliono sapere di trasferire in formato WAV?!
squeezelite è in grado di accettare stream in fomato wav?
qual è il contenuto della entry nel file configurazione che gestisce i files wav?
è possibile... ma in tal caso il problema è nella configurazione / opzioni di squeezelite. Oppure è proprio un limite?
per certo no, ma è a dir poco improbabile per non dire inverosimile che passi per flac. HQP gestisce il resampling internamente, con i propri algoritmi. Non avrebbe alcun motivo per usare wav e tanto meno flac (che non può essere usato direttamente per le elaborazioni). Con ogni probabilità usa invece un proprio formato interno (verosimilmente raw PCM a 32 o addirittura 64 bit, oppure forse float/double), così come fanno praticamente tutti (sox, jack, pulse, ecc, ecc).
Sì, a questo punto mi sembra possibile che sia proprio così... per quanto appaia a dir poco strano: perché mai squeezelite può accettare (richiedere?) FLAC oppure PCM (raw), ma non un altro formato PCM (con header) come WAV o AIFF?
Comunque, se così fosse la spiegazione del problema potrebbe essere semplice:
Se trasferisci FLAC non ci sono problemi, in quanto quello è un formato ben determinato, autodescrittivo e system independent, per cui tutto funziona quali che siano i sistemi su cui girano LMS e squeezelite.
Se però al contrario usi PCM raw i problemi ci sono eccome, in quanto probabilmente da un sistema all'altro il formato raw cambia (ad es. perche cambia "l'endianess" di default, o qualsiasi altra cosa).
Quindi (se è così) da LMS su Mac a squeezelite su Mac OK, da LMS su win a SL su win OK, ma se invece MS ed SL girano su sistemi diversi non funziona.
Però continua a sembrarmi strano: sarebbe un bug grosso quanto una montagna nell'architettura stessa del sistema LMS+SL...
se usi questo comando puoi togliere quel "rate -v -b 90" in fondo, tanto non viene utilizzato in alcun modo... ;)
P.S.: per sapere "cosa c'è dentro" un file audio potete usare i comandi "file", "mediainfo", "shninfo", "soxi", ... ah, già, dimenticavo che non siete su Linux. :evil
Beh, potete comunque usare lo stesso sox:
sox --info mio_file.ext
;)