View Issue Details

IDProjectCategoryView StatusLast Update
0011716MMW 5UPnP / DLNApublic2024-02-18 18:44
ReporterLudek Assigned To 
PriorityurgentSeverityfeatureReproducibilityalways
Status closedResolutionreopened 
Target Version5.1Fixed in Version5.1 
Summary0011716: Gapless playback / volume leveling when casting
DescriptionPer user request:

It maybe a bit late to raise this issue about MM 4.1, now that it is in RC phase. But here it is. When playing to an external UPNP device ("Play to"), there seems no way to achieve gapless playback, which ranks # 1 in my priority list. For some albums (eg classical opera), this makes for a very unpleasing listening experience. I know that gapless playback requieres collaboration between the UPNP renderer and the UPNP control point, but renderers capable of gapless playback through UPNPAV do exist (for ex. Simaudio Mind 180D, Cambridge Audio StreamMagic 6, Linn DS), and so for UPNP controllers (for ex. Foobar 2000, BubbleUPnP). It would be really nice if MM could achieve the same. One thing I am not sure about however is whether with the "Play to ..." feature MM qualifies as a UPNP control point or not. Has such functionnality been considered for inclusion in MediaMonkey ?
Additional Informationhttp://www.mediamonkey.com/forum/viewtopic.php?f=6&t=75042
XGE-628-14642

https://www.mediamonkey.com/forum/viewtopic.php?p=465907#p465907
MPC-165-72859

https://www.mediamonkey.com/forum/viewtopic.php?f=20&t=97693
TagsNo tags attached.
Fixed in build2814

Relationships

related to 0020071 newmartin MMA Volume leveling should work for casting 
related to 0020591 closedLudek MMW 5 Gapless playback when casting with combination of waveOut plug-in and 24-bit files results in noise 

Activities

Ludek

2014-01-15 00:14

developer   ~0039230

Last edited: 2014-01-15 00:15

It looks that SetNextAVTransportURI action should do the trick, but a lot of DMPs/DMRs don't support this action, so we need to use both approaches.

Ludek

2020-03-16 22:02

developer   ~0057206

Last edited: 2020-03-16 22:07

The player Cambridge Audio CXN seems to support gapless playback over DLNA: https://www.mediamonkey.com/forum/viewtopic.php?f=30&t=96068 / MPC-165-72859

Most probably via SetNextAVTransportURI as user indicated that it works also when Foobar2000 with foo_upnp plugin is the control point (and foo_upnp uses the same UPnP library as MM)

Ludek

2020-12-14 19:13

developer   ~0060768

Except for SetNextAVTransportURI some devices accepts also whole playlist URI to be set in SetAVTransportURI -- this could also ensure gapless playback (e.g. Squeezebox ) , ticket number 332

Ludek

2021-03-30 20:12

developer   ~0062654

Last edited: 2021-03-30 20:37

Trying to do some research it seems that SetNextAVTransportURI isn't widely supported by renderers (minimum of DLNA/UPnP renderers support it) and in addition the Chromecast devices does not support gapless playback either.
But one can still play gapless using a gapless desktop music player that sends its audio output as a single PCM stream (eg foobar2000 with foo_out_upnp).

So the universal solution for MM5 would be to do what the foobar2000 with foo_out_upnp plugin does, i.e. single PCM stream as audio output.

I briefly tested the plugin and upon selecting the output as DLNA renderer the info on the renderer is only "foobar2000 audio stream", not seekable, not artwork etc.
I suppose that if we want to take the same approach with MM5 then it should be configurable and maybe similarly like in foobar2000 belongs rather to "Audio Ouput" config ?

Ludek

2021-03-30 20:36

developer   ~0062655

Last edited: 2021-03-30 20:54

Alternativelly we could add
[ ] Gapless playback (plays all tracks as single audio stream) -- Buffer: [1000] ms
checkbox to the dialog upon clicking the 'gear' icon associated with the casting output here:
Outputs.png (33,233 bytes)   
Outputs.png (33,233 bytes)   

Ludek

2021-12-14 16:30

developer   ~0066379

Last edited: 2021-12-14 21:35

BTW: The user here https://www.mediamonkey.com/forum/viewtopic.php?f=33&t=100358
is also requesting "crossfading" which could be further option there (in addition to the suggested '[ ] Gapless playback' checkbox above).

i.e. in adition to [Auto-conversion] tab we could add [Audio output] tab with following settings:

[..] Play all audio tracks as single stream
-- (o) Gapless playback , buffer: [4] seconds
-- ( ) Crossfade [4] seconds
-- ( ) Gap [2] seconds

Ludek

2022-11-07 20:26

developer   ~0070193

There is also a request to add the volume leveling option.

rusty

2023-06-01 01:10

administrator   ~0072141

I would suggest not to add new settings, but rather to apply the existing settings to all casting sessions (especially since these types of settings are collection-dependent).

Ludek

2023-06-01 11:00

developer   ~0072142

OK, agreed that settings from
Options > Player > Playback rules
should be applied once
[..] Play all audio tracks as single stream
is enabled for the particular player/renderer.

Ludek

2023-06-21 16:59

developer   ~0072264

image.png (35,268 bytes)   
image.png (35,268 bytes)   

Ludek

2023-06-21 17:00

developer   ~0072265

Implemented in 2807 (disabled by default, needs to be enabled in Options > Player > Streaming) per the screenshot above..

lowlander

2023-06-21 20:27

developer   ~0072274

Last edited: 2023-06-21 21:10

1 Playing to DLNA with the option enabled there was no sound. Using the volume slider in MMW had playback happening on internal speaker while moving volume slider (tested with 2 Sony DLNA clients).

2 With Chromecast playback works (Nvidia Shield), but there is still switching between tracks (no gapless). No Track details are show (ie. it does seem to be a single stream), but on track finish, TV is showing a new track is being loaded.

Log on FTP

Ludek

2023-06-22 20:51

developer   ~0072325

Last edited: 2023-06-22 20:51

Should be fixed in 2808, please re-test...

lowlander

2023-06-25 17:20

developer   ~0072340

1. Unchanged on 2808, no sound from device, sound from internal when changing volume. Disabling single stream has files play on client.

Ludek

2023-06-26 09:54

developer   ~0072354

The stream is LPCM WAV that should be supported by SONY, please attach debug log..

lowlander

2023-08-17 19:16

developer   ~0072636

Last edited: 2023-08-17 19:40

1) Playback now works to Sony speakers on 2812. However moving the volume slider in MediaMonkey still has sound bleeding through the internal speakers.

(Also noticed that MM volume slider remains at internal speaker volume (100%) while connected to an external speaker (which is not at 100%, thus causing blast of loud music when adjusting volume un MM)).

Unconfirmed if crossfading is supposed to work (it didn't).

2) Confirmed on 2813.

Ludek

2023-08-20 14:47

developer   ~0072664

Last edited: 2023-08-20 14:53

The sound bleeding when moving the volume slider fixed in 2814

Crossfading does not work as it is function of the output plugin(s), it would need to be re-worked..

peke

2024-02-18 18:44

developer   ~0074297

Verified 2834

Crossfade settings are also moved outside output plugin to Playback rules.