[FFmpeg-devel] [PATCH 2/2] libx264: Pass the reordered_opaque field through the encoder
Derek Buitenhuis
derek.buitenhuis at gmail.com
Wed Oct 31 16:04:18 EET 2018
On 30/10/2018 19:49, Martin Storsjö wrote:
> Hmm, that might make sense, but with a little twist. The max reordered
> frames for H.264 is known, but onto that you also get more delay due to
> frame threads and other details that this function within x264 knows
> about. So that would make it [H264 max reordering] + [threads] +
> [constant] or something such?
Looking at the source, it's more complicated than that, with e.g.:
h->frames.i_delay = X264_MAX( h->frames.i_delay, h->param.rc.i_lookahead );
I think you're better off not trying to duplicate this logic.
- Derek
More information about the ffmpeg-devel
mailing list