M3U playlist format for iPTV

Servicii I.P. TV & Televiziune Online
User avatar
ASiX88796
Site Admin
Posts: 2945
Joined: 12 Oct 2013 17:02
Location: Timișoara

M3U playlist format for iPTV

Unread postby ASiX88796 » 12 Sep 2020 19:13

»
Fișierele de tip M3U (Moving Picture Experts Group Audio Layer 3 Uniform Resource Locator) sunt fișiere ce conțin liste de fișiere (sau adrese de fișiere) multimedia.
Formatul M3U a fost dezvoltat inițial de firma Fraunhofer pentru a fi utilizat cu playerul lor Winplay3. În prezent, M3U este acceptat și chiar recomandat de foarte multe playere multimedia (KODi, VLC, MPlayer, iTunes, GNOME Videos, etc). Nu există specificații formale pentru formatul M3U; este un standard de facto.

Din punct de vedere tehnic, fișierul este de tipul text simplu, cu extensia M3U iar dacă conținutul este scris cu caractere din codarea UTF-8 atunci extensia este M3U8.

Sintaxa unui fișier M3U pentru un player iPTV este următoarea:

Code: Select all

    #EXTM3U tvg-shift=1
    #EXTINF:-1 tvg-id="id1" tvg-name="Channel_1" tvg-logo="logo1" tvg-chno="1" group-title="Group 1",Channel 1
    http://STREAMURL
    #EXTINF:-1 tvg-id="id2" tvg-name="Channel_2" tvg-logo="logo2" tvg-chno='2" group-title="Group 2",Channel 2
    udp://STREAMURL
    ...


Exemplu de fișier M3U cu o listă de adrese iPTV:

Code: Select all

#EXTM3U
#
#EXTINF:-1,Aleph News
https://stream-aleph.m.ro/Aleph/ngrp:Alephnewsmain.stream_all/playlist.m3u8
#
#EXTINF:-1 tvg-logo="https://i.imgur.com/7dCFWui.png",ViVA
https://hls.myvideocontent.ru/hls/vivarussia.m3u8
#
#EXTINF:-1 tvg-id="banattv" tvg-name="Banat TV" tvg-logo="https://i.imgur.com/coYteBh.png" group-title="Regional",Banat TV
rtmp://81.18.66.8/live/banat-tv.flv



Pentru o mai bună organizare a listei, fișierele M3U au fost îmbogățite cu numeroase TAG-uri și directive:

#EXTM3U
file header, must be the first line of the file

#EXTINF:
runtime in seconds and display title
In case of live TV links the duration has always to be 0 or -1

tvg-id
Corresponds to 'channel-id' field in the EPG xml file.
If missing from the M3U file, the addon will use the 'tvg-name' tag to map the channel to the EPG.

tvg-name
Corresponds to 'display-name' field in the EPG xml file. Space characters need to be replaced with '_' (underscore character).
If missing from the M3U file, the addon will use the 'channel-name' tag to map the channel to the EPG.

tvg-logo
Channel Logo filename; without the extension (.png).
If missing from the M3U file, the addon will use the 'channel-name' to find the logo.

tvg-shift
Defines the amount of time, in hours, to shift the EPG.
Use '#EXTM3U' to shift all channels.
Use '#EXTINF' to shift an individual channel.

tvg-chno
Corresponds to the channel number in Kodi.
Displays the number next the name of the channel.

group-title
Group name for user defined collection of channels.
If missing from the M3U file, the addon will use the group name from the previous channel.

radio
Is a flag that defined a group or a channel as a radio channel.
If missing from the M3U file, the addon will use the current group value, if one exists.

După cum se observă, lista iPTV dintr-un fișier M3U poate accesa informații EPG care însă sunt stocate într-un fișier extern în format XMLTV.

Sursa informațiilor:
- https://en.wikipedia.org/wiki/M3U
- https://ss-iptv.com/en/users/documents/m3u
- https://github.com/afedchin/xbmc-addon-iptvsimple/wiki/IPTV-Simple-Home
- https://kodi.wiki/view/Add-on:IPTV_Simple_Client
___________________________ ____ ___ __ _
» Mulţi vorbesc, puţini comunică.
rocky7
Standard User
Posts: 142
Joined: 01 Jun 2014 23:41

Re: M3U playlist format for iPTV

Unread postby rocky7 » 26 Aug 2021 11:55

Ai cumva si o descriere a formatului pentru adaugarea unui program iptv intr-o lista de favorite in receptoarele enigma 2?

Return to “IPTV & Streaming”

Who is online

Users browsing this forum: No registered users and 12 guests