gstreamer videotestsrc rtp无法正常工作

时间:2013-09-08 03:42:03

标签: gstreamer rtp

我一直试图让gstreamer rtp在我的osx狮子上工作:

发件人:

gst-launch-1.0 videotestsrc ! avenc_mpeg4 ! rtpmp4vpay ! udpsink -vvv

接收器:

gst-launch-1.0 udpsrc caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)1, config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766335332e33352e30, payload=(int)96, ssrc=(uint)1613325455, timestamp-offset=(uint)3778351903, seqnum-offset=(uint)5013" ! rtpmp4vdepay ! avdec_mpeg4 ! autovideosink

但我得到的只是接收器上的绿屏。我是否错误地设置了管道?

我尝试使用tcpserversink和tcpclientsrc,如下所示:

gst-launch-1.0 videotesavenc_mpeg4 ! rtpmp4vpay config-interval=2 ! tcpserversink  port=5555 -vvv --gst-debug=3

gst-launch-1.0 tcpclientsrc port=5555 ! "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)1, config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766335332e33352e30, payload=(int)96, ssrc=(uint)970028597, timestamp-offset=(uint)2609711508, seqnum-offset=(uint)59228" ! rtpmp4vdepay ! decodebin ! videoconvert ! autovideosink --gst-debug=3 -vvv

导致闪烁的测试源并在客户端重复以下错误:

0:00:06.213137000 10134 0x7fab6b051680 ERROR                  libav :0:: Error at MB: 311
0:00:06.214311000 10134 0x7fab6b051680 ERROR                  libav :0:: ac-tex damaged at 19 14

有人可以构建一个测试管道,将发送者和接收者的videotestsrc输出到mpeg4视频吗?

1 个答案:

答案 0 :(得分:0)

尝试为udpsink设置“host”,如下所示:

gst-launch-1.0 videotestsrc ! avenc_mpeg4 ! rtpmp4vpay ! udpsink host=127.0.0.1 -vvv
相关问题