I have a pipeline where there are video and audio RTP packets that are pushed to udp ports. When I run a pipeline with only video, the pipeline seems to wait until the video packet arrives. But when I add the audio part of the pipeline to listen on the udpport, if the udpsrc pipeline starts before any packets arrive, it seems to hang.
gst-launch-1.0 udpsrc port=10001 caps="application/x-rtp,media=video,encoding-name=H265,payload=96" ! identity name=rtp-video-probe ! rtph265depay ! h265parse name=parser ! vaapidecodebin name=video_decoder ! queue name=back_q ! tee name=one_decode one_decode. ! queue name=q_720p ! videorate ! video/x-raw,framerate=15/1 ! vaapipostproc format=nv12 ! video/x-raw,width=1280,height=720 ! queue name=back_720p_q ! tee name=resized_720p_t resized_720p_t. ! queue name=resized_queue ! vah265lpenc rate-control=cbr bitrate=450 b-frames=1 b-pyramid=true key-int-max=150 target-usage=5 mbbrc=1 min-qp=24 max-qp=30 aud=true ! h265parse config-interval=-1 ! hlssink2 name=ingest3 playlist-length=5 max-files=0 target-duration=10 send-keyframe-requests=true playlist-location=stream.m3u8 location=%t_1280_720_hevc.ts udpsrc port=10002 caps="application/x-rtp,media=audio,payload=96" ! identity name=rtp-audio-probe ! rtpopusdepay ! opusdec ! audioconvert ! audioresample ! audio/x-raw,rate=48000 ! fdkaacenc ! aacparse ! tee name=audio_t audio_t. ! queue ! ingest3.audio
What setting in the audio part of the pipeline can I add so that it will not block and wait until the packets arrive and then resume?
This is a way i test by sending audio packets
gst-launch-1.0 -v audiotestsrc ! audioconvert ! audioresample ! audio/x-raw,rate=48000 ! opusenc ! opusparse ! tee name=t ! queue ! rtpopuspay ! rtpopusdepay ! opusparse ! mpegtsmux ! filesink location=mac.ts t. ! queue ! rtpopuspay ! udpsink host=127.0.0.1 port=10002
Thanks a lot for your help