After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755453 - jpegenc: add "snapshot" property
jpegenc: add "snapshot" property
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: 1.13.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-23 08:26 UTC by Matthieu Crapet
Modified: 2018-01-31 17:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add snapshot property (v1) (3.39 KB, patch)
2015-09-23 08:26 UTC, Matthieu Crapet
none Details | Review

Description Matthieu Crapet 2015-09-23 08:26:49 UTC
Created attachment 311926 [details] [review]
add snapshot property (v1)

Add the same handy snapshot property like it is done in pngenc.
Comment 1 Matthieu Crapet 2015-09-23 08:34:24 UTC
Maybe moving num-buffers property from fakesink to basesink would be better?
Comment 2 Kyrylo V. Polezhaiev 2016-11-15 23:34:35 UTC
Nice, we have this for pngenc, why don't include same for jpegenc?
Comment 3 Tim-Philipp Müller 2018-01-31 17:52:04 UTC
Ok, why not. Thanks for the patch!

commit ba86a1d99cabf331be5f1460289b013c5bea5aa8 (HEAD -> master)
Author: Matthieu Crapet <mcrapet@gmail.com>
Date:   Wed Sep 23 10:01:32 2015 +0200

    jpegenc: add snapshot property
    
    Like pngenc, automatically send an EOS message.
    
    Example of bin:
    appsrc ! jpegenc snapshot=true ! filesink location=out.jpg
    
    This is especially useful for limited/slow hardware.
    
    Otherwise calling gst_video_convert_sample() is a better option
    (internally uses videoconvert and videoscale).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755453