PLS (file format)

Playlist
Filename extension .pls
Internet media type audio/x-scpls
Type of format Playlist

PLS is a computer file format for a multimedia playlist. It was originally developed for use with the museArc[1] audio player software by codeArts, and was later used by SHOUTcast and Icecast for streaming media over the Internet. PLS is a more expressive playlist format than basic M3U, as it can store (cache) information on the song title and length (this is supported in extended M3U only). With PLS version 2, playlists also include a PLS version declaration.

File format

The format is case-sensitive and essentially that of an INI file structured as follows:

Header

Track Entry
Assuming track entry #X

Footer

Examples

Example of a radio station streaming audio PLS file, complete:

[playlist]
Title1=Here enter name of the station
File1=http://stream2.streamq.net:8020/
NumberOfEntries=1

Alternative Example containing local paths:

[playlist]

File1=http://relay5.181.fm:8068
Length1=-1

File2=example2.mp3
Title2=Just some local audio that is 2mins long
Length2=120

File3=F:\Music\whatever.m4a
Title3=absolute path on Windows

File4=%UserProfile%\Music\short.ogg
Title4=example for an Environment variable
Length4=5

NumberOfEntries=4
Version=2
Unix/BSD/Linux/OS X

In Unix-like operating systems absolute and relative file paths differ from Windows, because there are no drive letters, Environment variables differ and [/] (forward slashes) are used as directory separators instead of [\] (backslashes). Therefore playlists pointing to absolute paths or media files outside of the folder containing the playlist will only work for one type of operating system - either Windows or Unix-like. URLs work the same for all types.


To make the second example from above work the 3rd and 4th path need to be changed to something like:

File3=/media/hdd/whatever.m4a
File4=~/Music/short.ogg

Software

iTunes, VLC media player, Totem, RealPlayer, Winamp, Yahoo! Music Jukebox, MediaMonkey, Windows Media Player, AIMP, Kodi, Rhythmbox, foobar2000, and more than 30 others are able to interpret (open) PLS files. Media Player Classic with the K-Lite codec installed does work with PLS format but still requires the appropriate MIME or file extension associations.

References

See also

Other playlist file formats

External links

This article is issued from Wikipedia - version of the Saturday, December 12, 2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.