How can I save the video frame to local file with jpg format?

David Röthlisberger david at rothlis.net
Mon Jun 10 03:23:04 PDT 2013


On 10 Jun 2013, at 10:56, DBOYaoao wrote:
> Hi ALL:
>    I have set a pipeline with appsink,and I can get the buffer through the
> appsink,But  how can I save the frame to local jpg file? 


Use a jpeg library.

OR, if you're lazy like me, use a separate GStreamer pipeline with
appsrc, jpegenc, and filesink:

https://github.com/drothlis/stb-tester/blob/0.13/stbt.py#L487



More information about the gstreamer-devel mailing list