Home of the Squeezebox™ & Transporter® network music players.
Page 24 of 24 FirstFirst ... 14222324
Results 231 to 238 of 238
  1. #231
    Junior Member
    Join Date
    Aug 2018
    Posts
    12
    Thanks Marco.
    I tried the following in the convert.conf file (copying from from wav settings) but it is not working
    mp3 mp3 * *
    # D RESAMPLE=-r %d, F noArgs, R noArgs
    [sox] -q -t wav $FILE$ -t wav -b 16 --buffer 8192 - loudness -15 65 rate -v -I -b 99.6 44100
    [Note loudness is high -ve value just for my testing]

    Tried replacing wav by mp3 in the command - it goes to mp3 mp3 transcode * command
    I added the [sox] command in that transcode section, again it won't work.

    Not sure if I am missing something. Any other clue?
    Thanks



    Quote Originally Posted by marcoc1712 View Post
    Thanks for your appreciation, but merit is mainly by SOX, C-3PO is just a sort of an interface over it. I do believe that, in your lucky situation, if I well remember, loudness is all you need, but I, like many, still need some deeper correction in my room and for that duty, the equalizer built in sox is very, very good. I'm now having a closer look to the convolver (in order to apply FIR Filters produced by other tools) and it looks promising. What I miss is time...

    About mp3, no, I did not want to worry about lossy formats when first writing C-3PO for server-side transcoding and resampling, so it is not possible, what you could do is apply the adequate sox command to the convert.conf command you actually use to play mp3.

  2. #232
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    671
    Quote Originally Posted by devgcl View Post
    Thanks Marco.
    I tried the following in the convert.conf file (copying from from wav settings) but it is not working
    mp3 mp3 * *
    # D RESAMPLE=-r %d, F noArgs, R noArgs
    [sox] -q -t wav $FILE$ -t wav -b 16 --buffer 8192 - loudness -15 65 rate -v -I -b 99.6 44100
    [Note loudness is high -ve value just for my testing]

    Tried replacing wav by mp3 in the command - it goes to mp3 mp3 transcode * command
    I added the [sox] command in that transcode section, again it won't work.

    Not sure if I am missing something. Any other clue?
    Thanks
    you miss the part that converts mp3 to pcm, something like this:

    mp3 wav * *
    # FR
    [lame] --mp3input --decode -t --silent $FILE$ - | [sox] -q -t wav - -t wav -b 16 --buffer 8192 - loudness -15 65 rate -v -I -b 99.6 44100

    Not sure is correct, but it should work.
    Last edited by marcoc1712; 2018-11-11 at 03:24.
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  3. #233
    Junior Member
    Join Date
    Aug 2018
    Posts
    12
    Unfortunately it did not work. mp3 file is not playing... looks like it may not be possible to apply the same for mp3 files.

    Quote Originally Posted by marcoc1712 View Post
    you miss the part that converts mp3 to pcm, something like this:

    mp3 wav * *
    # FR
    [lame] --mp3input --decode -t --silent $FILE$ - | [sox] -q -t wav - -t wav -b 16 --buffer 8192 - loudness -15 65 rate -v -I -b 99.6 44100

    Not sure is correct, but it should work.

  4. #234
    Senior Member Ge Ba's Avatar
    Join Date
    Apr 2017
    Location
    Switzerland
    Posts
    122
    Quote Originally Posted by devgcl View Post
    Unfortunately it did not work. mp3 file is not playing... looks like it may not be possible to apply the same for mp3 files.
    Is lame properly installed? Which version of sox do you have? Newest version can decode mp3 without lame.
    Server: LMS 7.9.2 - 0011.1527861596 on Synology DS216Play. SOX mansr ARMv7 & C-3PO.
    Players: SB Radio, RPi 3B+, 7ĺĺ Touch, pCP @Marshall Acton. Multiroom HiFi: Denon AVR-X4000, AVM M30 @Nubert NuLine/NuVero 5.1+2

  5. #235
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    671
    Quote Originally Posted by devgcl View Post
    Unfortunately it did not work. mp3 file is not playing... looks like it may not be possible to apply the same for mp3 files.
    I could not test it today, but the aim of that command is first to decode mp3 to WAV using lame then 'pipe' SOX effects, probablty there are errors in the command line but is the way to go, try the line from command line and remove --silent and -q to debug it.
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  6. #236
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    671
    Quote Originally Posted by Ge Ba View Post
    Is lame properly installed? Which version of sox do you have? Newest version can decode mp3 without lame.
    IN this case, you could probably remove the firtst part and use something like:

    [sox] -q -t mp3- -t wav - loudness -15 65 rate -v -I -b 99.6 44100
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  7. #237
    Senior Member
    Join Date
    Nov 2010
    Location
    Hertfordshire, UK
    Posts
    2,857
    Quote Originally Posted by PasTim View Post
    I've already got a systemd way to start squeezelite. The weird issue is that if I run it as an ordinary user (manually, or systemd) it runs OK. If I run it as localplayer (ie as squeezeboxserver) it times out on the alsa device every time. This did not happen without the alsa equalizer. Running as localplayer or at startup I get endless timeouts.

    Changing my systemd service to run as an ordinary user, it works, so I can bow test it. After a few brief tests it's useful. I now need to take some time to set it right for my ears and heaphones.

    Localplayer log (lots of this):
    Code:
    Failed to open controls file:/usr/share/squeezeboxserver/.alsaequal.bin.
    [10:36:33.999059] output_thread:663 waiting for device equal to return
    [10:36:38.999927] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC1D0p' failed (-16)
    [10:36:39.000054] output_thread:663 waiting for device equal to return
    [10:36:40.165305] output_flush:424 flush output buffer
    [10:36:44.000863] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC1D0p' failed (-16)
    Running at startup (systemd) I get lots of:
    Code:
    12:45:46.574071] output_thread:663 waiting for device equal to return
    [12:45:51.002260] process:526 strm
    [12:45:51.002430] process_strm:272 strm command t
    [12:45:51.002508] sendSTAT:187 STAT: STMt
    [12:45:51.574835] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC1D0p' failed (-16)
    [12:45:51.574983] output_thread:663 waiting for device equal to return
    [12:45:55.003294] process:526 strm
    [12:45:55.003481] process_strm:272 strm command t
    [12:45:55.003566] sendSTAT:187 STAT: STMt
    [12:45:56.575701] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC1D0p' failed (-16)
    [12:45:56.575851] output_thread:663 waiting for device equal to return
    [12:45:59.000763] process:526 strm
    [12:45:59.000937] process_strm:272 strm command t
    [12:45:59.001015] sendSTAT:187 STAT: STMt
    [12:46:01.576564] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC1D0p' failed (-16)
    I've now found the source of the problem running squeezelite under user squeezeboxserver. It needs the alsa equalization definitions file .alsaequal.bin to be in /usr/share/squeezeboxserver. All a bit obvious really. I can now create an equalization set-up as a normal user, and then copy to the squeezeboxserver directory.

    This works both for squeezelite as a systemd service, and for localplayer (using the latest squeezelite), both running under user squeezeboxserver.

    The alsa equalizer does work. I suspect my ordinary headphones aren't as good as the ones with a built-in equalizer, so I'll continue normal listening with the latter connected by USB. However, I do now have the option to listen with other devices modified using the alsa equalizer, which is a relief for me (I like to have backups for everything...).
    LMS 7.9.2 on VortexBox Midi box, Xubuntu 18.04, FLACs 16->24 bit, 44.1->192kbps. 2 Touchs & EDO.
    LMS plugin UPnP/DLNA Bridge to MF M1 CLiC (A308CR amp & ESLs) & Marantz CR603 UPnP renderers.
    Also Minimserver & Upplay to same & to upmpdcli/mpd PC renderers.
    Squeezelite to Meridian USB Explorer DAC to PC speakers/headphones.
    Wireless Xubuntu 18.04 laptop firefox/upplay or Android 'phone with Squeeze-Commander/BubbleUPnP controls LMS/Minimserver.

  8. #238
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    671
    Quote Originally Posted by PasTim View Post
    I've now found the source of the problem running squeezelite under user squeezeboxserver. It needs the alsa equalization definitions file .alsaequal.bin to be in /usr/share/squeezeboxserver. All a bit obvious really. I can now create an equalization set-up as a normal user, and then copy to the squeezeboxserver directory.

    This works both for squeezelite as a systemd service, and for localplayer (using the latest squeezelite), both running under user squeezeboxserver.

    The alsa equalizer does work. I suspect my ordinary headphones aren't as good as the ones with a built-in equalizer, so I'll continue normal listening with the latter connected by USB. However, I do now have the option to listen with other devices modified using the alsa equalizer, which is a relief for me (I like to have backups for everything...).
    Good finding!
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

Posting Permissions

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