使用 gstreamer 流式传输音频 + 视频 + 文本

时间:2021-07-16 12:19:56

标签: text streaming gstreamer rtp

发件人

gst-launch-1.0 rtpmux name=mux ! queue ! udpsink host=10.24.217.30 port=5000                                                                                                                                         filesrc location=~/AV_I_frames_1.mp4 ! qtdemux ! queue ! h264parse ! avdec_h264 ! videoconvert ! x264enc ! rtph264pay config-interval=1 ! queue ! mux.sink_96

接收器

gst-launch-1.0 udpsrc port=5000 caps="application/x-rtp" ! rtpptdemux name=demux                                                                                                                             demux.src_96 ! queue ! "application/x-rtp, clock-rate=(int)90000, payload=(int)96,encoding-name=H264,media=video"  ! rtph264depay ! avdec_h264 ! autovideosink

这有效,但是如果发件人更改为

gst-launch-1.0 rtpmux name=mux ! queue ! udpsink host=10.24.217.30 port=5000                                                                                                                                         filesrc location=~/AV_I_frames_1.mp4 ! qtdemux ! queue ! h264parse ! avdec_h264 ! videoconvert ! x264enc ! rtph264pay config-interval=1 ! queue ! mux.sink_96                                               filesrc location=../v.srt ! subparse ! rtpgstpay ! "application/x-rtp, payload=(int)97" ! queue ! mux.sink_97

然后相同的接收器失败

0 个答案:

没有答案