Gstreamer gst使用udp启动rtp

Gstreamer gst使用udp启动rtp,gstreamer,rtp,gst-launch,Gstreamer,Rtp,Gst Launch,我正在学习Gstreamer,首先我使用gst启动工具通过网络使用udpsink和udpsrc元素来流式传输视频文件 在浏览了Gstreamer文档并阅读了其他stackoverflow注释之后,我得到了一个读取mp4文件并将其发送到没有可见错误的udpsink的命令,以及另一个使用udpsrc使用流数据并将其发送到xvimagesink以使其可视化的命令,但是,本应因水槽破裂而打开的窗口没有打开 有人能帮我解决这个问题吗 我在这里复制了我正在使用的两个gst启动命令,以及生产者和消费者的日志

我正在学习Gstreamer,首先我使用gst启动工具通过网络使用udpsink和udpsrc元素来流式传输视频文件

在浏览了Gstreamer文档并阅读了其他stackoverflow注释之后,我得到了一个读取mp4文件并将其发送到没有可见错误的udpsink的命令,以及另一个使用udpsrc使用流数据并将其发送到xvimagesink以使其可视化的命令,但是,本应因水槽破裂而打开的窗口没有打开

有人能帮我解决这个问题吗

我在这里复制了我正在使用的两个gst启动命令,以及生产者和消费者的日志

gst-launch-1.0 -v filesrc location = ./x264_sample_file.mp4 ! qtdemux ! video/x-h264 ! rtph264pay ! udpsink host=127.0.0.1 port=9001


gst-launch-1.0 -v udpsrc uri=udp://127.0.0.1:9001 ! application/x-rtp,payload=96 ! rtph264depay  ! decodebin ! xvimagesink
制作人日志

gst-launch-1.0 -v filesrc location = ./Videos/Dark\ Phoenix\ \(2019\)\ \[BluRay\]\ \[1080p\]\ \[YTS.LT\]/Dark.Phoenix.2019.1080p.BluRay.x264-\[YTS.LT\].mp4 ! qtdemux ! video/x-h264 ! rtph264pay ! udpsink host=127.0.0.1 port=9001
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1: caps = video/x-h264
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.1, profile=(string)high, codec_data=(buffer)01640029ffe1001867640029acd94078065b011000003e90000bb800f183196001000668e9384cf23c, width=(int)1920, height=(int)800, framerate=(fraction)24000/1001, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)640029, sprop-parameter-sets=(string)"Z2QAKazZQHgGWwEQAAA+kAALuADxgxlg\,aOk4TPI8", payload=(int)96, ssrc=(uint)606785685, timestamp-offset=(uint)3182951615, seqnum-offset=(uint)8918, a-framerate=(string)23.976023976023978
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)640029, sprop-parameter-sets=(string)"Z2QAKazZQHgGWwEQAAA+kAALuADxgxlg\,aOk4TPI8", payload=(int)96, ssrc=(uint)606785685, timestamp-offset=(uint)3182951615, seqnum-offset=(uint)8918, a-framerate=(string)23.976023976023978
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.1, profile=(string)high, codec_data=(buffer)01640029ffe1001867640029acd94078065b011000003e90000bb800f183196001000668e9384cf23c, width=(int)1920, height=(int)800, framerate=(fraction)24000/1001, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.1, profile=(string)high, codec_data=(buffer)01640029ffe1001867640029acd94078065b011000003e90000bb800f183196001000668e9384cf23c, width=(int)1920, height=(int)800, framerate=(fraction)24000/1001, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: timestamp = 3182951615
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: seqnum = 8918
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
消费者日志

gst-launch-1.0 -v udpsrc uri=udp://127.0.0.1:9001 ! application/x-rtp,payload=96 ! rtph264depay  ! decodebin ! xvimagesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = application/x-rtp, payload=(int)96, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264
/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:sink: caps = application/x-rtp, payload=(int)96, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264

您是否尝试过autovideosink iso xvimagesink?可能与以下问题有关:。请注意,
rtph264pay
也有类似的属性。我无法复制您的设置,因为我没有视频,但我将文件替换为
videotestsrc
,以下管道在我的设置上工作
gst-launch-1.0-v videotestsrc!x264enc!视频/x-h264!RTPH264支付!udpsink主机=127.0.0.1端口=9001
gst-launch-1.0-v udpsrc uri=udp://127.0.0.1:9001 ! 应用程序/x-rtp,有效载荷=96!rtph264depay!德克宾!自动视频接收器