rtspsrc is not compatible with rtmpsink

hlasuj at atlas.sk hlasuj at atlas.sk
Sat Apr 25 15:10:52 PDT 2015


Hi all,
I have been stucked for the third week with the following pipe which does not work with GStreamer 1.4.3:
 
gst-launch-1.0 -v rtspsrc location=rtsp://192.168.0.100/stream1 ! rtph264depay ! h264parse ! video/x-h264,stream-format=avc,alignment=au ! queue ! mux. audiotestsrc ! volume mute=1 ! audio/x-raw,rate=44100 ! queue ! lamemp3enc bitrate=128 ! mpegaudioparse ! queue ! flvmux streamable=true name=mux ! rtmpsink location=$primary_server_url/$stream_name
 
I am trying to stream to YouTube Live and the server closes the connection with these errors:
ERROR: WriteN, RTMP send error 104 (110 bytes)
ERROR: WriteN, RTMP send error 32 (66 bytes)
ERROR: WriteN, RTMP send error 9 (42 bytes)
 
It is interesting that if I divide the previous pipe into two pipes which communicate over TCP on localhost then it works. These two pipes are below.
 
gst-launch-1.0 -v rtspsrc location=rtsp://192.168.0.100/stream1 ! rtph264depay ! h264parse ! queue ! matroskamux streamable=true ! tcpserversink host=127.0.0.1 port=5010 sync-method=2 recover-policy=keyframe

gst-launch-1.0 -v tcpclientsrc host=127.0.0.1 port=5010 do-timestamp=true ! matroskademux ! h264parse ! queue ! mux. audiotestsrc ! volume mute=1 ! audio/x-raw,rate=44100 ! queue ! lamemp3enc bitrate=128 ! mpegaudioparse ! queue ! flvmux streamable=true name=mux ! rtmpsink location=$primary_server_url/$stream_name
 
Moreover, if I first save the stream from rtspsrc into a file and then I send the file via rtmpsink then it works as well.
 
Is it possible to make the first pipe working?
 
Thank you for help in advance!
Hugo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150426/4c14d316/attachment.html>


More information about the gstreamer-devel mailing list