J Smith wrote:
> I can't say I've seen that myself, I would have thought thats more the frontend part that makes that decision?
>
> I stumbled across another post that gave me another idea - download the M3U, process it to include the pipe:/// ffmpeg aspects, then import into tvheadend. Something like:
>
> # Download m3u file
> wget "http:/iptv.com/username/xxxxxxxx"
>
> # Use perl to process, replace http with the full ffmpeg pipe http
> perl -pi -e 's/^http\:\/\//pipe\:\/\/\/usr\/bin\/ffmpeg\ \-loglevel\ fatal\ \-re\ -\i\ http\:\/\//g' <downloaded m3u file>
>
> # Find the .ts part of the address, add on tail of ffmpeg command
> perl -pi -e 's/\.ts/\.ts\ \-c\ copy\ \-f\ mpegts\ \-tune\ zerolatency\ pipe\:1/g' <downloaded m3u file>
>
> Then, add a new IPTV Automatic Mux, specify file:///path/to/processed/m3u-file for the URL, disable Use A/V Library if on 4.3, make sure to remember to set a stream limit otherwise you will spawn a shed load of ffmpeg processes!
>
> EDITED: only match http at the beginning of the line, to leave logos alone
I'm having a bit of a problem with the last step here. I think it's because the entries in my playlist file don't contain .ts.
Here's an example of an entry from my playlist file:
pipe:///usr/bin/ffmpeg -loglevel fatal -re -i http://xxxxx.xxxxx:xx/xxxxxx/xxxxxx/xxxx
The first perl bit seems to have worked as it's added the relevant pipe:/// bumf to the beginning of the line.
I think the last perl command needs editing a bit so it works for me, but I don't know how it should look for it to work.
Helllppp!! :D