[Libav-user] What is the meaning of return value -1 for av_interleaved_write_frame()

Alex Cohn alexcohn at netvision.net.il
Wed Mar 21 08:38:32 CET 2012

On Tue, Mar 20, 2012 at 12:32, Li Zhang <lizhang at utelisys.com> wrote:
> The output is stream, which is send to a udp address real time using my customized output function.  The encoder is H264 and AAC. Container is TS.
> Every time, the video frame writing will fail first and then it is audio frame.
> Thanks!
> Best regards,
> Li

I would suspect your custom output function in the first place. If as
a result, write_packet() returns -1, or AVERROR(EPERM) - then this is
what you get.


More information about the Libav-user mailing list