diff --git a/README.md b/README.md index b8b692c..e32379a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# gstreamer-cheat-sheet +# GStreamer command-line cheat sheet This series of docs provides a cheat sheet for Gstreamer on the command-line. @@ -8,4 +8,10 @@ This series of docs provides a cheat sheet for Gstreamer on the command-line. * [Basics](basics.md) * [RTMP](rtmp.md) +## Sources and references + +* [Basic command line reference](http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+10%3A+GStreamer+tools) +* [More examples here](http://docs.gstreamer.com/display/GstSDK/gst-launch) +* [List of all Gstreamer plugins](https://gstreamer.freedesktop.org/documentation/plugins.html) +* [Handy elements](https://gstreamer.freedesktop.org/documentation/tutorials/basic/handy-elements.html#uridecodebin) diff --git a/basics.md b/basics.md index 38af3fe..3111bcd 100644 --- a/basics.md +++ b/basics.md @@ -14,7 +14,7 @@ or another way gst-launch-1.0 filesrc location=/Users/clarkm22/workspace/silver/assets/20160920-184500-danger-mouse-h264lg.mp4 ! qtdemux name=demux demux.audio_0 ! queue ! decodebin ! audioconvert ! audioresample ! autoaudiosink demux.video_0 ! queue ! decodebin ! videoconvert ! videoscale ! autovideosink ``` -# Play a video (no audio) +### Play a video (no audio) ``` gst-launch-1.0 -v uridecodebin uri="file:///Users/clarkm22/workspace/silver/assets/20160920-184500-danger-mouse-h264lg.mp4" ! autovideosink @@ -55,13 +55,13 @@ gst-launch-1.0 -v filesrc location="/Users/clarkm22/workspace/silver/assets/2016 Try also ‘rippletv’, ‘streaktv’, ‘radioactv’, ‘optv’, ‘quarktv’, ‘revtv’, ‘shagadelictv’, ‘warptv’ (I like), ‘dicetv’, ‘agingtv’ (great), ‘edgetv’ (could be great on real stuff) -## Resize video +### Resize video ``` gst-launch-1.0 -v filesrc location="/Users/clarkm22/workspace/silver/assets/20160920-184500-danger-mouse-h264lg.mp4" ! decodebin ! videoconvert ! videoscale ! video/x-raw,width=100 ! autovideosink ``` -Change framerate +### Change framerate ``` gst-launch-1.0 -v filesrc location="/Users/clarkm22/workspace/silver/assets/20160920-184500-danger-mouse-h264lg.mp4" ! decodebin ! videoconvert ! videorate ! video/x-raw,framerate=5/1 ! autovideosink @@ -76,7 +76,7 @@ gst-launch-1.0 -v \ autovideosink ``` -## Picture in picture +### Picture in picture ``` gst-launch-1.0 \ diff --git a/rtmp.md b/rtmp.md index 10c7dcc..59bf9af 100644 --- a/rtmp.md +++ b/rtmp.md @@ -24,7 +24,7 @@ gst-launch-1.0 uridecodebin uri='https://rtmp.api.rt.com/hls/rtdru360.m3u8' ! \ autovideosink ``` -### Stream TO an RTMP server +### Stream TO an RTMP server At the path '/live/x', with the server name in the environment variable `RTMP_SERVER`: