Successor to #82
After reporting the issue to GStreamer, it is discovered that "[the transcoded] file is quite badly muxed" and "this bad interleave causes us to send gap events that already advance the playback time, so the actual video frames then arrive almost 5s late".
Upstream issue in GStreamer is https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4264#note_2805727