Greetings.
I am trying to record rtsp stream to a file and I want to change the input
during recording, so that half of the video recorder from stream and the
later half is taken from videotestsrc. Here is my pipeline
rtspsrc location=rtsp://192.168.15.44:554/live/av0 protocols=tcp name=vsrc !
rtph264depay name=vdepay ! avdec_h264 name=avdec ! videoconvert
name=videoconv ! filesink location=test.mp4 name=fsink
I am tried to accomplish this by pausing the pipeline, unlinking rtspsrc,
rtph264depay and avdec_h264 and then creating videotestsrc and x264enc and
linking them to videoconverter, by so far when I try it only half of the
video is recorder, and after resuming the pipeline it starts without errors,
but the video is not recorder anymore.
gst_element_set_state (pipeline, GST_STATE_PAUSED);
gst_element_set_state (vsrc, GST_STATE_NULL);
gst_element_set_state (vdepay, GST_STATE_NULL);
gst_bin_remove_many (GST_BIN (pipeline), vsrc, vdepay, NULL);
gst_bin_add_many(GST_BIN (pipeline), vtest, enc, NULL);
gst_element_link_many (vtest, enc, videoconv, NULL);
gst_element_set_state (pipeline, GST_STATE_PLAYING);
How should something like this be implemented.
--
Sent from:
http://gstreamer-devel.966125.n4.nabble.com/_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel