【问题标题】:How to intercept packets from RTP-stream on loopback and access the data through C++-code?如何在环回时拦截来自 RTP 流的数据包并通过 C++ 代码访问数据?
【发布时间】:2012-06-28 19:25:12
【问题描述】:

我希望能够拦截此流的数据包并从 C++ 代码访问数据。 如何在 C++ 代码中执行此操作? RTP- 媒体流使用此服务器进行流式传输:link

然后我将对数据包进行 FEC 编码;通过网络发送它们;在接收端对它们进行 FEC 解码,并将数据流传递给 RTCP 客户端。

【问题讨论】:

    标签: network-programming video-streaming rtp rtcp


    【解决方案1】:

    评估一些用于媒体流的开源堆栈,例如(live555、openRTSP、VLC、mPlayer)。使用其中任何一个,您都可以执行以下操作:

     - install    
    instrument    
    build    
    run with sample streams    
    observe debug and   or logger
    

    例如在live555源码中...

    ./live/liveMedia/MultiFramedRTPSource.cpp:MultiFramedRTPSource::~MultiFramedRTPSource()

    你会发现帧处理程序here

    对于另一个示例,请参阅here 以了解播放器 (VLC) 获取从任何 Youtube 条目可用的流 (rtsp / rtp) 的日志。如果需要,您可以钻取任何 youtube videoID 以获得相关的流媒体链接。然后,您可以将该链接用作测试中的来源。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-21
      相关资源
      最近更新 更多