🐷

How Can I Make My Own IPTV Playlist or Channel?

2022/09/14に公開

How Can I Add Channels from IPTV to My Playlist?

Right-click the playlist name in the context menu of the file playback screen at the top and select Add to Playlist from the menu. The other IPTV channels you want to add to the list should be treated similarly. Click Proceedings first, then Library, and finally Export playlist in iTunes to export the playlist.

Custom channels or playlists from the provider

IPTV operators can use Flussonic to build custom playlists on the server and share video files and streams via these playlists.

You may, for instance, develop an information channel (info channel), a unique channel where you can educate your subscribers of essential information and promote new services. Or it may be a television network that shows movies.

A playlist that refers to sources (such files and streams) that are stored on Flussonic Media Server is technically referred to as a custom channel. A custom playlist can play the sources repeatedly and run on a schedule.

We'll give an example of a channel that plays pre-made video files on the air.
You must first prepare content (video files) and then make a playlist for the broadcast before you can begin broadcasting. Lastly you can establish a stream to distribute the playlist.

Then, you can configure how to:

  1. Add a logo;
  2. Schedule the video's launch.
  3. UDP multicast your channel's content.

Making a playlist

The files in our playlist will be used. Refer to Server-Side Playlists for more information on how to add streams to a playlist.

Important. Codecs, resolution, and bitrate must all be identical across files and other sources.

Step 1: Establish a location for storing files.

Place the files in the designated directory after specifying the path to a directory containing video files.

The default directory for files is /opt/flussonic/priv, and it is already present in the configuration file /etc/flussonic/flussonic.conf.

Example of the default path:

vod vod {
  storage /opt/flussonic/priv;
}
or:
# VOD locations:
vod vod {
  storage priv;
}

Place the files in the specified directory. In the example, we'll use bunny.mp4 and beepbop.mp4, which already exist in /opt/flussonic/priv/.

Step 2: Create a playlist.

A text file called Playlist contains a list of sources' links. We'll use the Linux text editor nano to edit the playlist.

Run the following instructions to set up nano: Create a file after running

apt-get install nano

The editor opens the file right away.
Create a file playlist.txt in the directory /opt/flussonic/priv/ by using this command:

nano /opt/flussonic/priv/playlist.txt

Add links to the broadcast-ready video files at this time.

vod/beepbop.mp4

Step 3. Construct a stream.

The configure file should be expanded. In the UI, you can make a static stream: Click Add under Media > Streams. Indicate the URL and stream name. See Live streaming for details on static streams.

Run the following command on the Linux command line to reload the server configuration:

1) Add to the configuration file /etc/flussonic/flussonic.conf the directive stream NAME:
  input playlist:///opt/flussonic/priv/playlist.txt;
}

Alternatively, you can create a static stream in the UI: Media > click add next to Streams. Specify the stream name (infochannel) and URL (playlist:///opt/flussonic/priv/playlist.txt).
For information about static streams, see Live streaming.

2) Reload the server configuration by running this command in the Linux command line:

service flussonic reload
The web interface's Media > Streams section will display a new stream that will play the given files repeatedly. You can play it to see how it functions.

Including a logo and establishing the schedule

Transcoding is used in our example to create a logo, and it is a resource-intensive process. By using this technique, a logo is burned into the video stream. Channels transmitted using IPTV networks can use it.

An image file in PNG format is required to add a logo. Let's utilize it as your video stream's logo. The logo appears in the top left corner of the screen after reloading the server settings.
/opt/flussonic/wwwroot/flu/images/erly-small.png. Let's use it as a logo in your video stream.
Add the transcoder directive to the infochannel stream settings and specify erly-small.png as the logo:

  input playlist:///opt/flussonic/priv/playlist.txt;
  transcoder vb=2048k logo=/opt/flussonic/wwwroot/flu/images/erly-small.png@10:10 ab=128k;

Creating the timetable Open the playlist.txt file you previously made.

You can specify the playback duration for each playlist item using the control command #EXTINF. Then shows the first 30 seconds of the first file and the first 60 seconds of the second file, for instance.

The Unix Timestamp of the time you wish to play the playlist item can be set with the tag.

The playlist item's start time, in ISO 8601 format, can be specified using the tag.
Open playlist.txt that you created earlier.

With the #EXTINF tag (control command), you can set the playback duration for each playlist item. For example, broadcast the first 30 seconds of the first file and the first 60 seconds of the second file:

30
vod/bunny.mp4
#EXTINF:60
vod/beepbop.mp4

With the tag #EXT-X-UTC, you can set the Unix Timestamp of the time when you want to play the playlist item:

1522839600
vod/bunny.mp4
#EXT-X-UTC:1522843200
vod/beepbop.mp4

Using the #EXT-X-PROGRAM-DATE-TIME tag, you can set the start time of the playlist item, in the ISO 8601 format:

2018-04-04T11
vod/bunny.mp4
#EXT-X-PROGRAM-DATE-TIME:2018-02-04T12:00:00Z
vod/beepbop.mp4

Channel distribution through UDP multicast

Add a multicast address and the push directive to the stream's settings for local network distribution.

  input playlist:///opt/flussonic/priv/playlist.txt;
  transcoder vb=2048k logo=/opt/flussonic/wwwroot/flu/images/erly-small.png@10:10 ab=128k;
  push udp://239.0.0.1:1234;
}

Conclusion

IPTV operators can use Flussonic to build custom playlists on the server and share video files and streams via these playlists. IPTV channels you want to add to the list should be treated similarly. Click Proceedings first, then Library, and finally Export playlist in iTunes to export the playlist.

Discussion