[Libav-user] Decoding external subtitles

Anshul anshul.ffmpeg at gmail.com
Thu Feb 27 21:16:08 CET 2014

Mert Gedik <gedikmert89 at gmail.com> wrote:
>I've made a video player for iOS using ffmpeg libraries with the help
>dranger tutorial.
>It is working well, and now I want to add subtitle feature.
>I know that, ffmpeg can decode internal subtitle stream, and for a long
>investigation, I realized that subtitle filter can decode external
>For example,
>ffplay movie.mp4 -vf subtitles=movie.srt
>This renders the external subtitle on the screen. I use render word , 
>subtitles are drawn on the screen and when I resize to a bigger frame
>the text resolution becomes lower.
>What I need is using the ffmpeg subtitle decoders but don't want to
>it as fflay does, I want to get decoded subtitle data and show it in my
>Is there a way to do this ?
>Thanks for helping,
>Libav-user mailing list
>Libav-user at ffmpeg.org

Srt files are simple text file with there timing, if you have time of each audio frame, then at the same time u can read srt file directly and at correct time you can change ur ui label.
Sent from my Android device with K-9 Mail. Please excuse my brevity.

More information about the Libav-user mailing list