Connection lost on some channels (failed encoding)

When remote streaming to both an iPad Pro and Apple TV some channels work and others get a “connection lost” error. Also how can I identify if HW encoding is active by the logs?

2017/09/26 16:30:30 [TNR] Opened connection to 131F8367 for ch1147
2017/09/26 16:30:31 [HLS] Probing live stream for codec/bitrate took 770.2208ms
[h264_qsv @ 0000000002e731e0] Error during encoding: device failed (-17)
Video encoding failed
2017/09/26 16:30:50 [TNR] Closed connection to 131F8367 for ch1147
2017/09/26 16:31:08 [TNR] Opened connection to 131F8367 for ch1141
[h264_qsv @ 000000000250b420] Error during encoding: device failed (-17)
Video encoding failed
2017/09/26 16:31:29 [TNR] Closed connection to 131F8367 for ch1141
2017/09/26 16:32:16 [TNR] Opened connection to 131F8367 for ch1147
2017/09/26 16:32:17 [HLS] Probing live stream for codec/bitrate took 630.167ms
2017/09/26 16:33:29 [TNR] Closed connection to 131F8367 for ch1147
av_interleaved_write_frame(): Broken pipe
Error writing trailer of pipe:: Broken pipe
2017/09/26 16:40:27 [TNR] Opened connection to 131F8367 for ch1147
2017/09/26 16:40:29 [HLS] Probing live stream for codec/bitrate took 1.2051156s
2017/09/26 16:42:05 [TNR] Closed connection to 131F8367 for ch1147
av_interleaved_write_frame(): Broken pipe
Error writing trailer of pipe:: Broken pipe

Same as Transcoding failing on Windows (device failed -17)

The log only states what transcoder is being used when I’m using the web view, is there a way to log this when remotely streaming to tvOS?

We plan to change the remote streaming in the app to use the same streaming method as the web player, which should fix some of the issues with it.