rtspsrc is not compatible with rtmpsink

Nicolas Dufresne nicolas.dufresne at collabora.com
Sun Apr 26 14:20:48 PDT 2015


Normally the Youtube server provide errors string, doesn't it say
something for you ?

Le dimanche 26 avril 2015 à 00:10 +0200, hlasuj at atlas.sk a écrit :
> 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
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list