]> git.videolan.org Git - x264.git/commit
Interactive encoder control: error resilience
authorJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 24 Jun 2010 00:29:34 +0000 (17:29 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Fri, 25 Jun 2010 07:43:39 +0000 (00:43 -0700)
commit57b2e56d247c009b390592c2cdea7fc7a4100124
treee231b6b124f7d18d58ac2ee90432855438300f64
parent7865fcb4093c39ec13def8a1cd14a7e67ddd8066
Interactive encoder control: error resilience
In low-latency streaming with few clients, it is often feasible to modify encoder behavior in some fashion based on feedback from clients.
One possible application of this is error resilience: if a packet is lost, mark the associated frame (and any referenced from it) as lost.
This allows quick recovery from errors with minimal expense bit-wise.

The new i_dpb_size parameter allows a calling application to tell x264 to use a larger DPB size than required by the number of reference frames.
This lets x264 and the client keep a large buffer of old references to fall back to in case of lost frames.
If no recovery is possible even with the available buffer, x264 will force a keyframe.

This initial version does not support B-frames or intra refresh.
Recommended usage is to set keyint to a very large value, so that keyframes do not occur except as necessary for extreme error recovery.

Full documentation is in x264.h.

Move DTS/PTS calculation to before encoding each frame instead of after.
Improve documentation of x264_encoder_intra_refresh.
common/common.c
common/common.h
common/frame.c
common/frame.h
common/mvpred.c
encoder/encoder.c
encoder/set.c
x264.h