Gstreamer 合并实时音频麦克风输入和视频网络摄像头输入管道以通过 UDP 发送

问题描述

我分别为视频和音频制作了管道(经过测试),但现在我想合并它们,以便我可以通过 udp 通过单个端口发送它们

发件人(视频) gst-launch-1.0 -v v4l2src ! 'video/x-raw,width=(int)640,height=(int)480' !视频转换! x264enc! rtph264支付! udpsink 端口=9002

接收器(视频) gst-launch-1.0 -v udpsrc port=9002 caps = "application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96" ! rtph264depay ! avdec_h264 !自动视频接收器

发送者(音频) gst-launch-1.0 脉冲源!音频转换!音频/x-raw,channels=1,depth=16,width=16,rate=44100! rtpL16pay pt=97 ! udpsink 端口=5001

接收器(音频) gst-launch-1.0 udpsrc 端口=5001 !应用程序/x-rtp,时钟速率=44100,有效载荷=97! rtpL16depay !音频转换! alsasink 同步=假

我正在寻找视频 + 音频的单一发送者和接收者管道

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)