Open zjd1988 opened 3 weeks ago
Just point Timebase and PTS.
Simplest way, set Timebase to the value inverted to required FPS, for example 1/60 and use sequential counter for the frames: 1, 2, 3, 4, ..., n. So, each frame time can be simple calculated in seconds: seq timebase = n 1 / 60.
Set timebase and PTS for the video_frame
.
Refer to:
Set same timebase for the Encoder too.
wonderful work!! Now I need to encode image sequence into file,I modify code from https://github.com/h4tr3d/avcpp/blob/master/example/api2-samples/api2-scale-video.cpp
but get errors:
my codes