Suggested PIpeline to capture jpegs from playing movie?
Stirling Westrup
swestrup at gmail.com
Wed Oct 7 10:26:16 PDT 2015
On Tue, Oct 6, 2015 at 6:21 PM, Nicolas Dufresne <
nicolas.dufresne at collabora.com> wrote:
> Le mardi 06 octobre 2015 à 16:10 -0400, Stirling Westrup a écrit :
> > While we have a movie playing to a display, we'd like to have a
> > secondary output capturing one frame every second or so, and storing
> > it in a jpeg file. In particular, we want each new frame to overwrite
> > the last, so that the jpeg file just shows one frame from the last
> > second.
> >
> > Does anyone have a suggestion for a good pipeline to accomplish this
> > sort of thing?
>
> If precision is not essential, I would simply use the last-sample
> property of the sink with a separate pipeline for encoding. Otherwise,
> you way use:
>
> ... ! tee name=t
> t. ! videosink
> t. ! videorate drop-only=1 ! video/x-raw,framerate=1/1 \
> ! jpegenc ! filesink location=myfile.jpeg
>
> "tee" element could have side effects on the performance as it drops
> the allocation query.
>
>
Thanks, but your suggestion is what I tried first. the filesink just keeps
appending the new frames to the myfile.jpeg, not overwriting.
--
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151007/e90141df/attachment.html>
More information about the gstreamer-devel
mailing list