<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 1, 2016 at 10:25 PM, Marc Rawji <span dir="ltr"><<a href="mailto:mrawji@gmail.com" target="_blank">mrawji@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello all,<div><br></div><div>I am trying to write an "external recorder". I think I have the code working, for at least one channel.</div><div><br></div><div>I can start on one channel, but I don't seem to be able to change channels:</div><div>For every channel, I recreate a new MPEG-TS using ffmpeg. I am using the same stream_id for all the channels, since each TS only has a single program in it. Would that be causing the error?<br></div><div><br></div><div><br></div><div>Thanks!</div><span class=""><font color="#888888"><div>Marc</div></font></span></div>
</blockquote></div><br></div><div class="gmail_extra">So, I have my setup partially working. I have an external recorder that (currently) has 2 channels. I can record each channel independently and I get good recordings. Pausing LiveTV works too.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I still can't change channels though.I get this error in the backend</div><div class="gmail_extra"><span style="color:rgb(24,54,145);font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;white-space:pre;background-color:rgb(248,238,199)">Stream handler died unexpectedly</span></div><div class="gmail_extra">Which, I think comes from here:</div><div class="gmail_extra"><a href="https://github.com/MythTV/mythtv/blob/4d24d54ef43164f1325fcbe914450b7dea37e28f/mythtv/libs/libmythtv/recorders/ExternalRecorder.cpp#L105">https://github.com/MythTV/mythtv/blob/4d24d54ef43164f1325fcbe914450b7dea37e28f/mythtv/libs/libmythtv/recorders/ExternalRecorder.cpp#L105</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">For what it's worth, if I interact with my ExternalRecorder from the command line, I can TuneChannel and the resulting output seems to work just fine.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Any pointers are hugely appreciated!</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra">Marc</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>