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 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:
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:
#!/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.