Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS
philippe_44 wrote: > That would explain b/c the request range last byte is > > Code: > > > $track->audio_offset + $track->audio_size - 1 if $track->audio_size; > > > > On purpose, it is not the content_length in the server response b/c a > file might have all sort of trailing crap. Now, if there is an issue > on the server and they have a wrong mp4 header, the track's audio_size > might be incorrect and I'll shoot beyong the content_length. I can > harden that a bit and take the smallest of contentLength (if any) and > $track->audio_offset + $track->audio_size Thank you for the explanation. I'm a bit confused how that all works on a variable bit rate file. Take this example where we are having the problem : The (verified) content length is : Code: "content-length"=> 64_062_386, Code: LMS reads the MP4 headers as such : Code: my $a = { audio_offset => 931_526, audio_size=> 63_180_833, avg_bitrate => 46_792, compatible_brands => ["isom", "M4A ", "mp42"], dlna_profile => "AAC_ISO_192", fh=> bless(\*File::Temp::$fh, "File::Temp"), file_size => 931_542, jenkins_hash => "1280117999", major_brand => "M4A ", minor_version => 1, mv_timescale => 600, processors=> { aac => sub { "???" } }, samplerate=> 22_050, song_length_ms=> 10_800_020, tracks=> [ { audio_object_type => 2, audio_type=> 64, bits_per_sample => 16, channels => 2, duration => 10_800_020, encoding => "mp4a", handler_name => "SoundHandler", handler_type => "soun", id=> 1, max_bitrate => 51_944, samplerate=> 22_050, }, ], }; So, 931526 + 63180833 = 64,112,359 which is obviously greater than size of the file. Which is why we are getting the Range error. But how does it work out the audio size? Does the average bit rate come from the Mp4 header or is it worked out from a sample?If it's the latter would that be accurate enough to be used for the Range calculation? Stuart McLean EXPECTINGTOFLY PLUGINS : - *BBC Sounds* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin - *Virgin Radio (UK)* : https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin - *Times Radio* : https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN - *Global Player (UK)* : https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin For BBC Sounds help see the 'BBC Sounds Wiki' (https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki). expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=115070 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Local Player/Squeezelite Crashing
mherger wrote: > > No, I don't, but I am running TrackStat so am wondering if it might > > somehow be related to that - that's the only thing I can think of > that > > might be accessing the database intermittently that might cause a > train > > wreck. I do have a plug-in I'm running that inserts little jingles > and > > voicers and such but I don't think it writes anything, it's just > getting > > its data from the playlists. > > If those jingles come as file:// URLs then they will be scanned and > stored in the database. You could use the tmp:// protocol handler to > prevent this behaviour. The jingles are in LMS' library and the plugin adds them with 'playlistcontrol', 'cmd:insert', 'track_id:' so I wouldn't have expected LMS to scan them (again). 'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | TUI | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ... 'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ... Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808 View this thread: http://forums.slimdevices.com/showthread.php?t=115065 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS
expectingtofly wrote: > Thank you for the explanation. I'm a bit confused how that all works > on a variable bit rate file. Take this example where we are having the > problem : > > The (verified) content length is : > > Code: > > > "content-length"=> 64_062_386, > > Code: > > > > LMS reads the MP4 headers as such : > > Code: > > > my $a = { > audio_offset => 931_526, > audio_size=> 63_180_833, > avg_bitrate => 46_792, > compatible_brands => ["isom", "M4A ", "mp42"], > dlna_profile => "AAC_ISO_192", > fh=> bless(\*File::Temp::$fh, "File::Temp"), > file_size => 931_542, > jenkins_hash => "1280117999", > major_brand => "M4A ", > minor_version => 1, > mv_timescale => 600, > processors=> { aac => sub { "???" } }, > samplerate=> 22_050, > song_length_ms=> 10_800_020, > tracks=> [ > { > audio_object_type => 2, > audio_type=> 64, > bits_per_sample => 16, > channels => 2, > duration => 10_800_020, > encoding => "mp4a", > handler_name => "SoundHandler", > handler_type => "soun", > id=> 1, > max_bitrate => 51_944, > samplerate=> 22_050, > }, > ], > }; > > > > > So, 931526 + 63180833 = 64,112,359 which is obviously greater than size of the file. Which is why we are getting the Range error. > > But how does it work out the audio size? Does the average bit rate come from the Mp4 header or is it worked out from a sample?If it's the latter, would that be accurate enough to be used for the Range calculation? > > [EDIT] In fact thinking about it, would it ever be accurate enough even if it did come from the MP4 header? > > > > I will recheck mp4 specs but AFAIR, the audio size is not at all from the average but rate but is indicated in the file itself, by the size of the atom the contains the audio data (mdat), so it is an exact value that is set by the encoder itself. This is for example how you parse a mp4 with header at the end. If you reach the mdat atom before the header, then you jump by the mdat audio size. > > The most likely hypothesis is an error in the encoder or in the HTTP content_length. All other mp4 content provider work like that, and there are a few now, so I think if there was an issue we would have seen it already. LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=115070 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS
philippe_44 wrote: > I will recheck mp4 specs but AFAIR, the audio size is not at all from > the average but rate but is indicated in the file itself, by the size of > the atom the contains the audio data (mdat), so it is an exact value > that is set by the encoder itself. This is for example how you parse a > mp4 with header at the end. If you reach the mdat atom before the > header, then you jump by the mdat audio size. > > The most likely hypothesis is an error in the encoder or in the HTTP > content_length. All other mp4 content provider work like that, and there > are a few now, so I think if there was an issue we would have seen it > already. Thanks for the explanation, I can see that now. Yes, it looks like an error in their encoder as the content length is accurate. Also if I use exiftool on a downloaded version of the file, it reports very slightly different size values (but equally problematic!) as LMS : Code: Media Time Scale: 22050 Media Duration : 3:00:00 Media Language Code : und Handler Type: Audio Track Handler Description : SoundHandler Balance : 0 Audio Format: mp4a Audio Channels : 2 Audio Bits Per Sample : 16 Audio Sample Rate : 22050 Movie Data Size : 63182628 Movie Data Offset : 931550 Avg Bitrate : 46.8 kbps So, in all in all, we know why its failing, but unless I can open up a dialogue with them, we can't really do anything about this (without opening up other potential problems), as these streams work on their website and in their app which is probably the only places they care about. Stuart McLean EXPECTINGTOFLY PLUGINS : - *BBC Sounds* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin - *Virgin Radio (UK)* : https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin - *Times Radio* : https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN - *Global Player (UK)* : https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin For BBC Sounds help see the 'BBC Sounds Wiki' (https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki). expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=115070 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
[SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
I run LMS on a Win 7 x86 PC with Intel i3, 4GB RAM, and SSD system drive. Would adding another 4GB of RAM let my library rescan/rebuilds (~100k tracks) run faster? In Settings > Advanced > Performance, my "Database Memory Config" is set to Maximum. Thanks. Apesbrain's Profile: http://forums.slimdevices.com/member.php?userid=738 View this thread: http://forums.slimdevices.com/showthread.php?t=115076 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] SSOTS still needed on QNAP 4.2.6 and QLogitechMediaServer v2.2.1 (=LMS 8.3.0) ??
Thanks for info. I have a QNAP from over ten years ago - which was still on the original firmware until last month. So I am still getting familiar with the new features of the Web GUI which it now has. Needless to say it is so much easier to use than what came before. Back in the day you had "QPKG" to install Apps, and that was about it. I understand now why the legacy SSOTS functionality is no longer required - superseded by standard out-of-box controls. Best regards :D daksol's Profile: http://forums.slimdevices.com/member.php?userid=52603 View this thread: http://forums.slimdevices.com/showthread.php?t=115056 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
[SlimDevices: SqueezeCenter] Problems with RadioNet since yesterday or the day before
I have a problem playing anything (I usually listen to) from RadioNet I have several stations in my favourites when I press one to play nothing happens. I have turned on "Internet Radio" loggin set and added debug on RadioNet plugin. I get no errors in the log just: Code: [21-09-02 13:24:56.8346] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 104.26.5.64 for www.radio.net [21-09-02 13:24:56.9068] Plugins::RadioNet::PlayableParser::parse (43) parse - https://www.radio.net/s/hirschmilch-chillout type=STATION I can play https://www.radio.net/s/hirschmilch-chillout from a browser fine I also notice that the "Reliable (HTTPS)" plugin is now incompatble with my version (below) of LMS is this anything to do with RadioNet not playing ? Logitech Media Server Version: 8.2.1 - 1628483320 @ Mon Aug 9 06:41:20 CEST 2021 Hostname: BLAH Server IP Address: BLAH Server HTTP Port Number: 9000 Operating system: Red Hat - EN - utf8 Platform Architecture: x86_64-linux Perl Version: 5.26.3 - x86_64-linux-thread-multi Audio::Scan: 0.95 IO::Socket::SSL: 2.066 Database Version: DBD::SQLite 1.58 (sqlite 3.22.0) Jeff *Want a webapp ?* Get SqueezeLite-X ! https://forums.slimdevices.com/showthread.php?108550-Announce-Squeezelite-X&p=903953&viewfull=1#post903953 Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290 View this thread: http://forums.slimdevices.com/showthread.php?t=115077 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Problems with RadioNet since yesterday or the day before
Jeff07971 wrote: > I have a problem playing anything (I usually listen to) from RadioNet > > I have several stations in my favourites when I press one to play > nothing happens. > > I have turned on "Internet Radio" loggin set and added debug on RadioNet > plugin. > > I get no errors in the log just: > > Code: > > > [21-09-02 13:24:56.8346] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 104.26.5.64 for www.radio.net > [21-09-02 13:24:56.9068] Plugins::RadioNet::PlayableParser::parse (43) parse - https://www.radio.net/s/hirschmilch-chillout type=STATION > > > > > I can play https://www.radio.net/s/hirschmilch-chillout from a browser > fine > > I also notice that the "Reliable (HTTPS)" plugin is now incompatble > with my version (below) of LMS is this anything to do with RadioNet > not playing ? > > Logitech Media Server Version: 8.2.1 - 1628483320 @ Mon Aug 9 06:41:20 > CEST 2021 > Hostname: BLAH > Server IP Address: BLAH > Server HTTP Port Number: 9000 > Operating system: Red Hat - EN - utf8 > Platform Architecture: x86_64-linux > Perl Version: 5.26.3 - x86_64-linux-thread-multi > Audio::Scan: 0.95 > IO::Socket::SSL: 2.066 > Database Version: DBD::SQLite 1.58 (sqlite 3.22.0) > > JeffThere was an update to Radionet recently, maybe you need to update your favourites. https://forums.slimdevices.com/showthread.php?p=1031677 Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=115077 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Problems with RadioNet since yesterday or the day before
slartibartfast wrote: > There was an update to Radionet recently, maybe you need to update your > favourites. > https://forums.slimdevices.com/showthread.php?p=1031677 > > Sent from my Pixel 3a using Tapatalk Thanks Slartibartfast I saw this and checked however its not only the favourites that do not work its also straight from RadioNet Jeff EDIT: I am on v1.5 *Want a webapp ?* Get SqueezeLite-X ! https://forums.slimdevices.com/showthread.php?108550-Announce-Squeezelite-X&p=903953&viewfull=1#post903953 Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290 View this thread: http://forums.slimdevices.com/showthread.php?t=115077 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
I run LMS on a Win 7 x86 PC with Intel i3, 4GB RAM, and SSD system drive. Would adding another 4GB of RAM let my library rescan/rebuilds (~100k tracks) run faster? What is the baseline? How long does it take? Which parts of the scan take how long? In Settings > Advanced > Performance, my "Database Memory Config" is set to Maximum. Thanks. 4GB certainly isn't much for a Windows system. Monitor RAM usage while a scan is running. If Windows starts swapping, then yes, more RAM should help. Or install Linux :-). But looking into where the scanner is spending most of the time might be more helpful. ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Problems with RadioNet since yesterday or the day before
Jeff07971 wrote: > Thanks Slartibartfast > > I saw this and checked however its not only the favourites that do not > work its also straight from RadioNet > > Jeff > > EDIT: I am on v1.5Hmm I see the same. I can't play anything from Radionet. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=115077 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Problems with RadioNet since yesterday or the day before
slartibartfast wrote: > Hmm I see the same. I can't play anything from Radionet. > > Sent from my Pixel 3a using Tapatalk Thanks for verifying, not just me then ! Jeff *Want a webapp ?* Get SqueezeLite-X ! https://forums.slimdevices.com/showthread.php?108550-Announce-Squeezelite-X&p=903953&viewfull=1#post903953 Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290 View this thread: http://forums.slimdevices.com/showthread.php?t=115077 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Problems with RadioNet since yesterday or the day before
Thanks for verifying, not just me then ! Didn't bpa confirm a few days ago that they had changed something which broke the plugin? ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Problems with RadioNet since yesterday or the day before
mherger wrote: > > Thanks for verifying, not just me then ! > > Didn't bpa confirm a few days ago that they had changed something which > > broke the plugin? I think Bpa fixed this, thats the reason for v1.5 > > 2021-08-28, 08:02 > RadioNet V1.5 available > RadioNet V1.5 is now available to fix the problem that broke V1.4. > Maybe I should repost in that thread Jeff *Want a webapp ?* Get SqueezeLite-X ! https://forums.slimdevices.com/showthread.php?108550-Announce-Squeezelite-X&p=903953&viewfull=1#post903953 Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290 View this thread: http://forums.slimdevices.com/showthread.php?t=115077 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
Hi Michael, thanks for the reply. Here are my timings for a rescan: [image: https://i.imgur.com/N94jZXZ.jpg] A full rebuild typically takes around 45 minutes. I'm looking for confirmation that this performance is pretty much what one might expect for a library of 100k tracks. Thanks. Apesbrain's Profile: http://forums.slimdevices.com/member.php?userid=738 View this thread: http://forums.slimdevices.com/showthread.php?t=115076 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
A full rebuild typically takes around 45 minutes. Then you should provide the information for a full scan... ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
>From experience, I'd say: A faster CPU decreases the scan time. More RAM does help, but only if it is already maxed out during the scan. Having the library on an SSD should help, but I didn't see any difference when I tested it some time ago. I assume it was the CPU that just couldn't keep up. QLMS 8.3@2.21 x64 (digimaster) with perl 5.30.1 / QNAP 469L QTS 4.3.4 dolodobendan's Profile: http://forums.slimdevices.com/member.php?userid=67663 View this thread: http://forums.slimdevices.com/showthread.php?t=115076 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
Apesbrain wrote: > Hi Michael, thanks for the reply. Here are my timings for a rescan: > > [image: https://i.imgur.com/N94jZXZ.jpg] > > A full rebuild typically takes around 45 minutes. > > I'm looking for confirmation that this performance is pretty much what > one might expect for a library of 100k tracks. Thanks. That's three hours faster than on my 3GB NAS with 130k tracks. (Settings/Information reads "The server has finished scanning your media library. Total Time: 01:47:43" which would be two hours faster than normal, so I assume the FTS update from a few weeks ago triggered a new scan but didn't update the date.) QLMS 8.3@2.21 x64 (digimaster) with perl 5.30.1 / QNAP 469L QTS 4.3.4 dolodobendan's Profile: http://forums.slimdevices.com/member.php?userid=67663 View this thread: http://forums.slimdevices.com/showthread.php?t=115076 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
That's three hours faster than on my 3GB NAS with 130k tracks. (Settings/Information reads "The server has finished scanning your media library. Total Time: 01:47:43" which would be two hours faster than normal, so I assume the FTS update from a few weeks ago triggered a new scan but didn't update the date.) It's a moot point to compare unless we have full scan step information. Eg. looking up artwork online can take a considerable amount of time. So does FTS. Without knowing where we spend the time we can't say what would improve the performance. ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] SSOTS still needed on QNAP 4.2.6 and QLogitechMediaServer v2.2.1 (=LMS 8.3.0) ??
daksol wrote: > Thanks for info. > > I have a QNAP from over ten years ago - which was still on the original > firmware until last month. > So I am still getting familiar with the new features of the Web GUI > which it now has. > > Needless to say it is so much easier to use than what came before. Back > in the day you had "QPKG" to install Apps, and that was about it. I remember, yes. Updating was a pain. With QLMS, all you have to do is restart QLMS and it will look for available updates. You can disable that feature in .qlms.conf. daksol wrote: > I understand now why the legacy SSOTS functionality is no longer > required - superseded by standard out-of-box controls. > > > Best regards :D Out-of-the-box by digimaster. :p QLMS 8.3@2.21 x64 (digimaster) with perl 5.30.1 / QNAP 469L QTS 4.3.4 dolodobendan's Profile: http://forums.slimdevices.com/member.php?userid=67663 View this thread: http://forums.slimdevices.com/showthread.php?t=115056 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
You're the pro. All I can say is: The scanning time increased exponentially when I maxed out the RAM during the scan. So I bought more. But of course, I didn't think of plugins etc., my bad. :) QLMS 8.3@2.21 x64 (digimaster) with perl 5.30.1 / QNAP 469L QTS 4.3.4 dolodobendan's Profile: http://forums.slimdevices.com/member.php?userid=67663 View this thread: http://forums.slimdevices.com/showthread.php?t=115076 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
mherger wrote: > Then you should provide the information for a full scan... Sorry, had to run one: [image: https://i.imgur.com/nFrvA3a.jpg] Apesbrain's Profile: http://forums.slimdevices.com/member.php?userid=738 View this thread: http://forums.slimdevices.com/showthread.php?t=115076 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
mherger wrote: Then you should provide the information for a full scan... Sorry, had to run one: Did you monitor memory usage? Both of the big chunks there are probably IO bound (reading files, writing to DB). But memory could help with caching... ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] [FreeBSD/XigmaNAS/TrueNAS] LogitechMediaServer Installation
New update which includes: - Perl updated to 5.34 - Updated CPAN modules Website https://audiodigitale.eu Contact me at: i...@audiodigitale.eu Simonef's Profile: http://forums.slimdevices.com/member.php?userid=67438 View this thread: http://forums.slimdevices.com/showthread.php?t=113909 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
mherger wrote: > Did you monitor memory usage? Seems ok: never exceeded 70% "Used Physical Memory" for all processes running during full rebuild. Typically 60% or slightly less: [image: https://i.imgur.com/XyUlR1d.jpg] scanner.exe at peak committing about 540MB of RAM. MsMpEng.exe seemed to be working hard during the "Scanning new music files" and "Pre-caching Artwork" stages, but no RAM impact. If that's virus scan on every file, I guess I wouldn't have expected that to be needed. Anyway, off topic. Apesbrain's Profile: http://forums.slimdevices.com/member.php?userid=738 View this thread: http://forums.slimdevices.com/showthread.php?t=115076 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS
expectingtofly wrote: > Thanks for the explanation, I can see that now. Yes, it looks like an > error in their encoder as the content length is accurate. Also if I > use exiftool on a downloaded version of the file, it reports very > slightly different size values (but equally problematic!) as LMS : > > Code: > > > Media Time Scale: 22050 > Media Duration : 3:00:00 > Media Language Code : und > Handler Type: Audio Track > Handler Description : SoundHandler > Balance : 0 > Audio Format: mp4a > Audio Channels : 2 > Audio Bits Per Sample : 16 > Audio Sample Rate : 22050 > Movie Data Size : 63182628 > Movie Data Offset : 931550 > Avg Bitrate : 46.8 kbps > > > > > So, in all in all, we know why its failing, but unless I can open up > a dialogue with them, we can't really do anything about this (without > opening up other potential problems), as these streams work on their > website and in their app which is probably the only places they care > about. Il will see if I can make a dirty patch that truncate audio_size if needed LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=115070 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS
philippe_44 wrote: > Il will see if I can make a dirty patch that truncate audio_size if > needed Many thanks for taking a look a this. Stuart McLean EXPECTINGTOFLY PLUGINS : - *BBC Sounds* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin - *Virgin Radio (UK)* : https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin - *Times Radio* : https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN - *Global Player (UK)* : https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin For BBC Sounds help see the 'BBC Sounds Wiki' (https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki). expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=115070 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Moving LMS to a new computer
Thanks Spider, excellent info. I have a Synology 412+ NAS that is dual core with 1gb RAM and LMS runs like doo-doo on it. Very very slow, even just when browsing the library with the iPeng app. Never use that LMS and instead have one installed on my Main PC. Touch is ethernet wired to a switch, but the switch is wifi (mesh) connected to my main PC. Not a problem with redbook files, but a little problematic with higher rez. 24-96 files will sometimes give me white noise if I am skipping between tracks, and 24-192 files get choked on by the Touch. I'm hoping a Pi that is ethernet connected to the Touch will solve this. RadioClash's Profile: http://forums.slimdevices.com/member.php?userid=2839 View this thread: http://forums.slimdevices.com/showthread.php?t=115002 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS
expectingtofly wrote: > Many thanks for taking a look a this. See here https://github.com/Logitech/slimserver/pull/655 if it solves the problem LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=115070 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS 8.0 problem? - Music folder > new albums not added to database without a scan.
slartibartfast wrote: > I think I have noted this before. After playing the album via BMF a new > and changed scan does not show that new tracks are being added but they > then appear in the library. Playing them via BMF is doing something but > not enough. > > Sent from my Pixel 3a using Tapatalk 12 months have elapsed since I started this post, still seeing the same scenario - Playing a newly ripped/added album and playing it via BMF does make it available via New Music, Artist or Album lists. A "new & changed" scan makes it available, although it doesn't show the tracks in the scan result (below). Latest 8.3 nightly on a Pi4/piCorePlayer. 35645 +---+ |Filename: scan.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=35645| +---+ *Server - LMS 8.3.0 *Pi4B 4GB/Argon one case/pCP 8.0.0 - 75K library, playlists & LMS cache on SSD (ntfs) *Study -* Pi4/pCP 8.0.0/Topping E30 DAC/Ruark MR1 Mk2 *Lounge* - Pi2/pCP 8.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5 *Dining Room* - Pi3B/pCP/Bluetooth/Echo Show 8 *Garage* - DAC32 > Edifier speakers *Spares* - 2xTouch, 1xSB Radio. 1xSB3, 6xRPi kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436 View this thread: http://forums.slimdevices.com/showthread.php?t=112634 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS 8.0 problem? - Music folder > new albums not added to database without a scan.
kidstypike wrote: > 12 months have elapsed since I started this post, still seeing the same > scenario - Playing a newly ripped/added album and playing it via BMF > does make it available via New Music, Artist or Album lists. A "new & > changed" scan makes it available, although it doesn't show the tracks in > the scan result (below). > > Latest 8.3 nightly on a Pi4/piCorePlayer. > > 35645I guess @mherger missed this when he came back from holiday last year. I assume you mean "playing it via BMF does NOT make it available via New Music, Artist or Album lists" Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112634 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
The main bottleneck during a scan is disk I/O (see' this post' (https://forums.slimdevices.com/showthread.php?99783-LMS-scan-performance&p=757581&viewfull=1#post757581) for details (right column)) (unless you have a really weird setup e.g. low-end single core ARM CPU with a high speed SSD) After that, it's CPU (which you'll probably never hit in a normal setup) Memory isn't really important (since the scan mostly writes to the database, making caching impossible) You could also try installing the DB Optimizer plugin, but I wouldn't expect much (if any) impact, as it's focused on improving run-time and not scan performance (plus one of the more interesting optimizations it enables is unavailable for Windows) Definitely exclude your music files from any antivirus scanning, though. 'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | TUI | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ... 'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ... Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808 View this thread: http://forums.slimdevices.com/showthread.php?t=115076 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS 8.0 problem? - Music folder > new albums not added to database without a scan.
slartibartfast wrote: > I guess @mherger missed this when he came back from holiday last year. I > assume you mean "playing it via BMF does NOT make it available via New > Music, Artist or Album lists" > > Sent from my Pixel 3a using Tapatalk Yes, should read "does *not* make it available". Post edited, thanks. *Server - LMS 8.3.0 *Pi4B 4GB/Argon one case/pCP 8.0.0 - 75K library, playlists & LMS cache on SSD (ntfs) *Study -* Pi4/pCP 8.0.0/Topping E30 DAC/Ruark MR1 Mk2 *Lounge* - Pi2/pCP 8.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5 *Dining Room* - Pi3B/pCP/Bluetooth/Echo Show 8 *Garage* - DAC32 > Edifier speakers *Spares* - 2xTouch, 1xSB Radio. 1xSB3, 6xRPi kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436 View this thread: http://forums.slimdevices.com/showthread.php?t=112634 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
Roland0 wrote: > Definitely exclude your music files from any antivirus scanning, though. Adding exemptions for .flac, .mp3, .ogg, .m4a, and .jpg reduced the total rebuild from 41 minutes to 32. Does not checking these files for malware introduce any risk? Thanks. Apesbrain's Profile: http://forums.slimdevices.com/member.php?userid=738 View this thread: http://forums.slimdevices.com/showthread.php?t=115076 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
The main bottleneck during a scan is disk I/O (see' this post' ... > Memory isn't really important (since the scan mostly writes to the > database, making caching impossible) I'm sorry to say that this is oversimplified. Many IO issues are addressed by using more memory (caching, buffers). There are too many variables you don't take into account: - memory base line: are we talking about a NAS or old Pi with 512MB of RAM or a PC with gigabytes of it - are we talking about SSD vs. USB2 connected HD? - I/O of what? Music file storage or DB cache location? - scanner plugins doing remote lookups - configuration of those plugins to use local caching or not - memory/caching can make a huge difference on I/O - number of playlists and playlist sizes (an important factor for the FTS indexing) - size of your online library (again with playlists of thousands of tracks) Ok, you could say that doing online lookups (library or covers or whatever) was I/O, too. But that's not what you meant. The "maximum memory" option I introduced as the result of a lot of scanner profiling. While you were right that it mostly addressed the IO bottleneck, it did so by throwing more memory at the scanner. Memory definitely makes a difference. If you look at the code you'll see that there are a lot of tweaks which would configure the DB connection differently in the scanner vs. server. More memory is being used in the scanner to limit the writes, while in the server it's used to limit the reads from disk. Therefore I'd say you can't generalize this problem without looking at the individual configuration. ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] How to decrease library rescan/rebuild time?
Definitely exclude your music files from any antivirus scanning, though. Adding exemptions for .flac, .mp3, .ogg, .m4a, and .jpg reduced the total rebuild from 41 minutes to 32. Does not checking these files for malware introduce any risk? Thanks. I don't think these file types are common targets of "traditional" viruses in that I'm not sure I've ever heard of viruses attaching buffer overflows or whatever when already active on a system. What media files can exploit are those buffer overflow vulnerabilities. But those most often are used by external attacks to get onto your machine in the first place. Eg. by feeding manipulated data to your player. But as long as your locally stored files were ripped yourself or aren't newly downloaded I believe you should be relatively save. ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS 8.0 problem? - Music folder > new albums not added to database without a scan.
kidstypike wrote: > 12 months have elapsed since I started this post, still seeing the same > scenario - Playing a newly ripped/added album and playing it via BMF > does *not* make it available via New Music, Artist or Album lists. A > "new & changed" scan makes it available, although it doesn't show the > tracks in the scan result (below). > > Latest 8.3 nightly on a Pi4/piCorePlayer. > > I can only repeat what I said last year: I am not experiencing this. I just browsed in Music Folder to a just-added album, and it now shows up in New Music. I did check before browsing in Music Folder; it wasn't in New Music then. A track from the album is playing now. I'm still running the same LMS version as you, and now I'm on the same architecture. But I'm using Raspberry Pi OS, not piCorePlayer. Logitech Media Server Version: 8.3.0 - 1629376548 @ Thu Aug 19 14:58:08 CEST 2021 Operating system: Debian - EN - utf8 Platform Architecture: armv7l-linux Perl Version: 5.28.1 - arm-linux-gnueabihf-thread-multi-64int Audio::Scan: 1.02 IO::Socket::SSL: 2.060 Database Version: DBD::SQLite 1.58 (sqlite 3.22.0) LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players, occasionally with SB Radio, Boom or Classic. RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008 View this thread: http://forums.slimdevices.com/showthread.php?t=112634 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS 8.0 problem? - Music folder > new albums not added to database without a scan.
12 months have elapsed since I started this post, still seeing the same scenario - Playing a newly ripped/added album and playing it via BMF does make it available via New Music, Artist or Album lists. A "new & changed" scan makes it available, although it doesn't show the tracks in the scan result (below). Haha... that thread slipped through the cracks while I was on vacation last year :-). What is everybody's "db memory" setting (Settings/Advanced/Performance)? And do you see this in all UIs or only the web UI? ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Problems with RadioNet since yesterday or the day before
I'm on vacation. I can't look at this issue at the moment. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=115077 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter