INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MC25 and Pi4  (Read 6786 times)

gabeg

  • World Citizen
  • ***
  • Posts: 126
MC25 and Pi4
« on: September 09, 2019, 09:53:28 am »

Hi all,

I successfully installed media center on my Pi4 4gb and for the most part everything seems to work but two things are puzzling me:

I can’t seem to get memory playback to work properly. No matter which variation I pick the file plays but does not seem to be stored in memory. Even for big files the memory storage used by the pi doesn’t increase. Plus if I unplug the pi from my network, the playback stops pretty quickly (I’m using the pi as a DLNA renderer).  I have not had the issue with my Nuc Id when used as a renderer.

The other thing is that with big files I find I need to check off the disable hard drive as buffer option in order to play without glitches.  I assume this may be normal because of the pi reliance on sd cards but can that be confirmed?

Thanks.
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #1 on: September 10, 2019, 06:05:27 pm »

Anyone?
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #2 on: September 12, 2019, 09:12:42 am »

Hi all,

I successfully installed media center on my Pi4 4gb and for the most part everything seems to work but two things are puzzling me:

I can’t seem to get memory playback to work properly. No matter which variation I pick the file plays but does not seem to be stored in memory. Even for big files the memory storage used by the pi doesn’t increase. Plus if I unplug the pi from my network, the playback stops pretty quickly (I’m using the pi as a DLNA renderer).  I have not had the issue with my Nuc Id when used as a renderer.

The other thing is that with big files I find I need to check off the disable hard drive as buffer option in order to play without glitches.  I assume this may be normal because of the pi reliance on sd cards but can that be confirmed?

Thanks.

Memory playback is generic and should work fine. We'll do some tests on that here. What is your memory configuration?
The disabling buffering to the sdcard is very important when running on the Pi. You really don't want to be writing to the sdcard. They are pretty slow and will eventually wear out.
The down side is that disabling buffering will reduce the ability to seek in some streams.

Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #3 on: September 12, 2019, 09:38:43 am »

Running it on a pi4 4gb.  Tried on the 3B+ but same difference.

Thanks!
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #4 on: September 17, 2019, 10:20:08 pm »

Just got my idpi card and can confirm memory play isn't working there as well.  On my standard pi install I downgraded down to 23 and can confirm it works there but not with 25.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #5 on: September 19, 2019, 09:29:12 am »

Which memory playback mode? Full file, Full album or decoded?
If not set to full album, what are your file types?
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #6 on: September 19, 2019, 10:12:04 am »

Just tested on the same version as on you pi and I can confirm that it is indeed working properly.
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #7 on: September 19, 2019, 12:02:09 pm »

This is odd.  I've tested all three memory scenarios both with the idpi card and my own that has mc25 and Mc23. Mc25 memory play just doesn't work. It plays but if you look at the memory being used it doesn't show any changes when you memory play a large file. With Mc23 you can clearly see an uptick in ram being used.


The only thing i can think of is that i'm still on trial for the regular pi and haven't entered the license for the idpi.


Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #8 on: September 19, 2019, 04:15:20 pm »

This is odd.  I've tested all three memory scenarios both with the idpi card and my own that has mc25 and Mc23. Mc25 memory play just doesn't work. It plays but if you look at the memory being used it doesn't show any changes when you memory play a large file. With Mc23 you can clearly see an uptick in ram being used.


The only thing i can think of is that i'm still on trial for the regular pi and haven't entered the license for the idpi.
That doesn't matter and I tested it on a IdPi. With the status monitor running and memory playback enabled it jumps the expected amount.
What are your memory playback settings, and you are playing locally, right?
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #9 on: September 19, 2019, 07:32:09 pm »

I’m using the pi as a renderer. Usually I set it to load the decoded file but it doesn’t work for me on any setting.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #10 on: September 20, 2019, 09:54:45 am »

I’m using the pi as a renderer. Usually I set it to load the decoded file but it doesn’t work for me on any setting.
Since you are streaming to the pi as a renderer it probably can't load the track into memory before playing it. For sure it will not do this if the "buffer to disk disable" is set under media network.
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #11 on: September 20, 2019, 11:30:12 am »

That doesn't appear to be the case with MC23 - memory play works perfectly even with the buffer-to-disk to turned off.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #12 on: September 20, 2019, 02:23:41 pm »

That doesn't appear to be the case with MC23 - memory play works perfectly even with the buffer-to-disk to turned off.
Interesting. I'm not sure how that makes sense. I'll play around with 23 a bit...
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #13 on: September 20, 2019, 03:05:57 pm »

thank you!
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #14 on: September 23, 2019, 12:16:37 pm »

Any update on this?  I'm trying to decide whether i should upgrade to MC25.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #15 on: September 23, 2019, 02:08:54 pm »

I haven't had a chance to test this yet, pretty backlogged right now...
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #16 on: September 30, 2019, 02:20:13 pm »

Just checking on this.  I haven't activated to Idpi yet. I'd like to but i may stick with mc23 unless memory play works for Mc25.
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #17 on: October 04, 2019, 01:37:22 pm »

Any update?
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #18 on: October 04, 2019, 03:58:40 pm »

No, still too backlogged.
Next week likely.
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #19 on: October 17, 2019, 11:51:39 am »

Hi Bob -

any update on memory play?
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #20 on: October 22, 2019, 12:42:11 pm »

Bumping
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #21 on: October 28, 2019, 09:00:34 pm »

Hi Bob -

any update on memory play?
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7798
  • Autumn shade...
Re: MC25 and Pi4
« Reply #22 on: October 29, 2019, 03:59:49 am »

I decided to test this with my Raspberry Pi 4, Raspbian Buster and MC 25.0.113... and it looks like memory playback using the Load full file (not decoded) into memory option using FLAC files is working fine. I tested normal 16-bit/44.1kHz files along with 24-bit/96kHz and 24-bit/192kHz files and all of them load into memory just fine.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #23 on: October 29, 2019, 03:01:37 pm »

I decided to test this with my Raspberry Pi 4, Raspbian Buster and MC 25.0.113... and it looks like memory playback using the Load full file (not decoded) into memory option using FLAC files is working fine. I tested normal 16-bit/44.1kHz files along with 24-bit/96kHz and 24-bit/192kHz files and all of them load into memory just fine.
Thanks for checking this, I've been too backlogged to get to it myself yet.
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #24 on: October 29, 2019, 06:16:52 pm »

I decided to test this with my Raspberry Pi 4, Raspbian Buster and MC 25.0.113... and it looks like memory playback using the Load full file (not decoded) into memory option using FLAC files is working fine. I tested normal 16-bit/44.1kHz files along with 24-bit/96kHz and 24-bit/192kHz files and all of them load into memory just fine.

It plays fine for me too but the memory doesn’t represent the size of the file being played.  Can you check that?
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7798
  • Autumn shade...
Re: MC25 and Pi4
« Reply #25 on: October 30, 2019, 02:09:14 am »

It plays fine for me too but the memory doesn’t represent the size of the file being played.  Can you check that?

Indeed, in all my testing I had Raspbian's Task Manager app open and I was watching memory usage in real time... and it loaded the music into memory. I select a song and I notice the memory usage immediately jump up. Even 24-bit/192kHz songs cause the memory to jump (in some cases, by several hundred megabytes within a second or two). And of course, if I stop playback memory usage drops back down to normal.

So it appears memory playback is working fine here. My guess something in your setup causes it to fail for whatever reason, but honestly I can't think of a reason why especially since MC23 appears to be working for you. Keep in mind that in my case I just have my NAS directly mounted on my Raspberry Pi and the library on the NAS has been imported into the Pi's MC that way so I'm not streaming to the Pi.

For a test, you might try taking some local files and putting them on the Pi and importing them in MC (in a test library kind of deal) and see if memory playback works then.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #26 on: October 30, 2019, 11:34:43 am »

Thanks...will give it a try.
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #27 on: November 06, 2019, 10:38:04 am »

Ok...when using the Pi4 (Id or normal) as a renderer, if I keep the audio buffer to sd card enabled, everything works from a memory play perspective. My question is how much is the audio buffer used in cases like this? Doesn't everything get dumped into ram with memory play?
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #28 on: November 07, 2019, 03:13:49 pm »

Ok...when using the Pi4 (Id or normal) as a renderer, if I keep the audio buffer to sd card enabled, everything works from a memory play perspective. My question is how much is the audio buffer used in cases like this? Doesn't everything get dumped into ram with memory play?
I should have caught this before....
With the audio buffer disabled (in Media Network options) the incoming file will not be buffered on the MC renderer at all, it's using only the TCP window size for buffering.
When that's not disabled the buffered reader is used. This will be to the sdcard or memory depending on whether or not the play from memory is set as you have found.
Logged

gabeg

  • World Citizen
  • ***
  • Posts: 126
Re: MC25 and Pi4
« Reply #29 on: November 07, 2019, 04:42:38 pm »

thanks...so i'm not actually using the sd card as a buffer if using memory play, correct?
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13859
Re: MC25 and Pi4
« Reply #30 on: November 07, 2019, 04:55:51 pm »

thanks...so i'm not actually using the sd card as a buffer if using memory play, correct?
Yes, as long as the track doesn't exceed available memory.
Logged
Pages: [1]   Go Up