<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,</div><div><br></div><div>I use avcodec_encode_video2() to encode video, which can produce pts/dts based on codec time base.</div><div><br></div><div>But when I use <span style="line-height: 1.7;">avcodec_encode_audio2() to encode audio frames, and audio codec is </span>AV_CODEC_ID_AAC,<span style="line-height: 1.7;"> I can't get pts/dts after returning from the function. Why? Doesn't ffmpeg support this function yet? </span></div><div><span style="line-height: 1.7;"><br></span></div><div><span style="line-height: 1.7;">Thanks!</span></div><div><span style="line-height: 1.7;"><br></span></div><div>Andrew</div></div><br><br><span title="neteasefooter"><p> </p></span>