# Some tracks (opus files extracted from youtube) not marked as played

**URL:** <http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933>\
**Category:** Support\
**Tags:** handled\
**Created:** [February 23, 2025, 4:59pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933 "2025-02-23T16:59:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aereaux](http://support.symfonium.app/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@aereaux](http://support.symfonium.app/u/aereaux)\
**Post date:** [February 23, 2025, 4:59pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/1 "2025-02-23T16:59:31Z")

</div>

## Issue description:

I am using the subsonic media provider with the upmpdcli upnp renderer, and it looks like listens for some tracks in my library (as far as I can tell opus files extracted from youtube) don’t get marked as played either in symfonium or in my navidrome instance. I start playing the track using the renderer and when it finishes it doesn’t get marked as played in the symfonium details page. It works fine if I play it locally through my phone’s speakers. I can provide a sample file if needed, but it looks like during play it doesn’t provide a completion bar/percent. Is it possible this is causing the problem?

## Logs:

Upload description: aereaux

## Additional information:

&nbsp;  
I can share one of the files that shows the problem if needed.  
&nbsp;

## Reproduction steps:

&nbsp;  
Use upmpdcli media renderer. Start affected track. When completed see that it’s not marked as played in track details.  
&nbsp;

## Media provider:

Subsonic

## Screenshots:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Tolriq](http://support.symfonium.app/user_avatar/support.symfonium.app/tolriq/32/726_2.png) [@Tolriq](http://support.symfonium.app/u/Tolriq)\
**Post date:** [February 23, 2025, 5:11pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/2 "2025-02-23T17:11:28Z")

</div>

If there’s no bar then the renderer does not return a duration and so there’s no way to know if the media is fully played or not.

@medoc It’s probably mpd that fails to extract a duration from the files. But since Symfonium does send a duration in the metadata do you think you can fallback to returning that in those cases ?

```auto
<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:sec="http://www.sec.co.kr/" xmlns:dc="http://purl.org/dc/elements/1.1/"><item restricted="1" id="37f0be7b-6456-4e00-9e11-db179db576b9" parentID="0"><upnp:album>Hadestown: Original Broadway Cast Recording</upnp:album><upnp:class>object.item.audioItem.musicTrack</upnp:class><upnp:genre>musical</upnp:genre><upnp:artist>Reeve Carney, André De Shields &amp; [theatre]</upnp:artist><res duration="00:03:12" protocolInfo="http-get:*:audio/ogg:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000" size="3213403">https://REDACTED:443/music/rest/stream.view?id=bfadfec6ea42876db0497474449e5cb4&amp;u=REDACTED&amp;t=REDACTED&amp;s=REDACTED&amp;v=1.13.0&amp;c=Symfonium&amp;f=json</res><upnp:originalTrackNumber>5</upnp:originalTrackNumber><upnp:albumArtURI>http://192.168.0.175:39253/b8683fff6a470034eeab94e59768571d/%2Fstorage%2Femulated%2F0%2FAndroid%2Fdata%2Fapp.symfonik.music.player%2Fcache%2Fimages%2F3%2F3F103CEF518CA4838DDA807D9135B223.jpg</upnp:albumArtURI><dc:title>Epic I</dc:title></item></DIDL-Lite>

```

---

<div class="post-metadata">

**Author:** ![aereaux](http://support.symfonium.app/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@aereaux](http://support.symfonium.app/u/aereaux)\
**Post date:** [February 23, 2025, 6:44pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/3 "2025-02-23T18:44:43Z")

</div>

Thanks for the quick response! Would it also be worth it for me to ask in the MPD repo why it might not be able to extract a duration?

---

<div class="post-metadata">

**Author:** ![Tolriq](http://support.symfonium.app/user_avatar/support.symfonium.app/tolriq/32/726_2.png) [@Tolriq](http://support.symfonium.app/u/Tolriq)\
**Post date:** [February 24, 2025, 7:12am UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/4 "2025-02-24T07:12:56Z")

</div>

Don’t know how upnpmdpcli dialog with MPD so better to see with Medoc first.

---

<div class="post-metadata">

**Author:** ![medoc](http://support.symfonium.app/letter_avatar_proxy/v4/letter/m/4bbf92/32.png) [@medoc](http://support.symfonium.app/u/medoc)\
**Post date:** [February 24, 2025, 7:31am UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/5 "2025-02-24T07:31:04Z")

</div>

Hello,  
Don’t ask on the mpd forum for now, I should have a look at this first. Unfortunately I can’t do it this week. Please point me to or send a sample track: [jf@dockes.org](mailto:jf@dockes.org), and I’ll test this next week. jf (upmpdcli)  
Edit, PS: being provided by the subsonic plugin may be a part of the problem, I’ll notify the plugin developper.

---

<div class="post-metadata">

**Author:** ![GioF\_71](http://support.symfonium.app/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@GioF\_71](http://support.symfonium.app/u/GioF_71)\
**Post date:** [February 24, 2025, 8:22am UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/6 "2025-02-24T08:22:45Z")

</div>

Hello, this is the developer of the subsonic plugin for upmpdcli.  
From what I read, I don’t think the subsonic plugin for upmpdcli is involved. When using Navidrome via Symphonium and play to upmpdcli+mpd, we are only using the renderer part of upmpdcli.  
Assuming this, the problem might be with the fact that just streaming a file to a renderer is not supposed to invoke the subsonic api “scrobble” method.  
Instead, when you play to the local player, it’s Symphonium itself that does the operation AFAIK.  
See [this](https://github.com/navidrome/navidrome/issues/2347) issue for a reference.  
Also I don’t think the problem is with the length. I have observed that generally Symphonium provides the correct length to the upnp renderer.  
If all of this is correct, this problem can be solved by simply deploying a mpd scrobbler for subsonic. See [here](https://github.com/GioF71/mpd-subsonic-scrobbler)

---

<div class="post-metadata">

**Author:** ![Tolriq](http://support.symfonium.app/user_avatar/support.symfonium.app/tolriq/32/726_2.png) [@Tolriq](http://support.symfonium.app/u/Tolriq)\
**Post date:** [February 24, 2025, 8:36am UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/7 "2025-02-24T08:36:21Z")

</div>

In this case this is the length/duration.

The renderer is the source of truth, so even if Symfonium have the duration, it will use the one returned by the renderer and in this case it does not return one.

So Symfonium can’t know the media is played and don’t call the scrobble part, something that works properly if the renderer properly returns a duration for the playing media.

---

<div class="post-metadata">

**Author:** ![GioF\_71](http://support.symfonium.app/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@GioF\_71](http://support.symfonium.app/u/GioF_71)\
**Post date:** [February 24, 2025, 8:58am UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/8 "2025-02-24T08:58:12Z")

</div>

Hello, interesting, I was assuming that scrobbling would not work when playing to a UPnP renderer.  
Are there any other software renderers that actually return the correct duration for the playing media? Maybe gmrenderer-resurrect?  
Thank you.

---

<div class="post-metadata">

**Author:** ![GioF\_71](http://support.symfonium.app/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@GioF\_71](http://support.symfonium.app/u/GioF_71)\
**Post date:** [February 24, 2025, 9:06am UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/9 "2025-02-24T09:06:16Z")

</div>

> [@aereaux](#):
>
> I can share one of the files that shows the problem if needed.

Hello @aereaux, can you please share the file? Thank you  
Does the situation happen with other files (or file types)?

---

<div class="post-metadata">

**Author:** ![GioF\_71](http://support.symfonium.app/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@GioF\_71](http://support.symfonium.app/u/GioF_71)\
**Post date:** [February 24, 2025, 9:29am UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/10 "2025-02-24T09:29:54Z")

</div>

I just tried to play to mpd+upmpdcli, and the scrobbling worked as expected with a couple of my files.  
The mpd-subsonic-scrobbler remains necessary when playing from the subsonic plugin for upmpdcli, but it’s not at all required when using Symphonium.

So the issue might be specific with opus files. There has been a recent (and solved) issue [here](https://github.com/GioF71/mpd-alsa-docker/issues/414), I will try and see if that one and this are somehow related.

UPDATE!

Hello again, I just tested an opus file, and yes, the two issues are actually related.  
With mpd default settings, Symphonium does not receive information about the song duration for opus files.  
This is an issue with the opus decoder when playing using the curl plugin, so, when streaming. It does not happen with opus local files.

It can be solved by adding this section to the mpd.conf file:

```auto
decoder {
    plugin "opus"
    enabled "no"
}

```

MPD must be restarted.  
With this setting, Symphonium will receive the song duration, and scrobbling works.  
@aereaux, please let me know if this solves the issue.

---

<div class="post-metadata">

**Author:** ![aereaux](http://support.symfonium.app/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@aereaux](http://support.symfonium.app/u/aereaux)\
**Post date:** [February 24, 2025, 4:23pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/11 "2025-02-24T16:23:59Z")

</div>

Here’s one of the files it fails with: [https://jmad.org/tmp/37%20Wait%20for%20Me%20(reprise).opus](https://jmad.org/tmp/37%20Wait%20for%20Me%20(reprise).opus) . And it is indeed just some opus files.

> [@GioF\_71](#):
>
> ```auto
> decoder {
> plugin "opus"
> enabled "no"
> }
> 
> ```

This does actually seem to solve the issue. Is this just a hack or is it a good long-term solution?

---

<div class="post-metadata">

**Author:** ![GioF\_71](http://support.symfonium.app/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@GioF\_71](http://support.symfonium.app/u/GioF_71)\
**Post date:** [February 24, 2025, 5:10pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/12 "2025-02-24T17:10:01Z")

</div>

Hello, glad to hear that this solves the issue.  
It’s not a hack, we are simply disabling a plugin, I believe ffmpeg replaces its functionality (I might be corrected on this). If I find something about the opus decoder in the upcoming release notes of mpd, I will test this situation again.

---

<div class="post-metadata">

**Author:** ![aereaux](http://support.symfonium.app/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@aereaux](http://support.symfonium.app/u/aereaux)\
**Post date:** [March 13, 2025, 11:09pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/13 "2025-03-13T23:09:50Z")

</div>

Unfortunately this workaround has started failing with mpd version 0.24. Now I get an http 416 error with the ffmpeg opus decoder that it falls back to when streaming from navidrome. I’m currently working on filing a bug report with MPD, but any other suggestions for what I can try?

---

<div class="post-metadata">

**Author:** ![GioF\_71](http://support.symfonium.app/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@GioF\_71](http://support.symfonium.app/u/GioF_71)\
**Post date:** [March 26, 2025, 10:54pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/14 "2025-03-26T22:54:29Z")

</div>

Just saw this reply… I see in the release notes that in version 0.24.0 there is an entry that says:

- opus: implement bitrate calculation

Might have something to do. Did you try removing the portion of config that was disabling the decoder plugin?

Anyway I will try this tomorrow.

---

<div class="post-metadata">

**Author:** ![aereaux](http://support.symfonium.app/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@aereaux](http://support.symfonium.app/u/aereaux)\
**Post date:** [March 26, 2025, 11:22pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/15 "2025-03-26T23:22:26Z")

</div>

The reported length issue still exists. See the discussion here: [MPD with opus decoder plugin doesn't report track length · Issue #2233 · MusicPlayerDaemon/MPD · GitHub](https://github.com/MusicPlayerDaemon/MPD/issues/2233#issuecomment-2741535723)

I reported and they fixed the ffmpeg 416 error though: [HTTP 416 error when using mpd with navidrome · Issue #2231 · MusicPlayerDaemon/MPD · GitHub](https://github.com/MusicPlayerDaemon/MPD/issues/2231)

---

<div class="post-metadata">

**Author:** ![GioF\_71](http://support.symfonium.app/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@GioF\_71](http://support.symfonium.app/u/GioF_71)\
**Post date:** [March 26, 2025, 11:25pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/16 "2025-03-26T23:25:19Z")

</div>

Thank you. I just saw those issues. Quite annoying that the workaround does not work anymore.

Have you tried setting transcoding to another format like e.g. mp3 in navidrome? I understand there would be an extra conversion, but still it might be ok for consumption on a mobile device.

---

<div class="post-metadata">

**Author:** ![aereaux](http://support.symfonium.app/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@aereaux](http://support.symfonium.app/u/aereaux)\
**Post date:** [March 26, 2025, 11:40pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/17 "2025-03-26T23:40:46Z")

</div>

The workaround does work after the bugfix actually. That’s the http error 416 that was fixed.

I haven’t messed around with transcoding, but I might eventually because the cache takes up a lot of room on my phone.

Thanks.

---

<div class="post-metadata">

**Author:** ![GioF\_71](http://support.symfonium.app/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@GioF\_71](http://support.symfonium.app/u/GioF_71)\
**Post date:** [March 27, 2025, 5:42am UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/18 "2025-03-27T05:42:46Z")

</div>

Hello, I was referring to server side transcoding, so a configuration on Navidrome. It’s a setting to apply to a single “player”

---

<div class="post-metadata">

**Author:** ![GioF\_71](http://support.symfonium.app/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@GioF\_71](http://support.symfonium.app/u/GioF_71)\
**Post date:** [March 27, 2025, 9:31pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/19 "2025-03-27T21:31:04Z")

</div>

Anyway I just tried streaming an opus file to mpd 0.24.2, with the opus decoder disabled, and seeking is working for me!

---

<div class="post-metadata">

**Author:** ![aereaux](http://support.symfonium.app/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@aereaux](http://support.symfonium.app/u/aereaux)\
**Post date:** [March 27, 2025, 10:08pm UTC](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933/20 "2025-03-27T22:08:47Z")

</div>

Yes, [input/curl: re-add minus to "Range" request header · allixx/MPD@13359b1 · GitHub](https://github.com/allixx/MPD/commit/13359b1e6f0ab9848a7c5a921c8ea6f2c8333062) is the fix in 0.24. Thanks for testing it.

So just the original issue remains

[Next page](http://support.symfonium.app/t/some-tracks-opus-files-extracted-from-youtube-not-marked-as-played/6933.md?page=2)
