RES: Sync audio and video in RTSP server

Daniel Lopes Fússia daniell at inatel.br
Thu Jul 21 17:23:40 UTC 2016


Hi,

Try a fixed bitrate equals 200 or less in x264enc, maybe it can help you.

Regards,
Daniel Fussia
ICC-Inatel Competence Center.

-----Mensagem original-----
De: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Em nome de bomba
Enviada em: quinta-feira, 21 de julho de 2016 13:18
Para: gstreamer-devel at lists.freedesktop.org
Assunto: Sync audio and video in RTSP server

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.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list