problem with rtsp with audio and video

Wim Taymans wim.taymans at gmail.com
Thu Jun 18 07:24:38 PDT 2015


You need 2 decodebins, one for audio and one for video, like this:

gst-launch rtspsrc location="rtsp://192.168.4.40:8001/" latency=300 name=src
src. ! decodebin  ! queue ! nv_omx_videosink  src. ! decodebin ! queue !
nv_omx_audiosink

Wim

On 18 June 2015 at 16:00, modelvincent <vincent.decaux at oxytronic.fr> wrote:

> Hello,
>
> I'm trying to display a RTSP coming from a VLC source with RTSPSRC but I
> have a strange problem.
>
> If I launch the following command:
> gst-launch rtspsrc location="rtsp://192.168.4.40:8001/" latency=400 !
> gstrtpjitterbuffer ! decodebin ! nv_omx_videosink
>
> it's working perfectly, i have the video with a correct latency(1sec) but
> no
> sound (normal).
>
> If I launch the following command:
> gst-launch rtspsrc location="rtsp://192.168.4.40:8001/" latency=400 !
> gstrtpjitterbuffer ! decodebin ! nv_omx_audiosink
>
> it's working perfectly for the audio side with a correct latency (1sec),
> but
> no image (normal).
>
> but If I launch the following command:
> gst-launch rtspsrc location="rtsp://192.168.4.40:8001/" latency=300 !
> decodebin name=decode decode. ! queue ! nv_omx_videosink decode. ! queue !
> nv_omx_audiosink
>
> the pipeline start but nothing appear, I hear that the audio card is
> configured because I can hear a "ploc" in my headset but nothing more.
>
>
> I've tried to use the following command:
> gst-launch playbin2 uri="rtsp://192.168.4.40:8001/"
> video-sink=nv_omx_videosink
> and it is working with the sound and the display but with a timing between
> audio and video, and the latency is of more than 4 seconds.
>
>
> However, If I launch 2 instances of gstreamer, one with the video only (1st
> command line) and one with audio only (2nd command line) it is working but
> absolutely not easy to use.
>
>
> Can you help me?
>
> Thanks in advance,
>
> Best regards,
>
> vincent DECAUX
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/problem-with-rtsp-with-audio-and-video-tp4672324.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150618/d0771f9d/attachment-0001.html>


More information about the gstreamer-devel mailing list