GNOME Bugzilla – Bug 631104
GStreamer: open source multimedia framework
Last modified: 2010-10-02 12:23:49 UTC
Created attachment 171496 [details] Debug log of the session On the code base with last patch as commit 3bfc79f7de8707eb107deda13b61c5d774cdb589 Author: Edward Hervey <bilboed@bilboed.com> Date: Tue Sep 21 18:33:36 2010 +0200 Automatic update of common submodule From aa0d1d0 to 5e3c9bf I have an issue with playing the rtsp stream encoded in h264 video and aac as audio codec. I have all the required libs are installed (faad, faac etc) I am attaching the conversation betweek gst-launch and rtsp server. Please let me know if you need any further information. The command used is as below gst-launch rtspsrc debug=TRUE location=rtsp://XXX.XXX.XXX.XXX/stream1 name=src .src_video ! queue ! ffmpegcolorspace ! xvimagesink -v src.src_audio ! queue ! audioconvert! autoaudiosink Thanks for any suggestion/help !! Gurvinder
> > gst-launch rtspsrc debug=TRUE location=rtsp://XXX.XXX.XXX.XXX/stream1 name=src > .src_video ! queue ! ffmpegcolorspace ! xvimagesink -v src.src_audio ! queue ! > audioconvert! autoaudiosink rtspsrc does not have pads named src_video and src_audio. Try: gst-inspect rtspsrc To see the srcpad names. Also read the gst-launch manpage. Also you don't have any depayloader or decoder in that pipeline. Try reading some manuals or when you don't know how to build a pipeline, use playbin2: gst-launch playbin2 uri=rtsp://XXX.XXX.XXX.XXX/stream1 Reopen if that doesn't work for you.
Created attachment 171559 [details] Pipeline Log
Thanks Wim for the quick response. I tried to play the stream with the playbin2 and it plays fine with the given command. But when I try to play it with my pipeline, gst-launch-0.10 rtspsrc location=rtsp://158.38.62.108/stream1 name=src ! decodebin name=d ! queue ! ffmpegcolorspace ! video/x-raw-yuv ! xvimagesink -v d. ! queue ! audioconvert ! audio/x-raw-int ! autoaudiosink it just says playing and no audio or video is coming to my system. I am attaching the log from both playbin2 and my pipeline. As I am not sure the issue is in my pipeline or in the rtspsrc. It does detect all the correct codec settings for both audio and video. The stream should be accessible over internet, for you testing. Thanks again and looking forward to further suggestions. Regards, Gurvinder
The issue is with your pipeline. rtspsrc will not create pads that output raw video/audio and can link to ffmpegcolorspace/audioconvert. Try replacing rtspsrc with uridecodebin uri= and it might work.
Thanks Tim a lot. It works like a charm now.. if any one happen to have same issue again. Here is the working pipeline gst-launch-0.10 uridecodebin uri=rtsp://158.38.62.108/stream1 name=d ! queue ! ffmpegcolorspace ! video/x-raw-yuv ! xvimagesink d. ! queue ! audioconvert ! audio/x-raw-int ! autoaudiosink - G