raspberrypi / picamera2

New libcamera based python library
BSD 2-Clause "Simplified" License
852 stars 181 forks source link

Make LibavH264Encoder flush frames out at the right rate when necessary #1014

Closed davidplowman closed 5 months ago

davidplowman commented 5 months ago

This means they'll get passed to FfmpegOutput at the rate that generates the correct timestamps. We avoid pacing the output like this when the output classes don't require it.

Currently not doing this for LibavMjpegEncoder because MJPEG files don't have timestamps.