oddity-ai / video-rs

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

Exposing time-base properties in codecs and key-frame check for packets. #25

Closed Rikharthu closed 11 months ago

Rikharthu commented 11 months ago

Added is_key method to Packet to expose key-frame flag of the packet to allow for key-frame search using Reader. Exposed time-base propeties of Decoder, DecoderSplit and Encoder to support explicit sourdce and destination PTS and DTS computation.

gerwin3 commented 11 months ago

Thanks!!