【问题标题】:gstreamer videotestsrc rtp not workinggstreamer videotestsrc rtp不工作
【发布时间】:2013-09-09 14:49:32
【问题描述】:

我一直在尝试让 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 视频,同时包含发送者和接收者吗?

【问题讨论】:

    标签: gstreamer rtp


    【解决方案1】:

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

    gst-launch-1.0 videotestsrc ! avenc_mpeg4 ! rtpmp4vpay ! udpsink host=127.0.0.1 -vvv
    

    【讨论】:

    • 试试:gst-launch-1.0 audiotestsrc ! udpsink 主机=127.0.0.1 udpsrc ! fakesink -v 告诉我你看到了什么。
    • 您好,谢谢,输出为:Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock /GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0.GstPad:src: caps = audio/x-raw, format=(string)S16LE, layout=(string)interleaved, rate=(int)44100, channels=(int)1 /GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = audio/x-raw, format=(string)S16LE, layout=(string)interleaved, rate=(int)44100, channels=(int)1
    猜你喜欢
    • 1970-01-01
    • 2020-10-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-04
    相关资源
    最近更新 更多