Initialize RTMPPublisher encoder data before spawning threads