How to add dynamic logo and subtitle to the stream?

Hi, How to add dynamic logo and subtitle to the stream when transcoding?