gstreamer同时播放音频和视频

时间:2020-08-07 09:54:27

标签: audio video gstreamer gst-launch-1.0

嗨,我是gstreamer的新手,我现在想将mp4文件流式传输到我的桌面(ubuntu 18.04)到另一台PC(ubuntu 18.04)上,我现在只能使用:p

enter code here {gst-launch-1.0 -v filesrc location=./Videos/Tamil/Mun\ Andhi.mp4 !decodebin ! x264enc ! rtph264pay ! udpsink host=192.168.6.61 port=6002}


enter code here{gst-launch-1.0 -v udpsrc port=6002 caps = "application/x-rtp,

media =(字符串)视频,时钟速率=(int)90000,编码名称=(string)H264, 有效载荷=(int)96“!rtph264depay!decodebin!videoconvert!autovideosink}

,仅带有的音频: 发件人:

enter code here { gst-launch-1.0 -v filesrc location=song.mp3 ! mpegaudioparse ! mpg123audiodec ! audioconvert ! audioresample ! audio/x-raw, rate=16000, channels=1, format=S16LE ! audiomixer blocksize=320 ! udpsink host=172.18.2.170 port=3128 }

收件人:

enter code here {gst-launch-1.0 -v udpsrc port=3128 ! rawaudioparse use-sink-caps=false format=pcm pcm-format=s16le sample-rate=16000 num-channels=1 ! queue ! audioconvert ! audioresample ! autoaudiosink}

但我都无法解决,有人帮了我的忙,谢谢!??

0 个答案:

没有答案