[FFmpeg-devel] Purely synthetic PTS and DTS...

Tony Di Croce dicroce at gmail.com
Mon Feb 12 00:44:41 EET 2018

I have video frames in a buffer in memory... and I know their frame rate
(and other information like resolution, etc)... I am attempting to mux this
video into an mp4... But I don't know how to set PTS/DTS appropriately. I
have two questions:

1) What should I set AVStream->time_base to?
2) How do I compute PTS/DTS per frame (given only a framerate)?

Thanks in advance!

More information about the ffmpeg-devel mailing list