Skip to content

Instantly share code, notes, and snippets.

@Zubnix
Last active June 9, 2017 20:24
Show Gist options
  • Save Zubnix/434979ec9772c9652d216f427abf68e2 to your computer and use it in GitHub Desktop.
Save Zubnix/434979ec9772c9652d216f427abf68e2 to your computer and use it in GitHub Desktop.
gst-launch-1.0 -v videotestsrc ! videoconvert ! video/x-raw,format=RGB,width=320 ! videoconvert ! video/x-raw,format=I420,width=320 ! x264enc ! rtph264pay ! rtpstreampay ! fdsink
@Zubnix
Copy link
Author

Zubnix commented Jun 9, 2017

Generates an example rgb video like one can expect from an application buffer, and subsequently encodes it to h264, wrapped in RTP for real-time streaming, prefixed with an rtp frame length to reliably read it from the std out stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment