{"id":22205,"date":"2016-08-12T16:28:47","date_gmt":"2016-08-12T14:28:47","guid":{"rendered":"https:\/\/www.max2play.com\/?post_type=kbe_knowledgebase&#038;p=22205"},"modified":"2020-04-16T12:50:03","modified_gmt":"2020-04-16T10:50:03","slug":"command-line-options-for-squeezelite","status":"publish","type":"kbe_knowledgebase","link":"https:\/\/www.max2play.com\/en\/wiki\/command-line-options-for-squeezelite\/","title":{"rendered":"Command Line Options for Squeezelite"},"content":{"rendered":"<p>Here you can see the different opportunities for the &#8222;Squeezelite Command Line Options&#8220; in a ordered list.<\/p>\n<p>&nbsp;<\/p>\n<table class=\"sf-table striped_bordered\"><tbody>\n<p>&nbsp;<\/p>\n<tr>\n<th>Command Line Input<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td><strong>-s &lt;server&gt;[:&lt;port&gt;]<\/strong><\/td>\n<td>Connect to specified server, otherwise uses autodiscovery to find server<\/td>\n<\/tr>\n<tr>\n<td><strong>-o &lt;output device&gt;<\/strong><\/td>\n<td>Specify output device, default &#8222;default&#8220;, &#8211; = output to stdout<\/td>\n<\/tr>\n<tr>\n<td><strong>-l<\/strong><\/td>\n<td>List output devices<\/td>\n<\/tr>\n<tr>\n<td><strong>-a &lt;b&gt;:&lt;p&gt;:&lt;f&gt;:&lt;m&gt;<\/strong><\/td>\n<td>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)<\/td>\n<\/tr>\n<tr>\n<td><strong>-a &lt;f&gt;<\/strong><\/td>\n<td>Specify sample format (16|24|32) of output file when using -o &#8211; to output samples to stdout (interleaved little endian only)<\/td>\n<\/tr>\n<tr>\n<td><strong>-b &lt;stream&gt;:&lt;output&gt;<\/strong><\/td>\n<td>Specify internal Stream and Output buffer sizes in Kbytes<\/td>\n<\/tr>\n<tr>\n<td><strong>-c &lt;codec1&gt;,&lt;codec2&gt;<\/strong><\/td>\n<td>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)<\/td>\n<\/tr>\n<tr>\n<td><strong>-C &lt;timeout&gt;<\/strong><\/td>\n<td>Close output device when idle after timeout seconds, default is to keep it open while player is &#8218;on&#8216;<\/td>\n<\/tr>\n<tr>\n<td><strong>-d &lt;log&gt;=&lt;level&gt;<\/strong><\/td>\n<td>Set logging level, logs: all|slimproto|stream|decode|output|ir, level: info|debug|sdebug<\/td>\n<\/tr>\n<tr>\n<td><strong>-G &lt;Rpi GPIO#&gt;:&lt;H\/L&gt;<\/strong><\/td>\n<td>Specify the BCM GPIO# to use for Amp Power Relay and if the output should be Active High or Low<\/td>\n<\/tr>\n<tr>\n<td><strong>-e &lt;codec1&gt;,&lt;codec2&gt;<\/strong><\/td>\n<td>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)<\/td>\n<\/tr>\n<tr>\n<td><strong>-f &lt;logfile&gt;<\/strong><\/td>\n<td>Write debug to logfile<\/td>\n<\/tr>\n<tr>\n<td><strong>-i [&lt;filename&gt;]<\/strong><\/td>\n<td>Enable lirc remote control support (lirc config file ~\/.lircrc used if filename not specified)<\/td>\n<\/tr>\n<tr>\n<td><strong>-m &lt;mac addr&gt;<\/strong><\/td>\n<td>Set mac address, format: ab:cd:ef:12:34:56<\/td>\n<\/tr>\n<tr>\n<td><strong>-M &lt;modelname&gt;<\/strong><\/td>\n<td>Set the squeezelite player model name sent to the server (default: SqueezeLite)<\/td>\n<\/tr>\n<tr>\n<td><strong>-n &lt;name&gt;<\/strong><\/td>\n<td>Set the player name<\/td>\n<\/tr>\n<tr>\n<td><strong>-N &lt;filename&gt;<\/strong><\/td>\n<td>Store player name in filename to allow server defined name changes to be shared between servers (not supported with -n)<\/td>\n<\/tr>\n<tr>\n<td><strong>-W<\/strong><\/td>\n<td>Read wave and aiff format from header, ignore server parameters<\/td>\n<\/tr>\n<tr>\n<td><strong>-p &lt;priority&gt;<\/strong><\/td>\n<td>Set real time priority of output thread (1-99)<\/td>\n<\/tr>\n<tr>\n<td><strong>-P &lt;filename&gt;<\/strong><\/td>\n<td>Store the process id (PID) in filename<\/td>\n<\/tr>\n<tr>\n<td><strong>-r &lt;rates&gt;[:&lt;delay&gt;]<\/strong><\/td>\n<td>Sample rates supported, allows output to be off when squeezelite is started; rates = &lt;maxrate&gt;|&lt;minrate&gt;-&lt;maxrate&gt;|&lt;rate1&gt;,&lt;rate2&gt;,&lt;rate3&gt;; delay = optional delay switching rates in ms<\/td>\n<\/tr>\n<tr>\n<td><strong>-S &lt;Power Script&gt;<\/strong><\/td>\n<td>Absolute path to script to launch on power commands from LMS<\/td>\n<\/tr>\n<tr>\n<td><strong>-R -u [params]<\/strong><\/td>\n<td>Resample, params = &lt;recipe&gt;:&lt;flags&gt;:&lt;attenuation&gt;:&lt;precision&gt;:&lt;passband_end&gt;:&lt;stopband_start&gt;:&lt;phase_response&gt;,<br \/>\nrecipe = (v|h|m|l|q)(L|I|M)(s) [E|X], E = exception &#8211; resample only if native rate not supported, X = async &#8211; resample to max rate for device, otherwise to max sync rate<br \/>\nflags = num in hex,<br \/>\nattenuation = attenuation in dB to apply (default is -1db if not explicitly set),<br \/>\nprecision = number of bits precision (NB. HQ = 20. VHQ = 28),<br \/>\npassband_end = number in percent (0dB pt. bandwidth to preserve. nyquist = 100%),<br \/>\nstopband_start = number in percent (Aliasing\/imaging control. &gt; passband_end),<br \/>\nphase_response = 0-100 (0 = minimum \/ 50 = linear \/ 100 = maximum)<\/td>\n<\/tr>\n<tr>\n<td><strong>-D[delay]<\/strong><\/td>\n<td>Output device supports DSD over PCM (DoP), delay = optional delay switching between PCM and DoP in ms<\/td>\n<\/tr>\n<tr>\n<td><strong>-v<\/strong><\/td>\n<td>Visualiser support<\/td>\n<\/tr>\n<tr>\n<td><b>-L<\/b><\/td>\n<td>List volume controls for output device<\/td>\n<\/tr>\n<tr>\n<td><b>-U &lt;control&gt;<\/b><\/td>\n<td>Unmute ALSA control and set to full volume (not supported with -V)<\/td>\n<\/tr>\n<tr>\n<td><strong>-V &lt;control&gt;<\/strong><\/td>\n<td>Use ALSA control for volume adjustment, otherwise use software volume adjustment<\/td>\n<\/tr>\n<tr>\n<td><strong>-Q<\/strong><\/td>\n<td>Sync local ALSA volume changes with Squeezebox Server Volume when using -V option<\/td>\n<\/tr>\n<tr>\n<td><strong>-X &lt;gpio_button&gt;<\/strong><\/td>\n<td>Use a GPIO Button to switch between Play and Pause &#8211; works well with rotary encoders (Volume control) with integrated button for Play\/Pause<\/td>\n<\/tr>\n<tr>\n<td><strong>-B<\/strong><\/td>\n<td>Use to set PowerOn\/Off Player on status of connected Bluetooth-Speakers (only for Pulse Audiooutput)<br \/>\n<strong>Attention:<\/strong> Does not work with &#8222;-C&#8220; parameter. <\/td>\n<\/tr>\n<tr>\n<td><strong>-I &lt;port&gt;<\/strong><\/td>\n<td>Squeezebox Server CLI Port (optional). Default 9090<\/td>\n<\/tr>\n<tr>\n<td><strong>-z<\/strong><\/td>\n<td>Daemonize<\/td>\n<\/tr>\n<tr>\n<td><strong>-z &lt;rate&gt;<\/strong><\/td>\n<td>Report rate to server in helo as the maximum sample rate we can support<\/td>\n<\/tr>\n<tr>\n<td><strong>-t<\/strong><\/td>\n<td>License terms<\/td>\n<\/tr>\n<tr>\n<td><strong>-?<\/strong><\/td>\n<td>Display this help text<\/td>\n<\/tr>\n<\/tbody><\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here you can see the different opportunities for the &#8222;Squeezelite Command Line Options&#8220; in a ordered list. &nbsp; &nbsp;<\/p>\n","protected":false},"author":1316,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","kbe_taxonomy":[899],"kbe_tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/22205"}],"collection":[{"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_knowledgebase"}],"about":[{"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/types\/kbe_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/users\/1316"}],"replies":[{"embeddable":true,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/comments?post=22205"}],"version-history":[{"count":13,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/22205\/revisions"}],"predecessor-version":[{"id":48511,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/22205\/revisions\/48511"}],"wp:attachment":[{"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/media?parent=22205"}],"wp:term":[{"taxonomy":"kbe_taxonomy","embeddable":true,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_taxonomy?post=22205"},{"taxonomy":"kbe_tags","embeddable":true,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_tags?post=22205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}