Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    I read about flac and sox but not sure how to test it. Could you provide examples how to test them? The --logifle and other settings are already set inside squeezeboxserver.service under systemd and not by me actually.

  2. #12
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    16,146
    Quote Originally Posted by Lateboomer View Post
    I read about flac and sox but not sure how to test it. Could you provide examples how to test them?
    At a shell prompt , type the following each followed by a return. A banner message should be produced
    /usr/share/squeezeboxserver/Bin/armhf-linux/sox
    /usr/share/squeezeboxserver/Bin/armhf-linux/flac

    Below shows what is expected . Type in command coloured in blue and starting fragment of expected output in shown in red.

    Code:
    /usr/share/squeezeboxserver/Bin/armhf-linux/flac
    ===============================================================================
    flac - Command-line FLAC encoder/decoder version 1.2.1
    Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh Coalson
    
                   Patched for SqueezeCenter
       http://bugs.slimdevices.com/show_bug.cgi?id=10886
       http://bugs.slimdevices.com/show_bug.cgi?id=11223
    .
    .
    /usr/share/squeezeboxserver/Bin/armhf-linux/sox
    /usr/share/squeezeboxserver/Bin/armhf-linux/sox: SoX v14.3.1
    
    /usr/share/squeezeboxserver/Bin/armhf-linux/sox FAIL sox: Not enough input filenames specified
    
    Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]...
    
    SPECIAL FILENAMES (infile, outfile):
    -                        Pipe/redirect input/output (stdin/stdout); may need -t
    -d, --default-device     Use the default audio device (where available)
    -n, --null               Use the `null' file handler; e.g. with synth effect

    The --logifle and other settings are already set inside squeezeboxserver.service under systemd and not by me actually.
    I don't think overriding server.log to error.log is part of "normal" Logitech installation. How did you install LMS ? Was it a 3rd party build of LMS ?

  3. #13
    Here is the output running flac and sox:

    Code:
    root@DietPi:~# /usr/share/squeezeboxserver/Bin/armhf-linux/flac
    ===============================================================================
    flac - Command-line FLAC encoder/decoder version 1.2.1
    Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh Coalson
    
                   Patched for SqueezeCenter
       http://bugs.slimdevices.com/show_bug.cgi?id=10886
       http://bugs.slimdevices.com/show_bug.cgi?id=11223
    
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    ===============================================================================
    
    This is the short help; for all options use 'flac --help'; for even more
    instructions use 'flac --explain'
    
    To encode:
      flac [-#] [INPUTFILE [...]]
    
      -# is -0 (fastest compression) to -8 (highest compression); -5 is the default
    
    To decode:
      flac -d [INPUTFILE [...]]
    
    To test:
      flac -t [INPUTFILE [...]]
    
    
    root@DietPi:~# /usr/share/squeezeboxserver/Bin/armhf-linux/sox
    /usr/share/squeezeboxserver/Bin/armhf-linux/sox: SoX v14.3.1
    
    /usr/share/squeezeboxserver/Bin/armhf-linux/sox FAIL sox: Not enough input filenames specified
    
    Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]...
    
    SPECIAL FILENAMES (infile, outfile):
    -                        Pipe/redirect input/output (stdin/stdout); may need -t
    -d, --default-device     Use the default audio device (where available)
    -n, --null               Use the `null' file handler; e.g. with synth effect
    -p, --sox-pipe           Alias for `-t sox -'
    
    SPECIAL FILENAMES (infile only):
    "|program [options] ..." Pipe input from external program (where supported)
    http://server/file       Use the given URL as input file (where supported)
    
    GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect):
    --buffer BYTES           Set the size of all processing buffers (default 8192)
    --clobber                Don't prompt to overwrite output file (default)
    --combine concatenate    Concatenate all input files (default for sox, rec)
    --combine sequence       Sequence all input files (default for play)
    -D, --no-dither          Don't dither automatically
    --effects-file FILENAME  File containing effects and options
    -G, --guard              Use temporary files to guard against clipping
    -h, --help               Display version number and usage information
    --help-effect NAME       Show usage of effect NAME, or NAME=all for all
    --help-format NAME       Show info on format NAME, or NAME=all for all
    --i, --info              Behave as soxi(1)
    --input-buffer BYTES     Override the input buffer size (default: as --buffer)
    --no-clobber             Prompt to overwrite output file
    -m, --combine mix        Mix multiple input files (instead of concatenating)
    -M, --combine merge      Merge multiple input files (instead of concatenating)
    --magic                  Use `magic' file-type detection
    --multi-threaded         Enable parallel effects channels processing (where
                             available)
    --norm                   Guard (see --guard) & normalise
    --play-rate-arg ARG      Default `rate' argument for auto-resample with `play'
    --plot gnuplot|octave    Generate script to plot response of filter effect
    -q, --no-show-progress   Run in quiet mode; opposite of -S
    --replay-gain track|album|off  Default: off (sox, rec), track (play)
    -R                       Use default random numbers (same on each run of SoX)
    -S, --show-progress      Display progress while processing audio data
    --single-threaded        Disable parallel effects channels processing
    --temp DIRECTORY         Specify the directory to use for temporary files
    --version                Display version number of SoX and exit
    -V[LEVEL]                Increment or set verbosity level (default 2); levels:
                               1: failure messages
                               2: warnings
                               3: details of processing
                               4-6: increasing levels of debug messages
    FORMAT OPTIONS (fopts):
    Input file format options need only be supplied for files that are headerless.
    Output files will have the same format as the input file where possible and not
    overriden by any of various means including providing output format options.
    
    -v|--volume FACTOR       Input file volume adjustment factor (real number)
    --ignore-length          Ignore input file length given in header; read to EOF
    -t|--type FILETYPE       File type of audio
    -s/-u/-f/-U/-A/-i/-a/-g  Encoding type=signed-integer/unsigned-integer/floating
                             point/mu-law/a-law/ima-adpcm/ms-adpcm/gsm-full-rate
    -e|--encoding ENCODING   Set encoding (ENCODING in above list)
    -b|--bits BITS           Encoded sample size in bits
    -1/-2/-3/-4/-8           Encoded sample size in bytes
    -N|--reverse-nibbles     Encoded nibble-order
    -X|--reverse-bits        Encoded bit-order
    --endian little|big|swap Encoded byte-order; swap means opposite to default
    -L/-B/-x                 Short options for the above
    -c|--channels CHANNELS   Number of channels of audio data; e.g. 2 = stereo
    -r|--rate RATE           Sample rate of audio
    -C|--compression FACTOR  Compression factor for output format
    --add-comment TEXT       Append output file comment
    --comment TEXT           Specify comment text for the output file
    --comment-file FILENAME  File containing comment text for the output file
    --no-glob                Don't `glob' wildcard match the following filename
    
    AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb au avr cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu maud mp2 mp3 nist ogg prc raw s1 s16 s2 s24 s3 s32 s4 s8 sb sf sl smp snd sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox wav wavpcm wv wve xa
    PLAYLIST FORMATS: m3u pls
    AUDIO DEVICE DRIVERS:
    
    EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast crop+ dcshift deemph delay dither divide+ earwax echo echos equalizer fade filter* fir firfit+ flanger gain highpass input# key* loudness lowpass mcompand mixer noiseprof noisered norm oops output# overdrive pad pan* phaser pitch polyphase* rabbit* rate remix repeat resample* reverb reverse riaa silence sinc speed splice stat stats stretch swap synth tempo treble tremolo trim vad vol
      * Deprecated effect    + Experimental effect    # LibSoX-only effect
    EFFECT OPTIONS (effopts): effect dependent; see --help-effect
    I installed LMS using this command :
    Code:
     dietpi-software install 35
    35 is corresponding to squeezeboxserver under a list of programs that can be selected from dietpi to install.

  4. #14
    I can see that once I tried to click Home > Music > Blues Music > Stations (26+) link, the sox would be broken with broken pipe and the LMS webpage also became unresponsive anymore. I had to restart squeezeboxserver with "systemctl restart squeezeboxserver" to regain back the LMS.

    If before restart squeezeboxserver and issue status statement, it will show like this:

    Code:
    root@DietPi:~# systemctl status squeezeboxserver
    ● squeezeboxserver.service - Squeezebox Server (LMS)
       Loaded: loaded (/etc/systemd/system/squeezeboxserver.service; disabled; vendor preset: enabled)
       Active: active (running) since Sat 2018-05-19 17:20:47 +08; 14min ago
     Main PID: 989 (squeezeboxserve)
       CGroup: /system.slice/squeezeboxserver.service
               └─989 /usr/bin/perl /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logfile /var/log/squeezeboxser
    ver/error.log --logdir /var/log/squeezeboxserver/ --cachedir /var/lib/squeezeboxserver/cache --user root
    
    May 19 17:20:47 DietPi systemd[1]: Started Squeezebox Server (LMS).
    May 19 17:20:53 DietPi squeezeboxserver[989]: Async::HTTP: Unable to load IO::Socket::SSL, will try connecting to SSL servers in non-
    SSL mode
    May 19 17:21:09 DietPi squeezeboxserver[989]: [18-05-19 17:20:56.5009] main::init (387) Starting Logitech Media Server (v7.9.1, 15186
    92686, Thu Feb 15 11:18:06 UTC 2018) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
    May 19 17:21:09 DietPi squeezeboxserver[989]: [18-05-19 17:20:56.5333] main::changeEffectiveUserAndGroup (1040) Warning: Logitech Med
    ia Server must not be run as root! Only do this if you know what you're doing!!
    May 19 17:25:51 DietPi squeezeboxserver[989]: /usr/share/squeezeboxserver/Bin/armhf-linux/sox FAIL sox: `-' error writing output file
    : Broken pipe
    May 19 17:26:21 DietPi squeezeboxserver[989]: /usr/share/squeezeboxserver/Bin/armhf-linux/sox FAIL sox: `-' error writing output file
    : Broken pipe

  5. #15
    I have solved the problem. My brother have got one Allo Usbridge with Sparky board which installed with Squeezeboxserver and Squeezelite. It is also running Dietpi and can play internet radio without any issue.

    So I have checked and the different is due to the error.log and scanner.log files have to set with root user and root usergroup as shown below, where in my rpi both files are with squeezeboxserver user and nogroup usergroup:

    Code:
    root@DietPi:/var/log/squeezeboxserver# ls -altr
    total 0
    -rwxrwxr-x 1 root             root    786 May 19 22:23 error.log
    -rwxrwxr-x 1 squeezeboxserver nogroup   0 Apr 21 23:52 perfmon.log
    -rwxrwxr-x 1 root             root      0 May  8 16:19 scanner.log
    -rwxrwxr-x 1 squeezeboxserver nogroup   0 Apr 21 23:53 server.log

  6. #16
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    16,146
    Quote Originally Posted by Lateboomer View Post
    I have solved the problem. My brother have got one Allo Usbridge with Sparky board which installed with Squeezeboxserver and Squeezelite. It is also running Dietpi and can play internet radio without any issue.

    So I have checked and the different is due to the error.log and scanner.log files have to set with root user and root usergroup as shown below, where in my rpi both files are with squeezeboxserver user and nogroup usergroup:

    Code:
    root@DietPi:/var/log/squeezeboxserver# ls -altr
    total 0
    -rwxrwxr-x 1 root             root    786 May 19 22:23 error.log
    -rwxrwxr-x 1 squeezeboxserver nogroup   0 Apr 21 23:52 perfmon.log
    -rwxrwxr-x 1 root             root      0 May  8 16:19 scanner.log
    -rwxrwxr-x 1 squeezeboxserver nogroup   0 Apr 21 23:53 server.log

    Good that you got it working - from a "purist" point of view it is very wrong that log file have owner root as LMS is not supposed to run as root but that seems to be the choice (as well as changing server.log to error.log) of whoever created the DietPI build of LMS.

  7. #17
    After I back from my brother's place and had changed error.log and scanner.log to root user and usergroup, I found out internet Radio didn't work again. The error.log showed "squeezenetwork error... unable to get player SN".

    So I tried to go to Setttings > mysqueezebox.com and re-keyed in again username and password but still it didn't work, even I tried to restart the router/switch.

    Finally I got to insert a switch
    Code:
    --nomysqueezebox
    to the
    Code:
    squeezeboxserver.service
    to disable all mysb.com integration then only the internet Radio worked.

    Now the output of the error.log (which functions as server.log):

    Code:
    root@DietPi:/var/log/squeezeboxserver# cat error.log
    [18-05-20 14:34:32.2023] main::init (387) Starting Logitech Media Server (v7.9.1, 1518692686, Thu Feb 15 11:18:06 UTC 2018) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
    [18-05-20 14:34:32.2353] main::changeEffectiveUserAndGroup (1040) Warning: Logitech Media Server must not be run as root! Only do this if you know what you're doing!!
    [18-05-20 14:34:33.4125] Slim::Utils::IPDetect::_init (140) Warning: Couldn't call connect() - falling back to 127.0.0.1
    root@DietPi:/var/log/squeezeboxserver# cat error.log
    [18-05-20 14:34:32.2023] main::init (387) Starting Logitech Media Server (v7.9.1, 1518692686, Thu Feb 15 11:18:06 UTC 2018) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
    [18-05-20 14:34:32.2353] main::changeEffectiveUserAndGroup (1040) Warning: Logitech Media Server must not be run as root! Only do this if you know what you're doing!!
    [18-05-20 14:34:33.4125] Slim::Utils::IPDetect::_init (140) Warning: Couldn't call connect() - falling back to 127.0.0.1
    [18-05-20 14:46:23.0483] Slim::Utils::Misc::msg (1250) Warning: [14:46:23.0466] Image::Scale libjpeg error: Corrupt JPEG data: 12 extraneous bytes before marker 0xd9 (/mnt/media/usbmusic/Various Artists/STS/Incredible Music and Recordings Vol 1/01 When Things Go Wrong.wav)
    However, everything is working fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •