How to Stop/start recording using Valve element

Harish Sakhare harish_sakhare at yahoo.com
Mon Aug 26 04:49:52 PDT 2013


Hello All,


                       I am sending a video stream using a C920 HD camera as
an MP2TS stream. I am able to see video on android tablet also I used "tee"
element to record the video. To start stop video recording I am using
"valve" element. The default property of valve=FALSE so I used it in my
pipeline it works well the streaming as well as recording is done. But when
I used valve = TRUE to stop recording then it stops streaming also.
Streaming gets stuck just one frame is displayed on the screen.

Here below is my working pipeline with recording:--

data->pipeline = gst_parse_launch("udpsrc caps=\"video/mpegts,
systemstream=(boolean)true, packet-size=(int)188\" ! tsdemux ! h264parse !
tee name=myvid ! queue ! amcviddec-omxtiducati1videodecoder ! eglglessink
myvid. ! queue ! filesink location=/storage/sdcard0/Movies/Test.mp4",
&error);

Here below is my pipeline where streaming gets STUCK:-

data->pipeline = gst_parse_launch("udpsrc caps=\"video/mpegts,
systemstream=(boolean)true, packet-size=(int)188\" ! tsdemux ! h264parse !
tee name=myvid ! queue ! amcviddec-omxtiducati1videodecoder ! eglglessink
myvid. ! valve drop = true ! queue ! filesink
location=/storage/sdcard0/Movies/Test.mp4",
&error);


So please any one guide how to use Valve to stop recording and how I used it
in my pipeline.
I would appreciate any help for my problem.





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-Stop-start-recording-using-Valve-element-tp4661728.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list