Thread Rating:
  • 0 Vote(s) - 0 Average
IPTV using Playon
Here is my setup:
  • Playon
  • DirectTV Now subscription
  • HTS Tvheadend 4.1.2415 ~ LibreELEC Tvh-addon v8.1.109

I'm able to get the stream to start in Kodi if I create a mux in Tvheadend and use the following for the URL:
pipe:///usr/bin/ffmpeg -loglevel fatal -i -c copy -flags +global_header -strict -2 -metadata service_provider=Comedy_Central -metadata service_name=Comedy_Central -f mpegts pipe:1

The problem that I have is that when I first try to tune to that stream it times out. If I try to go to the same channel the second time, it works just fine. I think the problem is that Playon doesn't create the file to stream until after that URL is hit the first time so when I try it the second time the file has been created and it's able to tune to it.

I've tried adding -timeout, -stimeout, and -listen_timeout but without success.

I've also tried creating a bash script to call that url twice but I can't get it to successfully call it even once.

I get the following in the log:
2017-04-24 20:26:59.120 spawn: Executing "/storage/tvhscripts/"
2017-04-24 20:26:59.122 mpegts: AMC in IPTV Automatic Network - scan no data, failed
2017-04-24 20:26:59.122 subscription: 000C: "scan" unsubscribing

/storage/tvhscripts/ has full read/write access and contains the following:
exec /usr/bin/ffmpeg -loglevel fatal -i -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1

Any help on this would be greatly appreciated.
I believe your problem stems from Playon building a 30 second cache (or is it 60 seconds) of the content before creating the file. It starts downloading the content immediately but you cannot access it until the file is written with this initial data.
I also posted this over at ( and someone recommended using a bash script and doing a wget with the URL first and then the call to open it. The problem is that I can't get the bash script to work (even without the wget).

If someone has a working bash script that they used for IPTV in TVHeadend, that would be great.

IPTV using Playon00