I want to capture the live incoming flash media stream generated via webcam from client machine using gstreamer rtmpsrc plugin and convert it to some processable format. The problem is when i try to view the incoming rtmp flash media stream using the following command i can see the output but when i try to save the stream to a file using filesink it doesn't work at all .
gst-launch-0.10 rtmpsrc location='rtmp://127.0.0.1/flvplayback/mynewstream live=1' ! flvdemux name=d d. ! queue ! decodebin ! xvimagesink
I also wont to construct this pipeline into C/ C ++ program so that i can process the incoming elements . I have written the code for " filesrc --> appsrc --> appsink --> filesink " and it works fine.
however when i write code for the "rtmpsrc -->appsrc --> appsink--> rtmpsink " it doesn't work. I am new to gstreamer programming so can you help me out or tell me good resource where i can get such programming tutorials or samples .
My system config :
Linux Ubuntu 12.04 64 bit
crtmpserver x86_64
gstreamer 0.10