<div>Hi,</div><div><br></div><div>Check valve gst element or the probes to check the buffers timestamp to drop or pass the buffer.</div><div><br></div><div>Best,</div><div><br></div><div>Angel</div><br><div class="gmail_quote">
2013/6/5 a b <span dir="ltr"><<a href="mailto:genericgroupmail@gmail.com" target="_blank">genericgroupmail@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I have an issue with capturing a single snapshot from one particular device.<br>
Very often when starting to stream from one of our capture cards using<br>
the decklinksrc element the first few seconds of video are badly<br>
tuned/rendered before things finally correct themselves and the video<br>
appears normal.<br>
The way in which i am taking a screen shot means that the first video<br>
frame is output to an image file, which for this device means a very<br>
poor snapshot.<br>
There is no issue with the v4l2src capture cards as the first frame is<br>
always perfectly tuned/rendered.<br>
<br>
Here is how i am doing it:<br>
<br>
gst-launch decklinksrc mode=2 connection=4 ! ffmpegcolorspace !<br>
video/x-raw-rgb ! pngenc snapshot=true ! filesink location="frame.png"<br>
<br>
Is there anyway or any element i can use to drop the first few seconds<br>
of video or the first e.g. 90 frames before taking the snapshot?<br>
I had read about the valve element and played with it but didn't see<br>
how it was going to work (for a start it causes execution to block).<br>
Ideally I'd like the command to run and finish with no further<br>
interaction as it does at the moment.<br>
If there is no real way to do it via a command line, then it would be<br>
useful if anyone could point to a way to do it programatically via<br>
python.<br>
<br>
Thanks in advance.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>