How to save from rtspsrc to filesink?

Giacomo D omagico.olo at gmail.com
Tue Dec 8 09:34:49 PST 2015


Hi everyone!
I'm trying to save a mp4 file which I'm streaming with VLC (without
"transcoding" and with "elementary streams") via RTSP.
I'm able to receive and show it with 

pipeline= Gst.parse_launch("playbin uri=rtsp://127.0.0.1:8554/stream")

but when I try to save it with this (without audio branch):

        self.pipelinelaunch = Gst.parse_launch("mp4mux name=mux ! filesink
location=myLocation/prova.mp4 \
        rtspsrc location=rtsp://127.0.0.1:8554/stream name = src src. !
queue ! rtph264depay ! h264parse ! mux. ")
         # src. ! queue ! rtpmp4adepay ! aacparse ! mux. ")

        Gst.Element.set_state(self.pipelinelaunch, Gst.State.PLAYING)
        time.sleep(10)
        self.pipelinelaunch.send_event(Gst.Event.new_eos())

I'm getting a .mp4 file but if I open it a blank screen is shown me!
If  I add audio branch I'm getting a empty file.

I'm stuck because I can't find examples on it.

Thanks in advance for your help!
G.





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-save-from-rtspsrc-to-filesink-tp4674814.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list