write

open override fun write(frame: Frame, streamPid: Int)

Encodes a frame to MPEG-TS format. Each audio frames and each video key frames must come with an extra buffer containing sps, pps,...

Parameters

frame

frame to mux

streamPid

Pid of frame stream. Throw a NoSuchElementException if streamPid refers to an unknown stream