Skip to content

Instantly share code, notes, and snippets.

@touren
Last active November 24, 2016 05:49
Show Gist options
  • Save touren/13148bef8028e2605acfc59002e97c03 to your computer and use it in GitHub Desktop.
Save touren/13148bef8028e2605acfc59002e97c03 to your computer and use it in GitHub Desktop.
sudo apt-get install -y gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
gst-inspect-1.0 videotestsrc
gst-inspect-1.0 decodebin
gst-launch-1.0 filesrc location=test.mp4 ! decodebin ! fakesink
# will generate playlist.m3u8 and segment[nnnnn].ts live in current folder,
# server these files by HTTP server will get the hls stream.
gst-launch-1.0 videotestsrc is-live=true ! x264enc ! mpegtsmux ! hlssink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment