以下的命令行是经过自己测试使用,在此记录下以供后续查看;

混图-可设置第二个视频位置
gst-launch-1.0 \
  filesrc location=test2.3gp ! qtdemux ! queue ! h264parse ! avdec_h264 ! \
  videobox border-alpha=0 top=-70 bottom=-70 right=-220 ! \
  videomixer name=mix sink_0::alpha=0.7 sink_1::alpha=0.5 ! \
  videoconvert ! xvimagesink \
  filesrc location=1_2.mp4 ! qtdemux ! queue ! h264parse ! avdec_h264 ! \
  mix.

混图-不设置第二视频位置
gst-launch-1.0 \
  filesrc location=test2.3gp ! qtdemux ! queue ! h264parse ! avdec_h264 ! \
  videomixer name=mix sink_0::alpha=1 sink_1::alpha=0.5 ! \
  videoconvert ! xvimagesink \
  filesrc location=1_2.mp4 ! qtdemux ! queue ! h264parse ! avdec_h264 ! \
  mix.

混音
gst-launch-1.0 \
  filesrc location=1_2.mp4 ! qtdemux ! queue ! aacparse ! faad ! \
  adder name=mix ! \
  audioconvert ! audioresample ! pulsesink \
  filesrc location=RE5_20_jt.mp4 ! qtdemux ! queue ! aacparse ! faad ! audioconvert ! audioresample ! \
  mix.

音视频播放
gst-launch-1.0 \
  filesrc location=1_2.mp4 ! qtdemux name=qt \
  qt. ! queue ! h264parse ! avdec_h264 ! videoconvert ! xvimagesink \
  qt. ! queue ! aacparse ! faad ! audioconvert ! audioresample ! pulsesink

两个音视频均混合
gst-launch-1.0 \
  filesrc location=zjl.mp4 ! qtdemux name=qt1 \
  qt1. ! queue ! h264parse ! avdec_h264 ! videomixer name=videomix sink_0::alpha=1 sink_1::alpha=0.8 sink_2::alpha=0.5 ! videoconvert ! xvimagesink \
  qt1. ! queue ! aacparse ! faad ! adder name=audiomix ! audioconvert ! audioresample ! pulsesink \
  filesrc location=1_2.mp4 ! qtdemux name=qt2 \
  qt2. ! queue ! h264parse ! avdec_h264 ! videomix. \
  qt2. ! queue ! aacparse ! faad ! audiomix. \

添加文字水印
gst-launch-1.0 videotestsrc ! videoconvert ! textoverlay text="Text Overlay " ! videoconvert ! xvimagesink
gst-launch-1.0 \
  filesrc location=1_2.mp4 ! qtdemux ! queue ! h264parse ! avdec_h264 ! \
  videomixer name=mix sink_0::alpha=1 sink_1::alpha=0.5 ! \
  opencvtextoverlay text="wonder.multimedia.best" xpos="0" ypos="100" colorR="255" colorG="255" colorB="255" ! videoconvert ! xvimagesink

添加图片水印
gst-launch-1.0 filesrc location=sample.mp4 ! decodebin2 ! \
    videomixer name=mix ! xvimagesink filesrc location=watermark.png ! \
    pngdec ! imagefreeze ! ffmpegcolorspace ! mix.

存至本地
gst-launch-1.0 \
  filesrc location=1_2.mp4 ! qtdemux ! queue ! h264parse ! avdec_h264 ! \
  videomixer name=mix sink_0::alpha=1 sink_1::alpha=0.5 ! \
  textoverlay font-desc="Sans 20" text="多媒体部最牛X" valignment=top halignment=left ! \
  gdkpixbufoverlay location=smile.png overlay-height=100 overlay-width=100 offset-y=150 offset-x=500 ! videoconvert ! x264enc ! filesink location=1111.mp4

gst-launch-1.0 \
   videotestsrc pattern=0 ! \
   video/x-raw,format=AYUV,framerate=fraction10/1,width=100,height=100 ! \
   videobox border-alpha=0 top=170 bottom=-70 right=-220 ! \
   videomixer name=mix sink_0::alpha=0.7 sink_1::alpha=0.5 ! \
   videoconvert ! xvimagesink \
   videotestsrc pattern=1 ! \
   video/x-raw,format=AYUV,framerate=fraction5/1,width=320,height=240 ! mix.

后续命令是参考他人本人未测试过的:

1)  Record Sound on Android:

Android:

* openslessrc ! audioconvert  ! audio/x-raw-int, channels=1, rate=16000 ! rtpL16pay ! udpsink host=10.10.10.100 port=5000*

Receive:

*gst-launch-0.10 -v udpsrc port=5000 caps ="application/x-rtp, media=(string)audio, clock-rate=(int)16000, channels=(int)1,

payload=(int)96"  !   rtpL16depay ! audioconvert ! alsasink sync=false*

2)  Working on Ubuntu:

Server:

gst-launch-0.10 filesrc location=file.pcap ! pcapparse src-port=58694 ! application/x-rtp, payload=(int)96, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264  !  udpsink host=127.0.0.1 port=5000

Client :

gst-launch-0.10 udpsrc uri=udp://127.0.0.1:5000 ! application/x-rtp, payload=(int)96, media=(string)video, clock-rate=(int)90000,

encoding-name=(string)H264 ! gstrtpjitterbuffer latency=1000 , do-lost=true ! rtph264depay ! queue ! ffdec_h264 ! autovideosink

3) RTP h264 Sream:

gst-launch-1.0 -e rtspsrc location="rtsp://admin:12345@192.168.1.201:554//Streaming/Channels/1" !

rtph264depay ! h264parse ! matroskamux ! filesink location=foo1.mkv

4) Transmitting live audio over network using ogg Container:

Sending:

gst-launch -v autoaudiosrc ! audio/x-raw-int,channels=1,depth=16,width=16,rate=16000 ! volume volume=0.25 ! audioconvert  ! vorbisenc ! oggmux ! tcpserversink port=7821

Receiving:

gst-launch -v tcpclientsrc port=7821 ! oggdemux ! vorbisdec ! audioconvert ! autoaudiosink

5) Works well under Linux:

Server :

gst-launch-1.0 videotestsrc ! video/x-raw,format=RGB, width=320, height=240, framerate=30/1! videoconvert ! avenc_mpeg4 ! rtpmp4vpay config-interval=1 ! udpsink host=224.1.1.1 port=5004 auto-multicast=true

Client :

gst-launch-1.0 udpsrc uri=udp://224.1.1.1:5004 caps="application/x-rtp, media=(string)video" ! rtpmp4vdepay ! avdec_mpeg4 ! videoconvert ! autovideosink -v

6) With 1.2.4:

Server :

$ gst-launch-1.0 videotestsrc ! x264enc ! rtph264pay config-interval=10 pt=96 ! udpsink host=127.0.0.1 port=5001 &

Client :

$ gst-launch-1.0 -v -e udpsrc address=127.0.0.1 port=5001 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000,

encoding-name=(string)H264' ! rtpjitterbuffer ! rtph264depay ! h264parse ! mp4mux ! filesink location=/tmp/rtp.mp4

7) Capture Video+Audio to a file:

$ gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! muxout. \pulsesrc device="alsa_input.usb-046d_HD_Pro_Webcam_C920_F1894590-02-C920.analog-stereo" ! queue ! audioconvert ! voaacenc bitrate=65536 ! muxout. matroskamux name=muxout streamable=true ! filesink location=muxed-AV.mp4

8) Change background in textoverlay:

$ gst-launch-0.10 videotestsrc ! video/x-raw-yuv, width=720, height=480 ! textoverlay text="<span foreground=\"blue\" background=\"green\" size=\"x-large\"> ...TEST... </span> is <i>cool</i>" ! xvimagesink

9) Add watermark in a video:

$ gst-launch-1.0 filesrc location=myvideo.mp4 ! decodebin ! videoconvert ! gdkpixbufoverlay location=logo.png !

videoconvert ! x264enc ! mp4mux ! filesink location=test.mp4

Gstreamer 命令行相关推荐

  1. linux命令音乐视频合并,Linux下基于命令行的音乐播放器 (1)

    按照同事的话说,我是一个十足的命令控. 利用最近项目通宵发布的空闲时间中,写了一个命令行下的音乐播放器,以满足我在linux命令下的需求. 播放器利用技术: Python+GST(http://gst ...

  2. ECS(Linux)连接RDS,使用命令行方式连接实例

    使用命令行方式连接实例 通过命令行连接RDS MySQL数据库,连接方式如下: mysql -h<连接地址> -P<端口> -u<用户名> -p -D<数据库 ...

  3. 从命令行到IDE,版本管理工具Git详解(远程仓库创建+命令行讲解+IDEA集成使用)

    首先,Git已经并不只是GitHub,而是所有基于Git的平台,只要在你的电脑上面下载了Git,你就可以通过Git去管理"基于Git的平台"上的代码,常用的平台有GitHub.Gi ...

  4. 基于Golang的CLI 命令行程序开发

    基于Golang的CLI 命令行程序开发 [阅读时间:约15分钟] 一. CLI 命令行程序概述 二. 系统环境&项目介绍&开发准备 1.系统环境 2.项目介绍 3.开发准备 三.具体 ...

  5. 简单解决用VS编写hello world时命令行一闪而过

    一.在return 0;前一行加一个getchar(); 二.使用项目模板为 windows 桌面向导 c++ 3.命令行控制台一闪而过.这是我们使用空文件夹加载的项目,默认不是控制台应用程序,新建控 ...

  6. java命令行读入密码_java-在命令行上隐藏输入

    是的,可以做. 这称为命令行输入屏蔽. 您可以轻松实现此目的. 您可以使用单独的线程擦除输入的回显字符,并用星号替换. 使用下面显示的EraserThread类完成此操作 import java.io ...

  7. Redis 笔记(16)— info 指令和命令行工具(查看内存、状态、客户端连接数、监控服务器、扫描大key、采样服务器、执行批量命令等)

    Info 命令返回关于 Redis 服务器的各种信息和统计数值.通过给定可选的参数 section ,可以让命令只返回某一部分的信息. 1. 显示模块 server : 一般 Redis 服务器信息, ...

  8. Linux shell 学习笔记(10)— 处理用户输入(命令行读取参数、读取用户输入、超时处理)

    1. 命令行参数 向 shell 脚本传递数据的最基本方法是使用命令行参数.命令行参数允许在运行脚本时向命令行添加数据. $ ./addem 10 30 本例向脚本 addem 传递了两个命令行参数( ...

  9. 命令行带参数启动--命令行相关问题 代码规范

    20210106 其实cmd和Linux一样可以通过特殊符号换行的: Linux 为 \ 而cmd 为 ^ 命令行换行符 20201127 options 代码编写变量意义 20200728 a.py ...

  10. 2021年大数据Hadoop(八):HDFS的Shell命令行使用

    2021大数据领域优质创作博客,带你从入门到精通,该博客每天更新,逐渐完善大数据各个知识体系的文章,帮助大家更高效学习. 有对大数据感兴趣的可以关注微信公众号:三帮大数据 目录 HDFS的Shell命 ...

最新文章

  1. WorldWind学习系列一:顺利起航篇
  2. 八十七、探究最短路问题:Dijkstra算法
  3. 使用Spring数据和Thymeleaf实现Bootstrap分页
  4. 无线网络受限制或无连接处理方法
  5. 高性能分页REST API查询生成器
  6. 数据结构c语言版第二版第三章课后答案,数据结构(C语言版)习题集答案第三章.doc...
  7. 【Java】身份证的验证
  8. 关于IOS屏幕的旋转问题
  9. ibm服务器aix系统查看cpu,IBM AIX系统硬件信息查看命令(shell脚本)
  10. 你应该知道的,十二大CNN算法
  11. c语言messagebox多窗口,C语言messagebox用法
  12. mybatis系列-tkmybatis-04-SpringBoot整合TkMybatis+PageHelper实现分页查询
  13. spss26没有典型相关性分析_如何在SPSS中实现典型相关分析
  14. 求1000以内的水仙花数
  15. 在腾讯待了 9 年还离了职
  16. T 检验 (T test)
  17. 不属于ipo模型的 python_以下不属于IPO模型的是:
  18. linux作业控制 信号,bash中的作业控制机制
  19. 菜鸟学Linux命令:nohup命令启动程序
  20. c语言交朋友问题大全,交朋友语言教案

热门文章

  1. Catch the moments of your life. Catch them while you're young and quick.
  2. 软件测试应遵循哪些原则?
  3. 学习java第20天
  4. SQL Server 遇到报错解决办法--更新中
  5. python处理FITS文件 2:astropy.io.fits介绍及打开FITS文件
  6. 用户画像第二章(企业级360°用户画像_数据调研及ETL)
  7. Apache commons lang简介
  8. 使用table自带的deleteRow,insertRow方法实现表格内容滚动
  9. 按头安利 好看又实用的冰淇淋VRay材质球素材看这里
  10. APP启动无视频数据-YYC松鼠短视频系统