<div dir="ltr">Hi. Thanks in advance.<br>I want to record a video from an rtsp video camera and at the same time process the video frame obtained from appsink throught  new-sample signal. Then, in a separate application I read the video and show the information related to the frames.<br><br>I have this pipeline:<br>rtspsrc location=rtsp://<a href="http://10.0.0.1:554/video.sdp">10.0.0.1:554/video.sdp</a> latency=100 ! rtph264depay ! tee name=t<br> ! queue ! vaapidecodebin ! vaapipostproc format=rgba  !  appsink name=appsink t. <br> ! queue ! h264parse ! mp4mux ! filesink sync=false name=filer location=/home/VideoDB/2017-09-04_16:33:46.mp4<br><br>GstFlowReturn GstVideoSourcePrivate::newSample(GstAppSink* sink, gpointer user_data)<br>{<br>        ....<br>        GstSample* sinkSample = gst_app_sink_pull_sample(GST_APP_SINK(sink));<br>        if (sinkSample) {<br>            GstBuffer* buffer = gst_sample_get_buffer(sinkSample);<br>            // I need this position to be the same as the recorded video<br>            GstClockTime pos;<br>            gst_element_query_position(self->pipeline(), GST_FORMAT_TIME, &pos);<br>            ...<br>        }<br>        ...<br>}<br></div>