On 5/4/2019 12:06 PM, Moritz Barsnick wrote:
> On Fri, May 03, 2019 at 23:47:47 -0300, James Almer wrote:
>> The flush() callback exists to reset the bsf into its initial state
>> without the need to destroy and recreate the context.
>> For example, some decoders auto-insert certain bitstream filte
On Fri, May 03, 2019 at 23:47:47 -0300, James Almer wrote:
> The flush() callback exists to reset the bsf into its initial state
> without the need to destroy and recreate the context.
> For example, some decoders auto-insert certain bitstream filters that
[...]
> avcodec_flush_buffers(), which mus
On 5/2/2019 7:42 AM, Moritz Barsnick wrote:
> On Wed, May 01, 2019 at 12:03:41 -0300, James Almer wrote:
>>> +if (pkt->pts != AV_NOPTS_VALUE) {
>>> +int64_t pts = av_rescale_q(pkt->pts, bsf->time_base_in,
>>> AV_TIME_BASE_Q) / ctx->speed;
>>> +int64_t now = av_gettime_relative(
On 02-05-2019 04:12 PM, Moritz Barsnick wrote:
On Wed, May 01, 2019 at 12:03:41 -0300, James Almer wrote:
+if (pkt->pts != AV_NOPTS_VALUE) {
+int64_t pts = av_rescale_q(pkt->pts, bsf->time_base_in, AV_TIME_BASE_Q) /
ctx->speed;
+int64_t now = av_gettime_relative();
+
On Wed, May 01, 2019 at 12:03:41 -0300, James Almer wrote:
> > +if (pkt->pts != AV_NOPTS_VALUE) {
> > +int64_t pts = av_rescale_q(pkt->pts, bsf->time_base_in,
> > AV_TIME_BASE_Q) / ctx->speed;
> > +int64_t now = av_gettime_relative();
> > +int64_t sleep = pts - now + ct
On 5/1/2019 11:13 AM, Moritz Barsnick wrote:
> Works for video and audio streams.
>
> Similar to the "-re" option in ffmpeg, but unlike that option does not
> only work for input files, and is not only implemented for the
> command line tool. This filter is available through the libraries,
> and u
Works for video and audio streams.
Similar to the "-re" option in ffmpeg, but unlike that option does not
only work for input files, and is not only implemented for the
command line tool. This filter is available through the libraries,
and unlike the "realtime" filter also works when using the "co