[Libav-user] AVIOInterruptCB and how to use it

Simon Brown simon.k.brown at gmail.com
Fri Nov 12 16:33:26 EET 2021


On Thu, 11 Nov 2021 at 22:06, <bsenftner at earthlink.net> wrote:

> You may need a modified version of av_read_frame(). See this:
>
>
>
> https://gist.github.com/bsenftner/ba3d493fa36b0b201ffd995e8c2c60a2
>
>
>
> 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.
>
>
>
> -Blake
>
>
> 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.

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.

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.

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.

Cheers,
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20211112/b7c1d8e5/attachment.htm>


More information about the Libav-user mailing list