Skip to content

demux_playlist: add support for 'strm' playlist files#17793

Merged
kasper93 merged 1 commit into
mpv-player:masterfrom
alydevs:master
Apr 22, 2026
Merged

demux_playlist: add support for 'strm' playlist files#17793
kasper93 merged 1 commit into
mpv-player:masterfrom
alydevs:master

Conversation

@alydevs
Copy link
Copy Markdown
Contributor

@alydevs alydevs commented Apr 21, 2026

Spec: https://emby.media/support/articles/Strm-Files.html

The .strm format consists of a URI or local path as the sole contents of a text file, this is parsed by software like Emby or Jellyfin to treat remote streams or paths as if they are in the local filesystem. This PR adds .strm to mpv's internal list of playlist file formats, and points it to the handler for .txt .m3u files as they should be compatible.

I have not tested the code in this PR yet as I wasn't able to compile mpv locally, but will test using the artifact produced for this PR by CI.


The initial state of this PR didn't work, but I confirmed that .m3u is the only supported playlist type that is compatible with .strm, and the latest commit switches the handler from txt to m3u. .strm doesn't need all the features of m3u/m3u8, but they do not cause issues with the relatively barebones playlist format of strm.

@alydevs alydevs changed the title [RFC] demux_playlist: add support for 'strm' playlist files demux_playlist: add support for 'strm' playlist files Apr 21, 2026
@alydevs alydevs changed the title demux_playlist: add support for 'strm' playlist files [RFC] demux_playlist: add support for 'strm' playlist files Apr 21, 2026
@alydevs alydevs changed the title [RFC] demux_playlist: add support for 'strm' playlist files demux_playlist: add support for 'strm' playlist files Apr 21, 2026
@kasper93
Copy link
Copy Markdown
Member

I don't know what is this format, but if it works, why not. Please squash commits into single change.

The .strm format consists of a URI or local path as the sole contents
of a text file, this is parsed by software like Emby or Jellyfin to
treat remote streams or paths as if they are in the local filesystem.
This commit adds .strm to mpv's internal list of playlist file formats,
and points it to the handler for .m3u files as they should be
compatible. .strm doesn't need all the features of .m3u/.m3u8, but the
features do not cause issues with the relatively barebones playlist
format of .strm.
@alydevs
Copy link
Copy Markdown
Contributor Author

alydevs commented Apr 22, 2026

Apologies for the mess, commit should be good to go

@kasper93 kasper93 merged commit d40a291 into mpv-player:master Apr 22, 2026
28 of 29 checks passed
sfan5 added a commit to mpv-android/mpv-android that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants