05:10
I'm writing a C program that takes series of PNG images and converts them into a video. Video consists of the initial black screen and then each of those images, shown for the same constant amount of time, say 200 ms. I'm using libx264 as codec and mp4 as output format. I'm compiling my program with GCC 12 on Ubuntu 22.04 LTS. I'm using ffmpeg version from Ubuntu repositories.
In order to achieve above behavior I've set time base to 1/5 in the both stream and codec.
// assume imageDuration = 200
AVRational timeBase;
av_reduce(&timeBase.num, (...)