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 3 users Like Gigipack's post:
  • vinaymoturi, 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

#8
I realize this is an old thread.     Can someone tell me,  does this improve sound?  If it's not originaly in 24 bit,  does up-sampling to 24 bit increase fidelity?
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
Howto setup resampling in Logitech Media...
Last Post: Coacharnold
18-Nov-2024 12:06 AM
» Replies: 7
» Views: 5807
Dropping Measurements, Hello High-End.
Last Post: agent_kith
26-Oct-2024 09:02 AM
» Replies: 12
» Views: 451
Very happy to have Sankeoil......! mpd w...
Last Post: run51
24-Oct-2024 05:35 AM
» Replies: 9
» Views: 1684
SO no soundcard detected - RPI Pi4 snake...
Last Post: run51
21-Oct-2024 10:55 PM
» Replies: 4
» Views: 110
download
Last Post: Snoopy8
19-Oct-2024 05:52 AM
» Replies: 1
» Views: 110
Full proces to instal snakeiol 100% work...
Last Post: audioluthier
11-Oct-2024 02:32 AM
» Replies: 9
» Views: 344
A network protocol designed for CAS
Last Post: hkphantomgtr
10-Oct-2024 09:48 PM
» Replies: 0
» Views: 87
CAS with "Single Core"
Last Post: hkphantomgtr
06-Oct-2024 08:32 AM
» Replies: 2
» Views: 121
MPD player not working
Last Post: Snoopy8
27-Sep-2024 11:54 AM
» Replies: 7
» Views: 225
LMS playing DFF files sampling rate
Last Post: Snoopy8
16-Sep-2024 07:45 PM
» Replies: 5
» Views: 161

[-]
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.