其他分享
首页 > 其他分享> > What is a M3U file?

What is a M3U file?

作者:互联网

What's on this Page

 

What is a M3U file?

M3U (MP3 URL) is an audio playlist file stored with the .m3u extension. M3U is not an actual audio file, it just points to audio and sometimes video files. M3U was developed to be used with Winplay3 software by Fraunhofer. It is also supported by various media players and software.

M3U File Format

There is no official specification for the M3U file format, it is a de-facto standard. M3U is a plain text file that uses the .m3u extension if the text is encoded in the local system’s default non-Unicode encoding or with the .m3u8 extension if the text is UTF-8 encoded. Each entry in the M3U file can be one of the following:

Extended M3U

In the extended M3U, additional directives are introduced that begin with “#” and end with a colon(:) if they have parameters. Given below is a list of directives for extended M3U.

HLS M3U

HLS (HTTP Live Streaming) was created by Apple to stream audio and radio to iOS devices. It is based on the UTF-8 encoded extended M3U. It was standardized as RFC 8216 in 2017 by IETF. The tags for the HLS playlist begin with “#EXT-X-”. Given below is a list of tags for HLS

The following is the list of Internet media types used by M3U:

M3U Example

This is an example of the M3U file.

#EXTM3U
 
#EXTINF:111, Sample artist name - Sample track title
C:\Music\SampleMusic.mp3
 
#EXTINF:222,Example Artist name - Example track title
C:\Music\ExampleMusic.mp3

References

 reproduced in https://docs.fileformat.com/audio/m3u/

标签:What,Media,M3U,HLS,playlist,EXT,file
来源: https://www.cnblogs.com/1314h/p/16688834.html