代码之家  ›  专栏  ›  技术社区  ›  hdmiimdh

将Kurento RtpEnpoint连接到gst-launch-1.0管道

  •  1
  • hdmiimdh  · 技术社区  · 7 年前

    我对媒体世界完全陌生,不知道如何遵循端点和gst-launch-1.0实用程序之间的RTP协商协议。

        RtpEndpoint rtpEndpoint1 = new RtpEndpoint.Builder(pipeline).build();
        RtpEndpoint rtpEndpoint2 = new RtpEndpoint.Builder(pipeline).build();
    
        String offer1 = rtpEndpoint1.generateOffer();
        String offer2 = rtpEndpoint2.processOffer(offer1);
        String offer3 = rtpEndpoint1.processAnswer(offer2);
    
        playerEndpoint.connect(rtpEndpoint1);
    
        @Override
        public MediaElement getMediaElement() {
            return rtpEndpoint2;
        }
    

    但我不知道如何代表电力公司处理offer1。我试图用下面的管道替换公共IP和国内端口监听的第二个offer2中的主机名和端口,但似乎不起作用

    gst-launch-1.0 -v \
        udpsrc port=51764 caps="application/x-rtp" ! queue ! rtph264depay ! h264parse ! mpegtsmux name=mymux ! hlssink max-files=5 playlist-location=/hls/test/playlist.m3u8 location=/hls/test/segment%05d.ts target-duration=10 \
        udpsrc port=52510 caps="application/x-rtp" ! queue ! rtpmp4gdepay ! mymux. 
    

    任何帮助都将不胜感激

    0 回复  |  直到 7 年前