Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8965069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:43:58+00:00 2026-06-15T16:43:58+00:00

I want to send multimedia data over RTP. What I wnat to know is

  • 0

I want to send multimedia data over RTP. What I wnat to know is how to send and receive RTP packets with Python. I found the python class DPKT. But couldn’t able to find a good reference to visualize how to generate each filed in RTP.

I would appreciate if someone could help me generate and receive rtp packets at the server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:44:00+00:00Added an answer on June 15, 2026 at 4:44 pm

    After several days of studies I was able to use gstreamer in ubuntu terminal to achieve the above task. My main scope was to learn about synchronization of the streams. I used RTP and RTCP functionalities in gstreamer. I divided a video in to four parts vertically and send from one PC to another and displayed in the second PC. Following is the code used.

    Sender:

    gst-launch -v \
    \
    gstrtpbin name=rtpbin1 \
    filesrc location=/home/x101.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/x102.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 location=/home/x103.avi ! decodebin ! x264enc ! rtph264pay ! rtpbin3.send_rtp_sink_0 \
    rtpbin3.send_rtp_src_0 ! udpsink host=192.168.1.100 port=5031 \
    rtpbin3.send_rtcp_src_0 ! udpsink host=192.168.1.100 port=5032 \
    udpsrc port=5033 ! rtpbin3.recv_rtcp_sink_0 \
    \
    gstrtpbin name=rtpbin4 \
    filesrc location=/home/x104.avi ! decodebin ! x264enc ! rtph264pay ! rtpbin4.send_rtp_sink_0 \
    rtpbin4.send_rtp_src_0 ! udpsink host=192.168.1.100 port=5041 \
    rtpbin4.send_rtcp_src_0 ! udpsink host=192.168.1.100 port=5042 \
    udpsrc port=5043 ! rtpbin4.recv_rtcp_sink_0
    

    Receiver:

    gst-launch -v \
    videomixer name=mix ! ffmpegcolorspace ! autovideosink sync=false async=false \
    \
    gstrtpbin name=rtpbin1 \
    udpsrc port=5011 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z01AFeygbCPNLgIgAAADAC7msoAB4sWywA\\=\\=\\,aOvssg\\=\\=\", payload=(int)96, ssrc=(uint)861153369, clock-base=(uint)4026289255, seqnum-base=(uint)30449" ! rtpbin1.recv_rtp_sink_0 rtpbin1. ! rtph264depay ! queue ! ffdec_h264 ! videobox border-alpha=0 top=0 left=0 ! mix. \
    udpsrc port=5012 ! rtpbin1.recv_rtcp_sink_0 \
    rtpbin1.send_rtcp_src_0 ! udpsink port=5013 host=192.168.1.104 \
    \
    gstrtpbin name=rtpbin2 \
    udpsrc port=5021 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z01AFeygbCPNLgIgAAADAC7msoAB4sWywA\\=\\=\\,aOvssg\\=\\=\", payload=(int)96, ssrc=(uint)861153369, clock-base=(uint)4026289255, seqnum-base=(uint)30449" ! rtpbin2.recv_rtp_sink_0 rtpbin2. ! rtph264depay ! queue ! ffdec_h264 ! videobox border-alpha=0 top=-120 left=0 ! mix. \
    udpsrc port=5022 ! rtpbin2.recv_rtcp_sink_0 \
    rtpbin2.send_rtcp_src_0 ! udpsink port=5023 host=192.168.1.104 \
    \
    gstrtpbin name=rtpbin3 \
    udpsrc port=5031 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z01AFeygbCPNLgIgAAADAC7msoAB4sWywA\\=\\=\\,aOvssg\\=\\=\", payload=(int)96, ssrc=(uint)861153369, clock-base=(uint)4026289255, seqnum-base=(uint)30449" ! rtpbin3.recv_rtp_sink_0 rtpbin3. ! rtph264depay ! queue ! ffdec_h264 ! videobox border-alpha=0 top=-240 left=0 ! mix. \
    udpsrc port=5032 ! rtpbin3.recv_rtcp_sink_0 \
    rtpbin3.send_rtcp_src_0 ! udpsink port=5033 host=192.168.1.104 \
    \
    gstrtpbin name=rtpbin4 \
    udpsrc port=5041 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z01AFeygbCPNLgIgAAADAC7msoAB4sWywA\\=\\=\\,aOvssg\\=\\=\", payload=(int)96, ssrc=(uint)861153369, clock-base=(uint)4026289255, seqnum-base=(uint)30449" ! rtpbin4.recv_rtp_sink_0 rtpbin4. ! rtph264depay ! queue ! ffdec_h264 ! videobox border-alpha=0 top=-360 left=0 ! mix. \
    udpsrc port=5042 ! rtpbin4.recv_rtcp_sink_0 \
    rtpbin4.send_rtcp_src_0 ! udpsink port=5043 host=192.168.1.104
    

    I was able to receive the four streams in one window as expected. But still streams are not synchronized perfectly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want send a email by Email Class in codeigniter with gmail, but i
I want to send some data (NOT MULTIMEDIA) through an SMS message in Android.
I am doing Objective C programming and I want send and receive requests(Login/data fetching)
Hello Sir i want send list of data to php server i use following
I want to send SMS using LWUIT. what class should i be looking at?
I want send an array to my codeigniter app for deleted. I know i
I want send some data to a remote webpage from my site. Actually it
I new on MVC. I want to send values between view's and don't know
I want so send every week an update by email. But Im afraid that
I tried to implement a send-receive example via a socket but It didn't work

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.