oddity-ai / video-rs

Video readers, writers, muxers, encoders and decoders for Rust based on ffmpeg libraries.
Apache License 2.0
248 stars 31 forks source link

Add frame-specific seeking #45

Closed arrizalamin closed 2 months ago

arrizalamin commented 3 months ago

I added a new seek_to_frame method for seeking to specific frames in the video stream. The decoder's buffer is now flushed after to prevent potential artifacts or inconsistencies that could occur when processing frames immediately after a seek operation.

gerwin3 commented 2 months ago

Thanks!