<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,</div><div><br></div><div>I'm using avcodec_encode_video2() and avcodec_encode_audio2() to encode video and audio raw data respectively. Can the two encoding function calculate dts/pts/duration of output packets itself? Or I'll calculate those timestamp values by using other method? Does ffmpeg provide examples to calculate those timestamp values?</div><div><br></div><div>Thanks!</div><div><br></div><div>Andrew</div></div><br><br><span title="neteasefooter"><p> </p></span>