ffmpeg-the-third icon indicating copy to clipboard operation
ffmpeg-the-third copied to clipboard

Subtitle decoding api is inconsistent with video and audio decoding

Open Dr-42 opened this issue 2 years ago • 1 comments

For subtitles, there is just a decode method instead of the send_packet and receive frame. For that there needs to be a Frame(Subtitle) type in the frames folder I believe. Is this api design intentional?

I don't have much prior experience working with ffmpeg, I just want to shows subtitles using the egui-video crate in my own app.

Please and Thank you.

Dr-42 avatar Aug 28 '23 12:08 Dr-42

This is intentional. This Rust library is a relatively thin wrapper around the FFmpeg API, and they use a function called avcodec_subtitle_decode2 for subtitles instead of their usual packet-based API.

FreezyLemon avatar Jan 27 '24 18:01 FreezyLemon