I hope you guys are doing well. I am working on a WebRtc Linux based CPP Program which is interacting with Ant Media Enterprise Edition 2.4.4-SNAPSHOT 20220728_1826. I have integrated websocket client for AntMedia Server using this documentation; webrtc-websocket-messaging-reference.
The complete setup is working fine with RAW Audio and RAW Video Packets and I am able to play them using Antmedia Sample Player. I am getting these RAW Audio and Video frames from FFMPEG. But when I send custom H264 encoded Video packets (Pre-Encoded Video Frames) using WebRtc, I am getting Publish timeout error on the AntMedia Server side. I am getting these Pre-encoded Video frames from FFMPEG.
2022-08-04 06:39:30,026 [vert.x-eventloop-thread-1] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - running stop operations in executor for stream: rtpstream123 Received audio frame: 0 Processed audio frame: 0Received video frame: 0 Processed video frame: 0
2022-08-04 06:39:30,026 [vert.x-eventloop-thread-1] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - Publish Stats StreamId: rtpstream123 TransferedByte: 564653 Stream Duration: 1659595170026 Bitrate: 0 Source IP: 110.93.193.154 User-Agent: [WebSocket++/0.7.0]
Quote
I have tested the same Linux WebRtc Client on my Web client which has support for H264, Web client is successfully playing the video.
I have attached detailed logs from the server and client side as well. What I have tried on my end;
Linux firewall is closed, not UDP traffic is being blocked.
Using Google STUN on Linux WebRtc Client; 'urls' : 'stun:stun1.l.google.com:19302
Bitrate on Linux side is 512K, 1024K.
I have also verified from WebRtc Native logs also by debugging that video packets are being send to network layer.
I have tried Twilio NTS Service for ICE Servers (STUN + TURN), but didn't work
I am also unable to increase ( settings.webrtc.client.start.timeoutMs=10000 )timeout from the AntMedia Server Dashboard. I am found multiple articles related to my issue but those articles are not helpful;
Question
Muhammad Usman Bashir
Dear Community,
I hope you guys are doing well. I am working on a WebRtc Linux based CPP Program which is interacting with Ant Media Enterprise Edition 2.4.4-SNAPSHOT 20220728_1826. I have integrated websocket client for AntMedia Server using this documentation; webrtc-websocket-messaging-reference.
The complete setup is working fine with RAW Audio and RAW Video Packets and I am able to play them using Antmedia Sample Player. I am getting these RAW Audio and Video frames from FFMPEG. But when I send custom H264 encoded Video packets (Pre-Encoded Video Frames) using WebRtc, I am getting Publish timeout error on the AntMedia Server side. I am getting these Pre-encoded Video frames from FFMPEG.
2022-08-04 06:39:30,026 [vert.x-eventloop-thread-1] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - running stop operations in executor for stream: rtpstream123 Received audio frame: 0 Processed audio frame: 0Received video frame: 0 Processed video frame: 0 2022-08-04 06:39:30,026 [vert.x-eventloop-thread-1] INFO i.a.e.adaptive.WebRTCEncoderAdaptor - Publish Stats StreamId: rtpstream123 TransferedByte: 564653 Stream Duration: 1659595170026 Bitrate: 0 Source IP: 110.93.193.154 User-Agent: [WebSocket++/0.7.0]
I have attached detailed logs from the server and client side as well. What I have tried on my end;
I am also unable to increase ( settings.webrtc.client.start.timeoutMs=10000 )timeout from the AntMedia Server Dashboard. I am found multiple articles related to my issue but those articles are not helpful;
Publish Timeout Error; Google Groups
WebRtc Ingest is not started; Ant Media Server Github
Publish Timeout Error without any candidate issue; Ant Media Server Github
Your help might save days for me. Thanks a lot.
webrtc_linux_client_logs_pre_encoded.txt webrtc_linux_client_log_raw_video.txt Ant-media-Server-logs.txt
Edited by Muhammad Usman BashirAdded some more details regarding issue
Link to comment
Share on other sites
Top Posters For This Question
2
2
Popular Days
Aug 12
2
Aug 5
1
Aug 16
1
Top Posters For This Question
mekya 2 posts
Muhammad Usman Bashir 2 posts
Popular Days
Aug 12 2022
2 posts
Aug 5 2022
1 post
Aug 16 2022
1 post
Posted Images
3 answers to this question
Recommended Posts