0

我一直在尝试让 gstreamer rtp 在我的 osx lion 上工作,我有以下几点:

发件人:

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视频吗?

4

1 回答 1

0

尝试像这样为 udpsink 设置“主机”:

gst-launch-1.0 videotestsrc ! avenc_mpeg4 ! rtpmp4vpay ! udpsink host=127.0.0.1 -vvv
于 2013-09-09T05:58:24.680 回答