<div dir="ltr"><div dir="ltr">Hi, Nuno!<br><br>Well, one of the possible approaches is -- set the proper pts for AVPacket-s you're muxing. <br>The basic formula is: <br>uint64_t pts = av_rescale_q(timestamp_ms, AVRational{1, 1000}, time_base);</div><div dir="ltr"><br></div><div dir="ltr">It's usually time or PTS that's specified for packets (and frame's time is usually derived from that), so most of the players take that into account when feeding frames for display. <br>You can check if your muxing is played at the wrong speed in the first place, then adjust PTS in code if needed.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">__________________________________________</div><div dir="ltr"><br></div><div dir="ltr">Regards, Alex</div></div></div></div></div></div></div>