[FFmpeg-user] transcoding example outdated?

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Aug 22 22:08:54 EEST 2018

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.

Carl Eugen

More information about the ffmpeg-user mailing list