[Libav-user] Getting a Frame question

Gonzalo GarramuƱo ggarra13 at gmail.com
Sun Sep 4 04:34:20 EEST 2016



El 03/09/2016 a las 17:55, M J escribiĆ³:
> Hi
>
> while(av_read_frame(input_ctx, pkts) == 0)
> {
>          //decoding
>          int ret1 = avcodec_send_packet(input_codecCtx, pkts);
>          int ret2 = avcodec_receive_frame(input_codecCtx, rawFrame);
>
>          //encoding
>          avcodec_send_frame(output_codecCtx, rawFrame);
>          avcodec_receive_packet(output_codecCtx, pktr);
>
>          int ret = av_interleaved_write_frame(output_ctx, pktr);
> }
> *************************************************
Hi, MJ.

AFAIK, the new API does not work yet.  Use the deprecated functions for 
the time being.



More information about the Libav-user mailing list