Unsynced Audio and Video signals in RTSP Stream

cfd new newcfd at yahoo.com
Mon Apr 22 20:20:40 UTC 2024


 I guess you send out audio and video separately. If yes, you may try to send out audio first and then video.
   Joe

    On Thursday, April 18, 2024, 08:13:43 a.m. EDT, Felix Sternkopf via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:  
 
  <!--#yiv2705075862 filtered {}#yiv2705075862 filtered {}#yiv2705075862 filtered {}#yiv2705075862 p.yiv2705075862MsoNormal, #yiv2705075862 li.yiv2705075862MsoNormal, #yiv2705075862 div.yiv2705075862MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2705075862 a:link, #yiv2705075862 span.yiv2705075862MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv2705075862 a:visited, #yiv2705075862 span.yiv2705075862MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv2705075862 span.yiv2705075862E-MailFormatvorlage17 {font-family:"Arial", sans-serif;color:windowtext;}#yiv2705075862 .yiv2705075862MsoChpDefault {font-family:"Calibri", sans-serif;}#yiv2705075862 filtered {}#yiv2705075862 div.yiv2705075862WordSection1 {}-->
Dear GST Community,
 
i have implemented a rtsp server with the gst-rtsp-server module. The server receives an audio signal via an interaudiosrc and a video signal via an intervideosrc:
 
           intervideosrc channel=videosrc à videoconvertà vaapih264enc bitrate=5000 zerolatency=trueà rtph264pay pt=96 name=pay0
 
            interaudiosrc channel=audiosrcà opusenc bitrate=64à queueà rtpopuspay pt=97 name=pay1
 
  
 
When I try to view the stream via an rtsp client, for example VLC Player the stream works, but the audio signal is about 1 second behind the video signal. I already tried different audio encoders and different queue parameters like buffer size and leaky queues, but nothing solved the problem.
 
When I start the same pipeline as above but mux both signals and write them into a filesink they are synchronized.
 
  
 
I know that the server module internally uses the multiudpsink element. Is there any possibility to edit multiudpsink parameters from outside?
 
Does anybody have any ideas about this problem? I already read every google result I could find about it.
 
  
 
Best Regards,
 
Felix Sternkopf
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20240422/2ec80cc0/attachment.htm>


More information about the gstreamer-devel mailing list