Gstreamer rtpbin on-receiving-rtcp is not receiving any RTCP packets inside docker container

I am creating an application where I need to have access to rtspsrc sender report. So I added a new-manager callback to rtspsrc element and inside that callback I retrieve its manager (aka rtpbin), and then after getting its recv_rtcp_sink_0 session using “get-internal-session” Action-Signal, connected an “on-receiving-rtcp” signal to the session.


static void new_manager_callback (
    GstElement * rtspsrc,
    GstElement * manager,
    gpointer udata) 
{
    /*
    rtspsrc - a rtspsrc
    manager - a GstElement
    udata - No description available
    */
    GstPad *sinkpad;
    GObject *session;
    
    sinkpad = gst_element_request_pad_simple (manager, "recv_rtcp_sink_0");
    if (!sinkpad) {
        g_printerr("Failed to get sinkpadn");
        return;
    }
    
    g_signal_emit_by_name (manager, "get-internal-session", 0, &session);
    g_print("requested sessionn");
    if (!session) {
        g_printerr("Failed to get internal sessionn");
        return;
    }

    // // callback (GstElement * session, GstBuffer * buffer, gpointer udata)
    g_print("creating on-receiving-rtcp cbn");
    // g_signal_connect(session, "on-receiving-rtcp", G_CALLBACK (on_receiving_rtcp_callback), NULL)
    g_signal_connect_after (session, "on-receiving-rtcp", G_CALLBACK (on_receiving_rtcp_callback), NULL);
    // g_print("after on-receiving-rtcp cb0000");
    g_object_unref(session);
}

This works great when I run it on the host, and I am able to get the SR, but when I move the application to a docker container based on the same Ubuntu version as host, with the exact same gstreamer version, I do not receive the RTCP packets callback.

Note that I receive RTP data packets on a callback connected to rtph264depay element, as well as the new-sample callback of appsink in both host and docker.

So basically, inside docker we receive RTP data packets but not the RTCP packets. I used port-range property of rtspsrc to set the UDP RTP/RTCP ports and the map those ports to my host and it didn’t work out.

here is my pipeline:

rtspsrc location=%s name=rtsp ! rtph264depay name=rtpdepay ! avdec_h264 ! videoconvert ! appsink name=appsink sync=true emit-signals=true

what are the possible cause of this problem?
is there any network bridge or host network settings preventing RTCP packets from being forward to the docker container from host?

I used port-range option to use specific RTP/RTCP ports, and mapped those point to host and It did not work.

I also tried enabling forwading:
Docker network bridge not working from outside

1

when I set the protocols property to tcp, it worked fine inside docker. this shows that the docker maps tcp ports by default.

for rtsp with UDP, The port-range was a good try, I just needed to add udp protcol to docker-compose when I was mapping the ports.


    ports:
      - "60000-60201:60000-60201/udp"
      - "60000-60201:60000-60201/udp"

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật