GNOME Bugzilla – Bug 588675
rtspsrc cannot play audio and video together
Last modified: 2009-07-18 10:05:00 UTC
Please describe the problem: Trying to use a pipeline to receive audio and video from a RTSP live stream. I need to further process the elementary audio and video streams, so I cannot use a playbin2 (which works without a problem) while this pipeline brings me the audio signal: gst-launch-0.10 --gst-debug-level=2 rtspsrc location=rtsp://c13010-ls.m.core.cdn.streamfarm.net/dw-europa9913010/13010dwtveu350.sdp ! gstrtpjitterbuffer ! gstrtpssrcdemux name=d d. ! queue ! rtpmp4gdepay ! faad ! autoaudiosink and this one the video signal: gst-launch-0.10 --gst-debug-level=2 rtspsrc location=rtsp://c13010-ls.m.core.cdn.streamfarm.net/dw-europa9913010/13010dwtveu350.sdp ! gstrtpjitterbuffer ! gstrtpssrcdemux name=d d. ! queue ! rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! autovideosink but one only pipeline playing both audio and video is failing !!! gst-launch-0.10 --gst-debug-level=2 rtspsrc location=rtsp://c13010-ls.m.core.cdn.streamfarm.net/dw-europa9913010/13010dwtveu350.sdp ! gstrtpjitterbuffer ! gstrtpssrcdemux name=d d. ! queue ! rtpmp4gdepay ! faad ! autoaudiosink d. ! queue ! rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! autovideosink Steps to reproduce: 1. copy paste the audio pipeline above depicted - works 2. copy paste the video pipeline above depicted - works 3. copy paste the audio + video pipeline - not working Actual results: I get audio, and video, but not both together Expected results: I expect to get audio and video together Does this happen every time? yes Other information:
The pipeline is wrong, rtspsrc already includes a jitterbuffer and an ssrc demuxer. Try this instead: gst-launch-0.10 --gst-debug-level=2 rtspsrc location=rtsp://c13010-ls.m.core.cdn.streamfarm.net/dw-europa9913010/13010dwtveu350.sdp name=d ! queue ! rtpmp4gdepay ! faad ! autoaudiosink d. ! queue ! rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! autovideosink Reopen if that doesn't work.