Sync audio and video in RTSP server

bomba jhonata.poma at gmail.com
Thu Jul 21 16:17:51 UTC 2016


I've got an RTSP server flowing like:

gst_rtsp_media_factory_set_launch (factory, "( "
                  // video
                 "v4l2src ! video/x-raw,width=640,height=480,framerate=30/1
! "
                 "x264enc ! queue ! rtph264pay config-interval=1 name=pay0
pt=96 ! "
                  // audio
                 "filesrc location=/dev/ttyUSB0 do-timestamp=true ! "
                 "audio/x-alaw,rate=8000,channels=1 ! queue ! rtppcmapay
name=pay1 pt=97"
                  " )");

 /dev/ttyUSB0 gives VS1063A encoder g.711 A law output.


I can successfully play the stream with: gst-launch-1.0 -v playbin
uri=rtsp://my.ip:8554/source

But the audio is 500ms~ later than the video. Is there any way to fix this?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Sync-audio-and-video-in-RTSP-server-tp4678788.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list