Regarding preevent

Shilpa Chandrappa elites.shilpa at gmail.com
Mon Mar 17 04:34:03 PDT 2014


Hi,

Is it possible to implement circluar buffer in gstreamer to store 60 seconds
video data continuously. During an event trigger I need to prepend the
circular buffer data with the incoming video data and store in a file.

I saw a thread which mentions using 'queue' we can achieve this. So I tried
below approach.

 gst_parse_launch ("rtspsrc location=rtsp://172.22.75.2/live.sdp name=rtsp ! 
*queue min-threshold-time=60000000000 name=que12 ! valve drop=true
name=val12* !  rtph264depay ! video/x-h264, width=1920, height=1080,
framerate=30/1  ! avimux name=avi !  filesink location=*rtsp.avi*", &error);

 During an event trigger I am setting the below properties.

g_object_set (G_OBJECT (val2), "drop",false, NULL);
g_object_set (G_OBJECT (que2), "min-threshold-time",(gint64)0, NULL);

With this approach I am *not able* to see creation of preevent video of
60seconds(prepended) in the recorded file rtsp.avi.

Is there anything which I am missing ?

I request you to provide inputs on how to achieve this.

Regards,
Shilpa







--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Regarding-preevent-tp4665983.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list