[FFmpeg-user] transcoding example outdated?

Jeroen Ooms jeroenooms at gmail.com
Wed Aug 22 23:54:52 EEST 2018


On Wed, Aug 22, 2018 at 9:08 PM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 2018-08-22 17:57 GMT+02:00, Jeroen Ooms <jeroenooms at gmail.com>:
>> I'm trying to write a small C program to convert a set of png files
>> into a video, but I'm having a hard time finding the right apis.
>>
>> I had a look at doc/examples/transcoding.c (ignoring the audio stuff)
>> but when I compile this example I get deprecation warnings for
>> avcodec_encode_video2 and avcodec_decode_video2.
>>
>> Which API should I be using to encode a few images into a video?
>
> The replacements avcodec_send_frame()/avcodec_receive_packet()
> are mentioned both on top of avcodec.h and in documentation of the
> deprecated functions.

Are these drop-in replacements that I can use literally in this example?


More information about the ffmpeg-user mailing list