[Libav-user] how to set timeout in rtmp plugin to avoid indefinite waiting?
net at point.com.mk
Tue Nov 8 16:05:14 EET 2016
On 08.11.2016 14:30, qw wrote:
> hi Marlon Mirchevski,
> How to submit my solution/update for the ticket issue?
> 在 2016-11-08 18:28:19，"Marlon Mirchevski" <net at point.com.mk> 写道：
> On 27.10.2016 13:01, qw wrote:
>> ffmpeg 2.8.6 is used to develop application, which reads rtmp
>> stream and does some video processing. 'AVIOInterruptCB
>> interrupt_callback' is used to avoid indefinite waiting if there
>> is no avpackets in network. But it doesn't work, and
>> avformat_open_input() waits forever. My source code is shown as
>> static int decodeInterruptCb(void *p)
>> return 1;
>> AVFormatContext *pIfmtCtx;
>> pIfmtCtx->flags |= AVFMT_FLAG_NONBLOCK;
>> pIfmtCtx->interrupt_callback.callback = decodeInterruptCb;
>> pIfmtCtx->interrupt_callback.opaque = NULL;
>> avformat_open_input(&pIfmtCtx, pInRtmpUrl, NULL, NULL);
>> callback function is set that intends to return immediately, Why
>> avformat_open_input() still waits for indefinite time?
>> Is there something wrong with the usage of ffmpeg lib?
> I think ticket #5615 have the same/similar problem.
> If that is, please bump/update it.
Register account on https://trac.ffmpeg.org/register
Here's some reading, nothing special: https://trac.ffmpeg.org/
And you can submit/update a bug trac.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user