Jan Pohanka wrote: I set the fps to 5 (which is the rate I get the images from > cmos sensor) by setting VUI params num_units_in_tick = 1000 and > time_scale = 5000. You are writing the wrong value. In h264, num_units_in_tick/time_scale is the duration of one FIELD, not the duration of one FRAME. Mike Scheutzow