IPTV using Playon
#1
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:
Code:
pipe:///usr/bin/ffmpeg -loglevel fatal -i http://192.168.1.116:54479/directvnow-a2d29a9b1f3d4ffdd5d0d49e936/main.m3u8 -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:
Code:
2017-04-24 20:26:59.120 spawn: Executing "/storage/tvhscripts/amc.sh"
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/amc.sh has full read/write access and contains the following:
Code:
#!/bin/bash
exec /usr/bin/ffmpeg -loglevel fatal -i http://192.168.1.116:54479/directvnow-a2d29a9b1f3d4ffdd5d0d49e936/main.m3u8 -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.
Reply
#2
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.
Reply
#3
I also posted this over at tvheadend.org (http://tvheadend.org/boards/4/topics/25811) 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.
Reply
#4
I realize this post is a little old, but how are you getting playon to play via .m3u8?  I've been trying to locate anything on this, but have been unable to.
Reply

Logout Mark Read Team Forum Stats Members Help
IPTV using Playon0