<div dir="ltr"><div dir="ltr">On Thu, 11 Nov 2021 at 22:06, <<a href="mailto:bsenftner@earthlink.net">bsenftner@earthlink.net</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="gmail-m_-7136985491417022483WordSection1"><p class="MsoNormal">You may need a modified version of av_read_frame(). See this:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><a href="https://gist.github.com/bsenftner/ba3d493fa36b0b201ffd995e8c2c60a2" target="_blank">https://gist.github.com/bsenftner/ba3d493fa36b0b201ffd995e8c2c60a2</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">That’s for an earlier version of the libs, but you can see at line 31, the modification is simply providing a hook for the interrupt callback.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">-Blake<u></u><u></u></p><p class="MsoNormal"><br></p></div></div></blockquote><div>Thanks, that was really useful.  And I notice that my version of the code doesn't have those lines in, so I added them in.</div><div><br></div><div>And I get the same result.  I've rebuilt ffmpeg and re-installed the libraries following that change, and so I thought I'd also try seeing what happened if I just ran it using ffmpeg commandline.</div><div><br></div><div>The result was almost identical, but I put loglevel debug on to see what it was doing in av_read_frame when it hung, and I get NOTHING.  So I'm back at square one.</div><div><br></div><div>Basically I'm trying to run an intercom style system, where data is sent when the push to talk button is on, and then the stream is stopped when it gets released.  But when you press to talk again the whole thing is stalled and won't restart.  I'm using the Opus codec.</div><div><br></div><div>Cheers,</div><div>Simon </div></div></div>