[FFmpeg-devel] Can BSF delay packets?
hex000 at gmail.com
Mon Feb 6 15:45:03 EET 2017
Thank you for replying!
If I return 0 -- how the calling function determines that I've produced an
What do I do to signal caller that I don't want to produce an output packet?
On Mon, Feb 6, 2017 at 3:42 PM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> Hi Aleksey,
> On Mon, Feb 6, 2017 at 5:18 AM, Aleksey M <hex000 at gmail.com> wrote:
> > Hi dear FFMPEG contributors,
> > Does the bitstream filter (BSF) interface allow to delay packets?
> > From Luca's description
> > https://blogs.gentoo.org/lu_zero/2016/03/21/bitstream-filtering/
> > it looks like it can produce any number of output packets or consume any
> > number of input packets.
> > But any attempt to return AVERROR(EAGAIN) results in FFMPEG interrupting
> > processing saying 'Timestamps are unset in a packet...H.264 bitstream
> > malformed".
> > Could anyone point me in the right direction? Or give a working example
> > just delaying by a single packet?
> > For example, should this filter consume all input packets without
> > output?
> > AVPacket* in = NULL;
> > int result = ff_bsf_get_packet(ctx, &in);
> > if (result < 0)
> > return result;
> > av_packet_free(&in);
> > return AVERROR(EAGAIN);
> > But it interrupts processing.
> Just return 0, not EAGAIN. Delay is allowed, yes.
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
More information about the ffmpeg-devel