gstreamer笔记


https://gstreamer.freedesktop.org/documentation/tools/gst-inspect.html?gi-language=c

命令行:

1. gst-inspect-1.0  //打印有关 GStreamer 插件或元素的信息,

eg:gst-inspect-1.0   audiotestsrc //打印lib\gstreamer-1.0\gstaudiotestsrc.dll插件的信息

-a, --print-all  Print all plugins and elements

2. gst-launch-1.0 //构建并运行 GStreamer 管道  gst-launch-1.0 [OPTIONS] PIPELINE-DESCRIPTION

3. ges-launch-1.0 

eg: ges-launch-1.0 +clip qqqg.mp3//播放 从头到位

eg:ges-launch-1.0 +clip hama.mp4 inpoint=108.0 //从108秒开始播放到尾部

eg:ges-launch-1.0 +clip qqqg.mp3  inpoint=108.0  duration=20.0 //从108秒开始播放20秒

eg:ges-launch-1.0 +clip qqqg.mp3  inpoint=108.0  duration=20.0 start=20.0 //从108秒开始  等待20秒播放音频 持续20s

ges-launch-1.0 --track-types=audio +clip hama.mp4  //仅播放音频

ges-launch-1.0 +clip hama.mp4 layer=1 set-alpha 1.0 +clip ndh.mp4 layer=0 //同时播放 先layer=0

ges-launch-1.0 +clip ndh.mp4 +effect "agingtv"