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

Li Zhang lizhang at utelisys.com
Tue Mar 20 11:32:49 CET 2012


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

________________________________________
From: libav-user-bounces at ffmpeg.org [libav-user-bounces at ffmpeg.org] On Behalf Of Alex Cohn [alexcohn at netvision.net.il]
Sent: Tuesday, March 20, 2012 11:26 AM
To: This list is about using libavcodec, libavformat, libavutil,        libavdevice and libavfilter.
Subject: Re: [Libav-user] What is the meaning of return value -1 for    av_interleaved_write_frame()

On Tue, Mar 20, 2012 at 12:21, Li Zhang <lizhang at utelisys.com> wrote:
>
> Hi ,
>
> I used av_interleaved_write_frame() to write frames into output. At first, it works well. After a while, it will fail and return value is -1.
> Actually, it only failed for video frame, and ffmpeg did not give out any message, i. e. it still gave out this information for the 701st frame:
> frame= 701 QP=24.73 NAL=2 Slice:P Poc:108 I:14   P:1310 SKIP:2276 size=5413 bytes. In fact, this frame was not been written.
> Does there anyone know what is the meaning?
>
>
> Best regards,
>
> Li

What kind of output are you using? Is it a file or a stream? What
container format?

BR,
Alex
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


More information about the Libav-user mailing list