MpegTV (trial version was stopped for newcomers)
     (FORUM LINK)

What is mpegtv?
MpegTV is an mpegts streamer/restreamer (for ubuntu 18.04 64bits) 
features:
 - Written in C (Amd64 direct machine code no scripting/emulation/virtualisation)
 - Built-in h262,h264 and h265 analyser (no need to ffmpeg for restreaming)
 - Mysql database storage.
 - Very fast clients connection and channel zapping (works smoothly even with ddos attack)
 - Easy clients,streams.. manipulation (add/edit/disable/enable/delete).
 - On-demand channels option.
 - picon, epg and series support.
 - MAG devices support, classic (c) and minimalist (n) portals.
 - full xtream-codes panel compatibility (get/panel_api/player_api)
 - unlimited loadbalancers, clients, stream, channels...
 - optimized search into database (treats 30000 clients as they are only 300)
 - very low cpu usage (can be installed on VPS).
 - multi level subreseller system.
 - built-in activecode and anti-bruteforce attack.
History log:

 [06.12.2019] mpegtv/slave (r294)
	- added series infos in player_api
	- added series and logos in enigma2.
	- fixed bouquet/category editor.
	- fixed web post replies.
	- fixed web pages (restream/channel/vod)
	- fixed portal.
	- fixed HLS output.
	- added slave/mpegtv update from panel (after this update you dont need to login via ssh to update your files)
	- fixed stream selection algorithm
	- streams with priority 100+ have streaming priority on other streams.
	- fixed freeze when using max-connected streams to 1
	- added streams/clients detailed infos
	- fixed loadbalance.
	- fixed max streams connections per restreamer.
	- fixed mpegtv/slave connection.
	- fixed internal functions.
	- many bug fixes.

 [23.11.2019] mpegtv/slave (r242)
	- web: added channels and servers json output.
	- web: moved channelList from static html page to javascript code (test before moving all pages to js)
	- added channel mass edit/delete/pause...
	- added auto refresh channel page.
	- web: added import channel from m3u8 file.
	- fixed hls output.
	- slave: speedup database loading.

 [17.11.2019] mpegtv/slave (r227)
	- fixed http requests receiver.
	- fixed multi-connection detection for clients with max_conn=1

 [15.11.2019] mpegtv/slave (r221)
	- Added Most Watched VOD
	- Fixed already used Mac info
	- Block multi-connection on same channel
	- Added flag to disable internal assets (js+css)

 [14.11.2019] mpegtv/slave (r217)
	- fixed channel redirection
	- fixed invisible auto-deleted client
	- fixed xmltv
	- added auto update
	- added VOD/files browser (insert/list/rename/delete/create/exec)
	- added HLS/m3u8 output only to normal clients.
	- fixed portal
	- reduced time to load data from mysql.
	- fixed creditlog pagination

 [06.11.2019] mpegtv/slave (r186)
	- added Restart slave/mpegtv 	 
	- fixed import channel 	 
	- fixed reseller inactivity timeout
	- fixed vod buffer overflow
	- enable active clients deletion
	- fixed expired clients deletion

 [05.11.2019] slave (r184)
	- fixed https links
	- fixed rtmp links
	- fixed VOD streaming (changed max speed to 8Mbps)

 [29.10.2019] mpegtv (r171)
	- Changed style (1st step)
	- Added delete buttons.
	- Auto-detect VOD location.

 [25.10.2019] slave (r158)
	- removed updated of r156 and r157.

 [24.10.2019] slave (r157)
	- fixed m3u8 reader causing high cpu usage.

 [23.10.2019] slave (r156)
	- fixed internal stream reader.
	- fixed url parser.
	- fixed http range causing video problems.

 [18.10.2019] mpegtv, slave
	- fixed palyer_api typo.
	- added missing request 'get_vod_info' in player_api.
	- fixed: send streams to clients.
	- fixed: change stream reader from ffmpeg to internal.
	- fixed create activecode.

 [17.10.2019] mpegtv
	- fixed api (please download 'files/api.tar.gz' for more infos)
	- fixed subreseller bug
	- fixed server bugs.
	- fixed player_api series infos.

 [12.10.2019] mpegtv, slave
	- fixed ondemand buffering (must update all slaves)
	- added more API requests
		/api.php?action=stb&sub=create
		/api.php?action=user&sub=create
		/api.php?action=user&sub=edit
		/api.php?action=user&sub=info
		/api.php?action=reg_user&sub=credits&amount=***&id=***
		/api.php?action=server&sub=list

 [10.10.2019] mpegtv, slave
	- fixed buffer overflow bug.
	- added ffmpeg stream reader (not available on ubuntu14)
	- fixed api request /api.php?action=user&sub=edit
	- fixed api request /api.php?action=user&sub=info

 [07.10.2019] slave
	- fixed loadbalance channel reconnection.
	- fixed ondemand.
	- fixed invalid url bug.

 [07.10.2019] mpegtv
	- fixed stalker wrong theme path.

 [06.10.2019] mpegtv, slave/14
	- fixed slave crash.
	- fixed mag, added series, added stalker 'path/theme/devices_list' in global config
	- added grace period for clients

 [03.10.2019] mpegtv, slave/14
	- fixed slave bug.
	- api.php: added user create/info/edit.
	- fixed web interface
	- added multi bouquet for clients.
	- fixed non-stop ondemand.

 [01.10.2019] slave
	- fixed stream reader.

 [30.09.2019]
	- fixed mpegtv, last update dont connect

 [28.09.2019] update slave_14, slave, mpegtv
	- fixed connection bug for good
	- fixed loadbalance

 [26.09.2019] update slave, mpegtv
	- fixed channel ondemand
	- fixed mpegtv conection bug (PLEASE UPDATE TO NEW VERSION)

 [25.09.2019] update mpegtv
	- added client search by mac address
	- fixed live links 'http://host:port/user/pass/id'
	- fixed mpegtv connection timeout when sending a huge database to slaves

 [24.09.2019]
	- import all series/vod database from xtream
	- fixed paiement system now by default prepaid.

 [22.09.2019]
	- fixed vod in mag, portal must be entred like that in mag: http://hostname:port/c/ (dont forget forward slash "/" after c)

 [21.09.2019]
	- fixed mag portal
	- xconv: added conversion of forced_country,reseller_notes,admin_notes from table users
	- xconv: identify channel server_id from database
GENERAL OPTIONS (/var/mpegtv/mpegtv.cfg)
HTTP PORT: <port value>
Listening port for HTTP server
MYSQL SERVER: <mysqlserver ip/host>
Mysql hostname
MYSQL USERNAME: <username>
Mysql connection
MYSQL PASSWORD: <passsword>
Mysql connection
MYSQL DATABASE: <database>
Mysql database name
FILE IP2COUNTRY: <path>
load ipcountry data from csv file
TRIAL INSTALLATION ON UBUNTU 18.04 (x86_64)
Install Mysql Server & ffmpeg libraries (main)
Ubuntu 18.04 (x86_64)
apt update
apt install ffmpeg libavcodec57 libavfilter6 libavformat57 mysql-server libmysqlclient20 xz-utils gzip unzip
Download and Extract files
wget -O /usr/local/bin/mpegtv http://infosat.org/mpegtv/files/mpegtv
chmod 755 /usr/local/bin/mpegtv
wget -O /usr/local/bin/slave http://infosat.org/mpegtv/files/slave
chmod 755 /usr/local/bin/slave
mkdir /var/mpegtv
cd /var/mpegtv
wget http://infosat.org/mpegtv/files/mpegtv-data.tgz
tar -xzf mpegtv-data.tgz
Edit Config (/var/mpegtv/mpegtv.cfg)
Setup your MYSQL server parameters: server, database, username and password
Installation will fail if you dont put the right password for mysql server knowing that most of users do
HTTP PORT: 8080
MYSQL SERVER: localhost
MYSQL USERNAME: *** MYSQL USERNAME ***
MYSQL PASSWORD: *** MYSQL PASSWORD ***
MYSQL DATABASE: mpegtv
Execution
Execute Main
mpegtv
Open now your browser and enter the server url with the http port
default login user: admin
default login pass: admin
Execute Slave Server
slave <port>
slave 9999
Convert Xtream-codes database to Mpegtv
Xtream to Mpegtv Converter
xconv ouputs sql requests for mpegtv database
Usage: xcon -u <mysql_username> -p <mysql_password> -d <xtream_database>

1. Download xconv
wget -O /usr/local/bin/xconv http://infosat.org/mpegtv/files/xconv
chmod 755 /usr/local/bin/xconv
2. Upload you Xtream_iptvpro dump in server
3. Create xtream_iptvpro database
echo "create database xtream_iptvpro" | mysql -p
4. Install xtream_iptvpro database
mysql -p --default-character-set=utf8mb4 xtream_iptvpro < xtream_iptvpro.sql
5. Get the converted database
xconv -u mysql_username -p mysql_password -d xtream_iptvpro > mpegtv.sql
6. Create mpegtv database
echo "create database mpegtv" | mysql -p
7. Update mpegtv database
mysql -p mpegtv < mpegtv.sql
Preview
Panel Screenshots







ActiveCode APP Screenshots