Allora, stavo provando a ricostruire i pacchetti. Ho scaricato i sorgenti con il comando:
Dice "modified version" e fa riferimento al tuo repository, ma l'opzione "-h" non appare... ho sbagliato il comando git?
Mi ero dimenticato di definire la variabile "OPTS" per abilitare gli extra... tutto ok:
codice:
$ OPTS="-DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR" colormake
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR main.c -c -o main.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR slimproto.c -c -o slimproto.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR buffer.c -c -o buffer.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR stream.c -c -o stream.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR utils.c -c -o utils.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR output.c -c -o output.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR output_alsa.c -c -o output_alsa.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR output_pa.c -c -o output_pa.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR output_stdout.c -c -o output_stdout.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR output_pack.c -c -o output_pack.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR decode.c -c -o decode.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR flac.c -c -o flac.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR pcm.c -c -o pcm.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR mad.c -c -o mad.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR vorbis.c -c -o vorbis.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR faad.c -c -o faad.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR mpg.c -c -o mpg.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR dsd.c -c -o dsd.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR dop.c -c -o dop.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR dsd2pcm/dsd2pcm.c -c -o dsd2pcm/dsd2pcm.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR ffmpeg.c -c -o ffmpeg.o
ffmpeg.c: In function ‘ff_decode’:
ffmpeg.c:327:3: warning: ‘avcodec_alloc_frame’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3622) [-Wdeprecated-declarations]
ff->frame = AVCODEC(ff, alloc_frame);
^
ffmpeg.c: In function ‘_free_ff_data’:
ffmpeg.c:525:3: warning: ‘avcodec_free_frame’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3647) [-Wdeprecated-declarations]
AVCODEC(ff, free_frame, &ff->frame);
^
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR process.c -c -o process.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR resample.c -c -o resample.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR output_vis.c -c -o output_vis.o
cc -Wall -fPIC -O2 -DDSD -DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL -DIR ir.c -c -o ir.o
cc main.o slimproto.o buffer.o stream.o utils.o output.o output_alsa.o output_pa.o output_stdout.o output_pack.o decode.o flac.o pcm.o mad.o vorbis.o faad.o mpg.o dsd.o dop.o dsd2pcm/dsd2pcm.o ffmpeg.o process.o resample.o output_vis.o ir.o -lasound -lpthread -lm -lrt -lFLAC -lmad -lvorbisfile -lfaad -lmpg123 -lavcodec -lavformat -lavutil -lsoxr -llirc_client -o squeezelite
codice:
$ ./squeezelite --help
Option error: --help
Squeezelite v1.8, Copyright 2012-2015 Adrian Smith.
modified version, see https://github.com/marcoc1712/squeezelite/tree/mc2_allow_lms_side_pcm_upsampling
modified version, see https://github.com/marcoc1712/squeezelite/tree/Daphile_disable_lms_side_downsampling
See -t for license terms
Usage: ./squeezelite [options]
-s <server>[:<port>] Connect to specified server, otherwise uses autodiscovery to find server
-o <output device> Specify output device, default "default", - = output to stdout
-l List output devices
-a <b>:<p>:<f>:<m> Specify ALSA params to open output device, b = buffer time in ms or size in bytes, p = period count or size in bytes, f sample format (16|24|24_3|32), m = use mmap (0|1)
-a <f> Specify sample format (16|24|32) of output file when using -o - to output samples to stdout (interleaved little endian only)
-b <stream>:<output> Specify internal Stream and Output buffer sizes in Kbytes
-c <codec1>,<codec2> Restrict codecs to those specified, otherwise load all available codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec)
-C <timeout> Close output device when idle after timeout seconds, default is to keep it open while player is 'on'
-d <log>=<level> Set logging level, logs: all|slimproto|stream|decode|output|ir, level: info|debug|sdebug
-e <codec1>,<codec2> Explicitly exclude native support of one or more codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec)
-f <logfile> Write debug to logfile
-i [<filename>] Enable lirc remote control support (lirc config file ~/.lircrc used if filename not specified)
-m <mac addr> Set mac address, format: ab:cd:ef:12:34:56
-M <modelname> Set the squeezelite player model name sent to the server (default: SqueezeLite)
-n <name> Set the player name
-N <filename> Store player name in filename to allow server defined name changes to be shared between servers (not supported with -n)
-p <priority> Set real time priority of output thread (1-99)
-P <filename> Store the process id (PID) in filename
-r <rates>[:<delay>] Sample rates supported, allows output to be off when squeezelite is started; rates = <maxrate>|<minrate>-<maxrate>|<rate1>,<rate2>,<rate3>; delay = optional delay switching rates in ms
-h Disable LMS side downsampling
-R -u [params] Resample, params = <recipe>:<flags>:<attenuation>:<precision>:<passband_end>:<stopband_start>:<phase_response>,
recipe = (v|h|m|l|q)(L|I|M)(s) [E|X], E = exception - resample only if native rate not supported, X = async - resample to max rate for device, otherwise to max sync rate
flags = num in hex,
attenuation = attenuation in dB to apply (default is -1db if not explicitly set),
precision = number of bits precision (NB. HQ = 20. VHQ = 28),
passband_end = number in percent (0dB pt. bandwidth to preserve. nyquist = 100%),
stopband_start = number in percent (Aliasing/imaging control. > passband_end),
phase_response = 0-100 (0 = minimum / 50 = linear / 100 = maximum)
-D [delay] Output device supports DSD over PCM (DoP), delay = optional delay switching between PCM and DoP in ms
-v Visualiser support
-L List volume controls for output device
-U <control> Unmute ALSA control and set to full volume (not supported with -V)
-V <control> Use ALSA control for volume adjustment, otherwise use software volume adjustment
-z Daemonize
-t License terms
-? Display this help text
Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR DSD LINKALL