[FFmpeg-devel] Fwd: Errors when getting data from RTSP source

Ronald S. Bultje rsbultje
Thu Jul 9 22:46:02 CEST 2009


Hi,

On Thu, Jul 9, 2009 at 4:40 PM, Stas Oskin<stas.oskin at gmail.com> wrote:
> Ok, so just buffering the coming packets, and re-ordering them according to
> sequence, would do the trick?

That's about as easy as it could be. Only buffer when out-of-order, of course.

> Any advised details, such as how many re-ordered packets may arrive (which
> translates, to how large such buffer/list should be)?

That's the difficult part. :-). Use dyn_buf for the buffer list (part
of lavf API), and don't make it grow too big (MBs, #packets, etc.).
Also allow for re-requesting lost packets. RTSP-MS supports this, I'm
sure others also do.

> Another question, is this seq variable exposed in any way to external
> applications (which use libavcodec)?

No.

Ronald



More information about the ffmpeg-devel mailing list