How to drop first X frames or first X seconds of video

Angel Martin amartin at vicomtech.org
Wed Jun 5 04:52:10 PDT 2013


Hi,

Check valve gst element or the probes to check the buffers timestamp to
drop or pass the buffer.

Best,

Angel

2013/6/5 a b <genericgroupmail at gmail.com>

> Hi all,
>
> I have an issue with capturing a single snapshot from one particular
> device.
> Very often when starting to stream from one of our capture cards using
> the decklinksrc element the first few seconds of video are badly
> tuned/rendered before things finally correct themselves and the video
> appears normal.
> The way in which i am taking a screen shot means that the first video
> frame is output to an image file, which for this device means a very
> poor snapshot.
> There is no issue with the v4l2src capture cards as the first frame is
> always perfectly tuned/rendered.
>
> Here is how i am doing it:
>
> gst-launch decklinksrc mode=2 connection=4 ! ffmpegcolorspace !
> video/x-raw-rgb ! pngenc snapshot=true ! filesink location="frame.png"
>
> Is there anyway or any element i can use to drop the first few seconds
> of video or the first e.g. 90 frames before taking the snapshot?
> I had read about the valve element and played with it but didn't see
> how it was going to work (for a start it causes execution to block).
> Ideally I'd like the command to run and finish with no further
> interaction as it does at the moment.
> If there is no real way to do it via a command line, then it would be
> useful if anyone could point to a way to do it programatically via
> python.
>
> Thanks in advance.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130605/6b49345e/attachment.html>


More information about the gstreamer-devel mailing list