Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
M3U
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Examples== {{Example farm|section|date=August 2016}} ;Example 1 This is an example of an extended M3U file on the Windows platform. Sample.mp3 and Example.ogg are the media files. 123 and 321 are the lengths in seconds.<ref>{{cite web|archive-url=https://web.archive.org/web/20180122001027/http://www.clearone.com/uploads/resource/030055_Creating_Playlists_to_Work_with_the_Streaming_Music_Manager-0.pdf|archive-date=2018-01-22|url=http://www.clearone.com/uploads/resource/030055_Creating_Playlists_to_Work_with_the_Streaming_Music_Manager-0.pdf|title=DigiLinX Application Note - Creating Playlists to Work with the Streaming Music Manager|date=2007-10-05}}</ref> A length of -1 or 0 may be used when the media file is a streaming file, as there is no actual, predefined length value. The value after the length is the title to be shown, which is generally the same as the location of the file which is on the second line. On the [[macOS]] and [[Linux]] platforms, [[Unix path]]s are used. #EXTM3U #EXTINF:123, Sample artist - Sample title C:\Documents and Settings\I\My Music\Sample.mp3 #EXTINF:321,Example Artist - Example title C:\Documents and Settings\I\My Music\Greatest Hits\Example.ogg ;Example 2 This example shows how to create an m3u file linking to a specified directory (for example, a [[USB flash drive|flash drive]], or CD-ROM). The m3u file should contain only one string: the path to the directory. After starting, the media player will play all contents of the directory: C:\Music ;Example 3 Here is another example, using relative format. The M3U file is placed in the same directory as the music, and directories must be preserved when moving the playlist to another device if subdirectories are used. This method is more flexible, as it does not rely on the file path staying the same. This is the same file as above, saved as sample.m3u in C:\Documents and Settings\User\My Music\ #EXTM3U #EXTINF:123, Sample artist - Sample title Sample.mp3 #EXTINF:321,Example Artist - Example title Greatest Hits\Example.ogg This format in an M3U allows copying to another device for playback. All files and directories referred to must also be copied. ;Example 4 Here is a mixed example: Alternative\Band - Song.mp3 Classical\Other Band - New Song.mp3 Stuff.mp3 D:\More Music\Foo.mp3 ..\Other Music\Bar.mp3 <nowiki>http://www.example.com:8000/Listen.mp3</nowiki> <nowiki>http://www.example.com/~user/Mine.mp3</nowiki> Notes: * Alternative and Classical are sub-directories of the directory that this playlist is stored in. * "Song" and "New Song" are in sub-directories of the directory that this playlist is stored in. * "Stuff" is in the same directory that the playlist is stored in. * "Foo" is in the specified (Windows) volume and directory, which may or may not be the same directory the playlist is in. * "Bar" is in a different directory at the same level as the playlist directory. The double-dots reference the parent directory of the playlist directory, then into the sub-directory "Other Music" to reach "Bar". * "Listen" is a Shoutcast stream. * "Mine" is an MP3 stored on a web server. ;Example 5 References to other M3U playlists, for example, are generally not well-supported. AnotherPlayList.m3u ;Example 6 The following is an example of an M3U playlist file for "[[Jar of Flies]]" album by "[[Alice in Chains]]" that was created by [[Mp3tag]] with the following custom option settings:<ref>{{cite web|url=http://help.mp3tag.de/options_export.html|title=Mp3tag Help - Configuration > Export|website=help.mp3tag.de}}</ref><ref>{{cite web|url=http://help.mp3tag.de/options_playlist.html|title=Mp3tag Help - Configuration > Playlist|website=help.mp3tag.de}}</ref><ref>{{cite web|url=http://help.mp3tag.de/main_scripting.html|title=Mp3tag Help - Scripting functions|website=help.mp3tag.de}}</ref> <!-- NOTE: This example was posted by User:Sbmeirow --> * playlist extended info format = <code>"%artist% - %title%"</code> * playlist filename format = <code>"%artist%_%album%_00_Playlist.m3u"</code> * tag to filename conversion format = <code>"%artist%_%album%_$num(%track%,2)_%title%"</code> <pre> #EXTM3U #EXTINF:419,Alice in Chains - Rotten Apple Alice in Chains_Jar of Flies_01_Rotten Apple.mp3 #EXTINF:260,Alice in Chains - Nutshell Alice in Chains_Jar of Flies_02_Nutshell.mp3 #EXTINF:255,Alice in Chains - I Stay Away Alice in Chains_Jar of Flies_03_I Stay Away.mp3 #EXTINF:256,Alice in Chains - No Excuses Alice in Chains_Jar of Flies_04_No Excuses.mp3 #EXTINF:157,Alice in Chains - Whale And Wasp Alice in Chains_Jar of Flies_05_Whale And Wasp.mp3 #EXTINF:263,Alice in Chains - Don't Follow Alice in Chains_Jar of Flies_06_Don't Follow.mp3 #EXTINF:245,Alice in Chains - Swing On This Alice in Chains_Jar of Flies_07_Swing On This.mp3 </pre>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)