目录

GStreamer

教程

教程

常用命令

 播放RTSP:gst-play-1.0 rtsp://10.1.203.155:8554/test
 无压缩组播:gst-launch-1.0 -v -e videotestsrc ! rtpvrawpay ! udpsink host=239.255.1.1 port=8080 multicast-iface=ens33
 组播接收测试:gst-launch-1.0 -v -e udpsrc multicast-group=239.255.1.1 port=8080 multicast-iface=ens33 auto-multicast=1 ! fakesink dump=1
 视频缩放:gst-launch-1.0 filesrc location=/home/hug/Downloads/12.mp4 ! decodebin name=d d. ! queue  ! videoscale ! video/x-raw,width=860,height=480 !  autovideosink
 RTSP视频点播,本地播音频: ./test-launch "( filesrc location=/home/hug/Downloads/12.mp4 ! decodebin name=d d. ! queue  ! videoscale ! video/x-raw,width=360,height=240 ! autovideoconvert ! x264enc bitrate=500 !  h264parse ! rtph264pay name=pay0 pt=96 d. ! queue ! audioconvert ! autoaudiosink )"

编译安装

源码下载地址:https://gstreamer.freedesktop.org/src/ 核心