I encode a new H.264 video muxed with audio in MP4 file.
How to correctly calculate PTS and DTS for AVPacket and AVFrame for video and audio?
I generate new video frames and new audio from my source. There are no original PTS/DTS information. I know frame rate which I need to use (time_base).