Howto setup resampling in Logitech Media Server
#1
Do you need upsampling your flac files ?

i just worked some hours, and i find this solution to upsampling flac files to 24/96 :

1 - Open your terminal and give the command :  

sudo touch /etc/squeezeboxserver/custom-convert.conf

2 - give the command :

sudo chmod 666 /etc/squeezeboxserver/custom-convert.conf

3 - edit the file :

sudo nano /etc/squeezeboxserver/custom-convert.conf

and then insert this code (make a copy and paste from here):

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 -b 98 -L -a 96000


exit and save the file

4 - Restart the service or reboot the pc :

sudo service logitechmediaserver restart

This work for me, the flac files are upsampled to 24/96. 
If you need others rate change the 24 and 96000 numbers with others.
The only thing that don't work is the Radio Paradise Flac service.
Somebody find the solution for upsampling also Radio Paradise Flac ?

By (sorry for my english Smile )

Gigi
[-] The following 2 users Like Gigipack's post:
  • mkysimes, agent_kith
Reply

#2
[Image: admire2.gif]
Noice! Something this good deserves it's own thread. Didn't know LMS can do that!

Opens up so many possibilities... e.g. Convolution filtering, Sox resampling with a million taps (@frednork).
(23-Apr-2019, 07:23 PM)Gigipack Wrote: The only thing that don't work is the Radio Paradise Flac service.
Somebody find the solution for upsampling also Radio Paradise Flac ?
Suspect the entry you created is for local FLAC. There should be a hook somewhere for streaming input. Hopefully that'll give you some ideas on where to look. Unfortunately right now I still have some stuffs at home I need to finish, so couldn't really investigate too deep into this.
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • mkysimes
Reply

#3
Kudos to Gigipack for the find. I stumbled upon this as well a little bit ago but was looking for an easier solution and stumbled upon a plugin for LMS called C3PO Transcoding helper:

https://forums.slimdevices.com/showthrea...ing-helper

It essentially edits the same file but does it through a graphical interface through the LMS control panel.

To install open your LMS web control and go to settings, then plugins. It should be listed under 3rd party plugins. Check the box and apply to install (like any other plugin). If it is not listed you would need to update your LMS to any version newer than the "latest official version" listed on Logitech's website. I run version 7.9.2. 

Once installed go back into settings, click in the player tab and click on the dropdown settings box which will probably say "basic settings". You will see "C-3PO Transcoding Helper" listed in there somewhere. Click on that and check the box to enable it and then click apply. 

Now you have access to a bunch of different settings that would be applied to the convert.conf file. Read the documentation for the plugin to get a full understanding as some of the options are not self explanatory.

I personally only use it to upsample (24/192) so I always uncheck the boxes for "convert" and "additional effects" to save some overhead. Anyone using a RPi3+ or something similarly anemic in the processing department should not expect to be able to run the highest sample rate with the best quality unless you have the server itself running on a different, more powerful computer and use the RPi as the Squeezelite. Also, I believe this only works with the R2 version of Squeezlite, but I could be wrong on that.

Wow, this post got long winded! I never got to listening impressions and all that but I'll save that for another day. I also have some info on upsampling with Mpd but I'll start a new thread for that. Again, thanks Gigapack for the thread and Agent_Kith for this awesome software!
[-] The following 1 user Likes mkysimes's post:
  • agent_kith
Reply

#4
I tried the  C-3PO plugin, and in effect is the best solution for change the custom-convert.conf file
in  a guided way !!!

I installed the Snakeoil 1.1.6 firmware (thank agent_kith for the new work), i upgraded the ubuntu, remove
my edited file custom-convert.conf and then installed the C-3PO plugin.
After configuring the parameters, all is wonderfully functioning, many thanks to  mkysimes  for this suggestion !

Gigipack
[-] The following 2 users Like Gigipack's post:
  • mkysimes, agent_kith
Reply

#5
The post is already a few days old, but if you are interested in resampling/upsampling and much more you should have a look here
https://soundcheck-audio.blogspot.com/
Reply

#6
(23-Apr-2019, 07:23 PM)Gigipack Wrote: Do you need upsampling your flac files ?

i just worked some hours, and i find this solution to upsampling flac files to 24/96 :

1 - Open your terminal and give the command :  

sudo touch /etc/squeezeboxserver/custom-convert.conf

2 - give the command :

sudo chmod 666 /etc/squeezeboxserver/custom-convert.conf

3 - edit the file :

sudo nano /etc/squeezeboxserver/custom-convert.conf

and then insert this code (make a copy and paste from here):

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 -b 98 -L -a 96000


exit and save the file

4 - Restart the service or reboot the pc :

sudo service logitechmediaserver restart

This work for me, the flac files are upsampled to 24/96. 
If you need others rate change the 24 and 96000 numbers with others.
The only thing that don't work is the Radio Paradise Flac service.
Somebody find the solution for upsampling also Radio Paradise Flac ?

By (sorry for my english Smile )

Gigi

Is Flac to Wav possible with this approach?
Reply

#7
Iam using this plugin, how to force to synced resampling ?  In seek mode it not work (same frequency as source) and in STDIN mode works , but only resample to max frequency ? i need correct synced upsampling eg. 44.1 to 176 and 48 to 192k, not everything to 192k , how to achieve that ?

Snakeoil 1.1.9, Ubuntu 16, LMS v8 / Squeezelite R2
Reply



Bookmarks



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
ZimaBoard 2x NIC, 2x SATA, 2x USB, 1x PC...
Last Post: agent_kith
26-Mar-2024 12:04 PM
» Replies: 13
» Views: 612
LMS Upgrade ?
Last Post: uglymusic
15-Mar-2024 09:14 PM
» Replies: 7
» Views: 149
Squeezebox shutdown
Last Post: TripleX
13-Mar-2024 07:34 AM
» Replies: 4
» Views: 69
MP3 Not Playing
Last Post: Coacharnold
10-Mar-2024 10:25 AM
» Replies: 3
» Views: 52
Fail to install myMPD
Last Post: hkphantomgtr
03-Mar-2024 08:45 PM
» Replies: 9
» Views: 195
Intel HFI Driver Can "Save Tons Of CPU C...
Last Post: hkphantomgtr
28-Feb-2024 09:15 PM
» Replies: 0
» Views: 41
Announcing Snakeoil Measurements 1.3.0
Last Post: agent_kith
26-Feb-2024 10:02 PM
» Replies: 94
» Views: 4137
More Problems with Squeezelite in 1.3
Last Post: Coacharnold
17-Feb-2024 09:47 PM
» Replies: 2
» Views: 69
Snakeoil Music server & Snakeoil its own...
Last Post: Snoopy8
17-Feb-2024 11:20 AM
» Replies: 8
» Views: 364
RoonBridge (64 bit only)
Last Post: scrarfussi
15-Feb-2024 08:26 PM
» Replies: 3
» Views: 4123

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.