<div dir="ltr">On Thu, Feb 27, 2014 at 10:16 PM, Anshul <span dir="ltr"><<a href="mailto:anshul.ffmpeg@gmail.com" target="_blank">anshul.ffmpeg@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><br>
<br>
Mert Gedik <<a href="mailto:gedikmert89@gmail.com">gedikmert89@gmail.com</a>> wrote:<br>
>Hello,<br>
><br>
>I've made a video player for iOS using ffmpeg libraries with the help<br>
>of<br>
>dranger tutorial.<br>
>It is working well, and now I want to add subtitle feature.<br>
><br>
>I know that, ffmpeg can decode internal subtitle stream, and for a long<br>
>investigation, I realized that subtitle filter can decode external<br>
>subtitle.<br>
><br>
>For example,<br>
>ffplay movie.mp4 -vf subtitles=movie.srt<br>
><br>
>This renders the external subtitle on the screen. I use render word ,<br>
>as<br>
>subtitles are drawn on the screen and when I resize to a bigger frame<br>
>size,<br>
>the text resolution becomes lower.<br>
><br>
>What I need is using the ffmpeg subtitle decoders but don't want to<br>
>render<br>
>it as fflay does, I want to get decoded subtitle data and show it in my<br>
>UILabel.<br>
><br>
>Is there a way to do this ?<br>
><br>
>Thanks for helping,<br>
><br>
>Regards,<br>
><br>
>-MG<br>
><br>
><br>
</div></div>>------------------------------------------------------------------------<br>
><br>
>_______________________________________________<br>
>Libav-user mailing list<br>
><a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
><a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
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.<br>
<span class=""><font color="#888888">--<br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Yes ,that's right how ever there are many subtitle formats and <div>I don't want to implement every subtitle parser by myself ...<div>
Ffmpeg has already many decoders for subtitles, therefore I want to find an easy way to pass subtitle file to ffmpeg.</div></div><div><br></div><div>but how to do this ?</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">
<br></div></div>