DSD playback issue

Issue description:

I’m using Emby as the source for my music, therefore, when I play any DSD, for some reason, the Symfonium asks the server to transcode it to OPUS, however, after the first 20 seconds playback always stops but if I start to play the same song again, Symfonium plays it directly as DSD.

I access the server using the External IP address which also works when I’m connected locally to the LAN through WiFi.

Logs:

debug-20231104_142323.log (5,7 KB)

This log is empty, I need logs reproducing the issue.

DSD is not natively supported so transcoding is necessary either at server side or at Symfonium side, it’s more efficient at server side so Emby should transcode and it should work.

If it fails after 20 seconds only logs can tell why, let’s hope it’s not another Emby bug in their beta.

Then it should do the former everytime I start to play a song and not the second time I play it.

Let me know if the below log file works for you.

debug.log (108,1 KB)

It’s asked so nicely :wink:

So in your logs it’s what is done each time.

2023-11-04 15:25:52.302 T:MediaPrepareManager 
Prepared from provider PlayableMediaItem(source=MediaItem{externalId='16523', mediaType=Song, file='D:\Musica\Musica en DSD\Depeche Mode - Enjoy the Silence.dsf', title='Enjoy the Silence'}, url=http://XXX.XX.X.XXX:8096/audio/16523/stream.ogg?DeviceId=BF4B01BE522BA87B53751661B58DCB9E&MediaSourceId=e2f97d2aa1d3206f561309dab855d730&PlaySessionId=21620e06f51340969c7a00286225237a&api_key=REDACTED&AudioCodec=opus&AudioBitrate=192000&AudioStreamIndex=0&TranscodingMaxAudioChannels=6&TranscodeReasons=ContainerNotSupported, externalThumbnail=, originalUrl=, urlIncludeResumePoint=true, urlIncludeResumePointValue=0, alreadyResolved=true, mimeTypeOverride=, payload={"LiveStreamId":"","PlaySessionId":"21620e06f51340969c7a00286225237a","ItemId":"16523"}, cacheKey=, preparationError=false, preparationErrorMessage=, playlistPosition=0, headers=null, mediaFormat=null, lyrics=null, chapters=null, uuid=845899e6-543b-4bf8-91be-15e52973fa46, supportSeeking=true)

2023-11-04 15:26:48.239 T:MediaPrepareManager 
Prepared from provider PlayableMediaItem(source=MediaItem{externalId='16523', mediaType=Song, file='D:\Musica\Musica en DSD\Depeche Mode - Enjoy the Silence.dsf', title='Enjoy the Silence'}, url=http://XXX.XX.X.XXX:8096/audio/16523/stream.ogg?DeviceId=BF4B01BE522BA87B53751661B58DCB9E&MediaSourceId=e2f97d2aa1d3206f561309dab855d730&StartTimeTicks=520000000&PlaySessionId=428dfacae9364ec78814167fb73493ee&api_key=REDACTED&AudioCodec=opus&AudioBitrate=327680&AudioStreamIndex=0&TranscodingMaxAudioChannels=6&TranscodeReasons=ContainerNotSupported, externalThumbnail=, originalUrl=, urlIncludeResumePoint=true, urlIncludeResumePointValue=52, alreadyResolved=true, mimeTypeOverride=, payload={"LiveStreamId":"","PlaySessionId":"428dfacae9364ec78814167fb73493ee","ItemId":"16523"}, cacheKey=, preparationError=false, preparationErrorMessage=, playlistPosition=0, headers=null, mediaFormat=null, lyrics=null, chapters=null, uuid=845899e6-543b-4bf8-91be-15e52973fa46, supportSeeking=true)

2023-11-04 15:26:49.745 T:MediaPrepareManager 
Prepared from provider PlayableMediaItem(source=MediaItem{externalId='16523', mediaType=Song, file='D:\Musica\Musica en DSD\Depeche Mode - Enjoy the Silence.dsf', title='Enjoy the Silence'}, url=http://XXX.XX.X.XXX:8096/audio/16523/stream.ogg?DeviceId=BF4B01BE522BA87B53751661B58DCB9E&MediaSourceId=e2f97d2aa1d3206f561309dab855d730&StartTimeTicks=520000000&PlaySessionId=12a914cc8d584ac3a60b0a7de00ea266&api_key=REDACTED&AudioCodec=opus&AudioBitrate=327680&AudioStreamIndex=0&TranscodingMaxAudioChannels=6&TranscodeReasons=ContainerNotSupported, externalThumbnail=, originalUrl=, urlIncludeResumePoint=true, urlIncludeResumePointValue=52, alreadyResolved=true, mimeTypeOverride=, payload={"LiveStreamId":"","PlaySessionId":"12a914cc8d584ac3a60b0a7de00ea266","ItemId":"16523"}, cacheKey=, preparationError=false, preparationErrorMessage=, playlistPosition=0, headers=null, mediaFormat=null, lyrics=null, chapters=null, uuid=845899e6-543b-4bf8-91be-15e52973fa46, supportSeeking=true)


I also do not see any error anywhere so what is your actual issue ?

The issue is:

When I start the song I see that it gets transcoded to OPUS by the Emby server but playback stops abruptly around the first 20 seconds, then I start to play the same song again and it doesn’t transcode anymore so I assume it’s being decoded by the app internally though playback doesn’t stop abruptly anymore.

As I said the app does not support DSD and transcode it’s clearly indicates DSD > ALAC in the info line.

I do not see a stop at 20 sex in the logs looks like Emby bug and second time transcoding is finished on Emby cache and it’s returned check Envy logs.

You are using Emby beta.

Sorry but I don’t understand what you’re saying:

If the app doesn’t have DSD support then why the song plays when I move it to the internal memory of the phone?

Why the app asks the Emby server to transcode the song at first but not at the second attempt?

I’ve just explained to you …
All I can see is the logs you provide since you do not even provide screenshots to say why you think it plays direct DSD.

From the logs your provided Symfonium ALWAYS have requested Emby transcode and if Emby sometimes does not do it it’s and Emby beta bug, so I asked you to check Emby logs …

When copied locally it’s the internal transcoder that is used, the interface clearly shows that it is transcoding too.

It is not possible to have the interface say that it’s playing DSD.

With “play directly” I meant that the UI shows DSD/DSF instead of OPUS that’s why I though it was playing the file directly but I have clear that what it does is to transcode it internally.

That is not what it shows

It doesn’t explicitly says that it’s playing the file directly but it clearly shows DSD/DSF as you can see below:

The first time, the app asks the server to transcode the song, so it plays as OGG/OPUS but playback stops abruptly around the first 20 seconds, something you say it’s because the server is a beta version.

On the second attempt it clearly shows that it’s playing as DSF/DSD OR it’s been decoded internally by the app as you state when it should ask the server again to transcode it, can you please clarify this behavior?

As I said all I can see is the content of the logs you provide …

Provide logs reproducing exactly what you are saying.

And again the application can not play DSD natively, so if it plays something it’s not DSD if the application says it’s DSD when playing from Emby then ffprobe to the url returned by Emby return wrong data.

When the internal transcoder is used it’s clearly stated:

So I don’t know how you copy locally either.

, something you say it’s because the server is a beta version.

Something I suspect can be and asked you to check or provide Emby logs to actually know …

There’s no magic in apps, if you do not provide the proper logs and information there’s no way to guess what is happening.

This is the transcoding log, hope that you can find anything useful.

DSD transcode.txt (11,1 KB)

Hello, playback still stops on version 10.1.5 but I wonder how can I attach the log here.