How to prepare many medias in the same time

dhquero dhquero at gmail.com
Thu Jan 23 13:30:28 UTC 2020


Hi,

I am building a RTSP server. This server is retransmiting audio and video
from security cameras. The audio and video are captured by SDK (P2P) and
retransmited via RTSP.
My problem is when the camera is offline and the server does not start the
packets transmition. The RTSP server freezes for 20 seconds and can not
prepare other medias. When camera is online and the first frame is pushed
into the pipeline, the server continues preparing other medias.
My pipeline is:
appsrc name=sourcevideo is-live=false do-timestamp=false ! h264parse !
rtph264pay perfect-rtptime=false name=pay0 pt=96 
appsrc name=sourceaudio is-live=false do-timestamp=false
caps=audio/x-alaw,rate=8000,channels=1 ! alawdec ! volume volume=3.0 !
alawenc ! rawaudioparse use-sink-caps=true ! rtppcmapay
perfect-rtptime=false name=pay1 pt=97

Questions:
1 - How to prepare one media without lock other medias? Is it possible
prepare more than 1 media in the same time?
2 - In this case, is better to have only 1 camera per RTSP server? What is
the best practice? How many cameras is indicated per server?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list