Hi, Nuno!
Well, one of the possible approaches is -- set the proper pts for
AVPacket-s you're muxing.
The basic formula is:
uint64_t pts = av_rescale_q(timestamp_ms, AVRational{1, 1000}, time_base);
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.
You can check if your muxing is played at the wrong speed in the first
place, then adjust PTS in code if needed.
__________________________________________
Regards, Alex
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".