Try the "for" command to make a list
here are my notes on making one that was successful some time ago adding the different parts of the command will become apparent as you experiment
by the looks of you FFmpeg command your plenty smart to make it work
make a list of names for ffmpeg (they where ran as a script and the list was some 40 Mp4's)
for f in
.mp4; do echo file \'$f\' >> filelist.txt; done
worked for file
I needed to add <source src="nambia1.mp4" type="video/mp4">
so I ended up with this
for f in .mp4; do echo {name: \"$f\" \,src: \"$f\"\}, >> filelist1.txt; done
{name: "2Pac Dr.Dre - California Love.mp4" ,src: "2Pac Dr.Dre - California Love.mp4"},
What I was doing was turning a long list of .mp4 files to .Mp3 and needed the list to concate and run through FFmpeg to make the conversion. in the end the "list" was a txt file which could be you IPTV list
this will not make individual muxes but could be an "automatic" file
good luck
Clint