RTSP to RTMP

Petteri Matilainen pmatil at gmail.com
Sat Dec 12 06:16:04 PST 2015


Hi all.

I have an IP camera that outputs an RTSP stream. That cannot be diaplyed 
on a web page so I need to convert it to RTMP. I'm experimenting with 
the following pipeline:

gst-launch-1.0 -v -e rtspsrc name=src 
location=rtsp://192.168.90.11:10554/udp/av0_0 user-id=xxxx user-pw=xxxx 
src.stream_1 ! queue ! 
application/x-rtp,media=\(string\)audio,payload=\(int\)8,clock-rate=\(int\)8000,encoding-name=\(string\)PCMA,encoding-params=\(string\)1 
! fakesink src.stream_0 ! queue ! 
application/x-rtp,media=\(string\)video,payload=\(int\)96,clock-rate=\(int\)90000,encoding-name=\(string\)H264,packetization-mode=\(string\)1,profile-level-id=\(string\)42001F,sprop-parameter-sets=\(string\)\"Z0IAH5WoFAFuQA\\\=\\\=\\\,aM48gA\\\=\\\=\" 
! rtph264depay ! h264parse ! flvmux ! rtmpsink 
location='rtmp://localhost:1936/live/teststream live=1'

However it does not work. It won't go into rtmpsink and I get an error. 
Here's the output: http://pastebin.com/6NDim7u9

There is the line "not linked" which I think means that there is a 
stream that has to be linked somewhere. I just can't figure out what it 
is or how to do it. It seems that there's 2 streams, video and audio and 
in the above pipeline I'm trying to direct audio into fakesink (for now).


More information about the gstreamer-devel mailing list