I want to read and write subtitle stream
ffmpeg -i E:/Video/Waka.mp4 -vf subtitles=E:/Video/Waka.srt out.mp4
equivalent code in c or c++ and please provide how to add subtitle stream and encoding parameter, what is procedure to read subtitle stream and render at screan
Subtitle Stream encode and while decoding we find data stream so dnt worry just get data with stream index while reading packet.