Jump to content

Making an M3u


Joturos

Recommended Posts

Can someone please help me make an infinity loop M3u with several files so that’s it’s like my own channel 

 

using mp4files to loop a M3u without stopping 

Link to comment
Share on other sites

EODCrafter
6 minutes ago, Joturos said:

Can someone please help me make an infinity loop M3u with several files so that’s it’s like my own channel 

 

using mp4files to loop a M3u without stopping 

Hi, it's not really clear what your asking. m3u's don't contain files, they have links and how does a mp4 loop a m3u?

Sample m3u.....

#EXTM3U
#EXTINF:-1 tvg-name="Santa Live From The North Pole Grotto (D)" tvg-logo="https://www.pngkit.com/png/detail/473-4739724_merry-christmas-png-image-free-download-searchpng-christmas.png" group-title="CHRISTMAS 2021", Santa Live From The North Pole Grotto (D)
http://491214a0245a:9003/live/test/test/2183118.ts

 

Edited by EODCrafter
Link to comment
Share on other sites

What I’m trying to do is make a constant loop something like a playlist that loops over and over with the files in the playlist 

Link to comment
Share on other sites

EODCrafter
1 minute ago, Joturos said:

Like a 24/7 iptv channel but for emby 

Ahh, i do have a script somewhere to make your videos into a m3u. I'll search for it.

 

Edited by EODCrafter
Link to comment
Share on other sites

EODCrafter
2 minutes ago, Joturos said:

And would that go under emby live tv section?

you add it just like a m3u

 

Link to comment
Share on other sites

EODCrafter
5 minutes ago, neik said:

Isn't the Virtual TV plugin doing exactly that?

You might wanna read that.

Looks like a much more elegant solution!

Link to comment
Share on other sites

EODCrafter
6 minutes ago, Joturos said:

Ok so do I try that plug-in or wait for script?

I just asked the Author on Discord for the script, he's in Germany so it may be awhile. I don't know anything about that plugin...Sry

Link to comment
Share on other sites

EODCrafter

You can also do this on vlc....1. open folder containing vidoes VIA `open media` 2. save to playlist myVids.m3u. Creates a m3u with file Links!

#EXTM3U
#EXTINF:3033,Star.Trek.TOS.S01E18.Arena.mkv
file:///media/fith/Media/Star%20Trek/Season%201/Arena/Star.Trek.TOS.S01E18.Arena.mkv
#EXTINF:0,A Taste of Armageddon

REF:

Using VLC

Edited by EODCrafter
Link to comment
Share on other sites

kanipek
Link to comment
Share on other sites

EODCrafter

just in case you want the "old school" method ;)

#!/bin/bash

subdir="TVRIPS"						### subdir to look for and add to path

startpath="/mnt/cache/Media/"		### main place where to look for
addpath="http://192.168.1.83:888/"	### add to m3u as base path
searchpattern="*.mkv"				### what type of files to look for
m3upath="/mnt/user/appdata/"		### output path for m3u

####################################

cd $startpath$subdir

rm $m3upath$subdir.m3u

echo "#EXTM3U" >> $m3upath$subdir.m3u

find . -mindepth 1 -iname $searchpattern|sed "s|^\./||"|while read fname; do

	filepath=$(dirname "$fname")
	seasonname=$(dirname "$filepath")

	sourcefile=$(basename "$fname")
	filenameonly="${sourcefile%.*}"

if [ "$seasonname" = "." ]; then
	seasonname="$filenameonly"
fi

echo '#EXTINF:0 group-title="'$seasonname'",'$filenameonly'' >> $m3upath$subdir.m3u
echo "$addpath$subdir/$fname" >> $m3upath$subdir.m3u

done

To Loop...I assume that is available in the Emby player? never had a desire to research that.

Edited by EODCrafter
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...