Convert your M3U to STRM files for Kodi/Emby on your Linux machine
HOW TO USE
cd «this directory» && wget «url to m3u8 file» -O vod.m3u8 && ./m3u2strm.sh vod.m3u8 «output directory» «option»
Options:
1 = local file
2 = url to file
Set the output directory on line 196 & 206 in the php file to:
«your directory»/movies
«your directory»/tvshows
Example crontab (# crontab -e) that runs every monday at 22:00 hour:
0 22 * * 1 cd /opt/m3u2strm && wget http://mywebsite.online/mym3u8file -O vod.m3u8 && ./m3u2strm.sh vod.m3u8 /var/www/ftp/kodi 1
INSTALL NEEDED PACKAGES
- apt install php curl wget
- install php modules:
apt install php-cgi php-cli php-curl php-json php-mbstring php-yaml php-xml php-zip php-memcache php-memcached - enable php modules:
phpenmod curl && phpenmod mbstring && phpenmod yaml && phpenmod xml && phpenmod zip && phpenmod ctype
phpenmod exif && phpenmod fileinfo && phpenmod ffi && phpenmod ftp && phpenmod gettext && phpenmod iconv
phpenmod pdo && phpenmod phar && phpenmod posix && phpenmod shmop && phpenmod sockets && phpenmod sysvmsg
phpenmod sysvsem && phpenmod tokenizer && phpenmod readline && phpenmod memcache && phpenmod memcached - reboot system
![m3u2strm](https://erdesigns.eu/images/m3u2strm-linux-2.png)
This is a simple script written in Bash and PHP. You can edit it to your liking, you could even move the PHP part to the Bash script, or put everything in the PHP script and make it executable. If you need more functions, please send me a email and i will happily share more functions relating to IPTV, M3U and converting to STRM files.
These scripts are written by Ernst Reidinga, ERDesigns.eu https://erdesigns.eu/app/freeware/view/10
If you like our work, please like us on facebook: https://fb.me/erdesigns.eu Want to buy me a coffee? Send me a mail via the contact form on our website or send a message on FB and i will send my paypal address :)