Add sources

This commit is contained in:
Matthew Clark 2018-02-20 12:26:20 +00:00
parent 834c15d948
commit a1aa851c7d
3 changed files with 12 additions and 6 deletions

View file

@ -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)

View file

@ -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 \

View file

@ -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`: