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 6674333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:43:58+00:00 2026-05-26T03:43:58+00:00

I am new to gstreamer and its development. I am trying to mix RTP

  • 0

I am new to gstreamer and its development. I am trying to mix RTP streams using Gstreamer Python. The client sends the different videotest sources and the mixing of these streams should happen on the receiver side using RTP. This should be possible for atleast four participants.

The receiver side will have a videotestbackground already linked with it which will be displayed first. When the receiver will receive the videotest sources then the mixing of the videotest sources should take place and displayed on the videotestbackground.

Here is the code for the receiver side “receiver.py”: http://pastebin.com/dM2LcNM2
And

Here is the code for the client side “send_client.py”: http://pastebin.com/33edcQ40

I am getting ERROR message like:

ankit@fh:~/$ ./receiver4.py 
Started...
Running...
new ssrc
  session 0
  ssrc 3217594798
3217594798
filter:  /GstPipeline:server/GstCapsFilter:filter (__main__.GstCapsFilter) || Type:: <class '__main__.__main__.GstCapsFilter'>
srcpad1:  /GstPipeline:server/GstUDPSrc:udpsrc0.GstPad:src (gst.Pad)  || Type:::  <type 'gst.Pad'>
sinkpad1:  None
Traceback (most recent call last):

  File "./receiver4.py", line 132, in on_new_ssrc
    lres = gst.Pad.link(srcpad1, sinkpad1)
TypeError: GstPad.link() argument 1 must be gst.Pad, not None

I am not able to understand why I am getting ‘None’ on request for ‘sinkpad1’. In the documentation, it is stated that updsrc sinkpad are ‘on request’.

PS: Please refer code for referring the syntax and logic I used for getting ‘sinkpad1’

I am not able to get it running. I Struggled a lot to find the solution. Please somebody help me in finding the logical error. Thanks in advance.

  • 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-05-26T03:43:58+00:00Added an answer on May 26, 2026 at 3:43 am

    Here is the solution finally I found. 🙂

    I forgot to keep in mind that I have to use ‘rtpbin’ which I am receiving it from client. The Pad properties of ‘gstrtpbin’ ($gst-inspect gstrtpbin) are as follows.

    Pad Templates:
      SINK template: 'recv_rtp_sink_%d'
        Availability: On request
          Has request_new_pad() function: gst_rtp_bin_request_new_pad
        Capabilities:
          application/x-rtp
    
      SINK template: 'recv_rtcp_sink_%d'
        Availability: On request
          Has request_new_pad() function: gst_rtp_bin_request_new_pad
        Capabilities:
          application/x-rtcp
    
      SINK template: 'send_rtp_sink_%d'
        Availability: On request
          Has request_new_pad() function: gst_rtp_bin_request_new_pad
        Capabilities:
          application/x-rtp
    
      SRC template: 'recv_rtp_src_%d_%d_%d'
        Availability: Sometimes
        Capabilities:
          application/x-rtp
    
      SRC template: 'send_rtcp_src_%d'
        Availability: On request
          Has request_new_pad() function: gst_rtp_bin_request_new_pad
        Capabilities:
          application/x-rtcp
    
      SRC template: 'send_rtp_src_%d'
        Availability: Sometimes
        Capabilities:
          application/x-rtp
    

    Looking on the above Pad properties, I have to use ‘recv_rtp_sink_%d’ pad which is available only on request.

    I replaced/modified the source ‘receiver.py’ file:

    @line 130: sinkpad1 = gst.Element.get_request_pad(rtpbin, 'recv_rtp_sink_%d')
    @line 132: we do not need to link this as it is already linked above. DELETED
    @line 133: we have unlink udpsrc0 then link it. unlink eg.: self.udpsrc0.unlink(rtpbin)
    

    And many minor bugs when I go on fixing it. But my main goal for this question posted here is fulfilled. So, I decided to provide answer in case other people like me get stuck on this silly negligence and logical problem.

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

Sidebar

Related Questions

I am trying to write a small media player using GTK+ and GStreamer and
I'm trying to do the following: receive video stream using gstreamer and process it
I've been trying over the past week to implement H.264 streaming over RTP, using
I am trying to create a small Gstreamer-Qt based program in Windows using msvc
so I'm using gstreamer for java and I'm trying to playback live video stream
new on ruby and using windows xp and rails 3, i want to send
new to c#. I'm trying to make a simple system where I can search
New to Node.js and Express, I am trying to understand the two seems overlapping
New programmer here, I am trying to understand and break down this code below
New developer here,Im using the Custom Image Picker by ray wenderlich. But what I

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.