我想通过RTP发送多媒体数据.我想知道的是如何使用Python发送和接收RTP数据包.我找到了python类DPKT.但无法找到一个很好的参考,可视化如何在RTP中生成每个字段.
如果有人可以帮助我在服务器上生成和接收rtp数据包,我将不胜感激.
我想了解更多关于使用 RTCP 和 Gstreamer 同步不同流的信息。视频被垂直分为 4 个部分,以便接收器可以更好地观察同步情况。以下是用于发送方和接收方的代码。
发件人:
gst-launch -v \
\
gstrtpbin name=rtpbin1 \
filesrc location=/home/chinthaka/Desktop/MageHeenaye101.avi ! decodebin ! x264enc ! rtph264pay ! rtpbin1.send_rtp_sink_0 \
rtpbin1.send_rtp_src_0 ! udpsink host=192.168.1.100 port=5011 \
rtpbin1.send_rtcp_src_0 ! udpsink host=192.168.1.100 port=5012 \
udpsrc port=5013 ! rtpbin1.recv_rtcp_sink_0 \
\
gstrtpbin name=rtpbin2 \
filesrc location=/home/chinthaka/Desktop/MageHeenaye102.avi ! decodebin ! x264enc ! rtph264pay ! rtpbin2.send_rtp_sink_0 \
rtpbin2.send_rtp_src_0 ! udpsink host=192.168.1.100 port=5021 \
rtpbin2.send_rtcp_src_0 ! udpsink host=192.168.1.100 port=5022 \
udpsrc port=5023 ! rtpbin2.recv_rtcp_sink_0 \
\
gstrtpbin name=rtpbin3 \
filesrc …Run Code Online (Sandbox Code Playgroud)