[libav-api] start timestamp of a live stream

Luca Barbato lu_zero at gentoo.org
Thu Dec 24 00:34:37 CET 2015


On 21/12/15 10:43, Florian Iragne wrote:
> Hi Luca,
> 
> Le 30/11/2015 17:10, Luca Barbato a écrit :
>> find_stream_info will be overhauled sooner or later, the flag
>> mentioned might help you (depending on the format)
> 
> Thanks for your answer. Just to make sure i'm using your advice correctly :
> 
>         if (_isLive) {
>             _iFormatCtx->flags |= AVFMT_FLAG_NOBUFFER;
>             AVIOInterruptCB int_cb = { interruptCallback, _timer };
>             _iFormatCtx->interrupt_callback = int_cb;
>             _iFormatCtx->probesize = 5000000;
>             _iFormatCtx->max_analyze_duration = 5000000;
>         }
> 
> i first set up things like this and then, i take my start timestamp just
> after avformat_find_stream_info.
> Is that the right way to do it?

Should be ok (sorry for the belated answer, I blame Thunderbird).

lu


More information about the libav-api mailing list