I have found the solution by searching here: gst-launch-1.0 -v videotestsrc ! x264enc ! mpegtsmux alignment=7 ! srtsink uri=srt://:9988 mode=2 -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/