Modified FFmpeg subs implementation