How To Add Video For expire user or down Stream on XtreamCP

Today I will explain how you can add a video when a stream is down or a subscription for an expired client

The procedure is relatively easy and does not require much knowledge, you just have to be very careful and go through each step


1) Log in to the XtreamCP panel and go to Settings (top right corner) Then go to the Streaming tab and at the bottom you will find these 3 fields we need

How to use status videos? (banned, expired, down)
-Prepare your videos, it is up to your imagination.
--Transcode them to .ts files with this command.


2) Next you need to convert a video to .ts format in order to be displayed by the XtreamCP panel

You can also use different software to generate an mpegts file, I used ffmpeg for this tutorial

/home/xtreamcodes/iptv_xtream_codes/bin/ffmpeg -i /home/examplefolder/input.mp4 \
       -c:v mpeg2video -qscale:v 2 -c:a mp2 -b:a 96k \


Create a folder where you will upload the video you want to display

mkdir -p /home/xtreamcodes/iptv_xtream_codes/wwwdir/statusvideos


--Copy those videos into wwwdir/statusvideos folder.
--Add this into nginx.conf http broadcast server block like this and reload nginx.


 location /statusvideos {
         allow all;


Now that you have made all the changes you just need to restart the XtreamCP software with this command

sudo /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -s reload


If after the restart of the service you did not receive any error, it means that everything is fine

--And add links of these videos to panel settings>streaming tab and save.


If you need additional help, you can always find us on Telegram or Email

Was this answer helpful? 3 Users Found This Useful (6 Votes)