Skip to content
  • Guillaume Desmottes's avatar
    videometa: add support for downstream parameters to ROI meta · f5855d50
    Guillaume Desmottes authored and Nicolas Dufresne's avatar Nicolas Dufresne committed
    The current GstVideoRegionOfInterestMeta API allows elements to detect
    and name ROI but doesn't tell anything about how this information is
    meant to be consumed by downstream elements.
    Typically, encoders may want to tweak their encoding settings for a
    given ROI to increase or decrease their quality.
    Each encoder has its own set of settings so that's not something that
    can be standardized.
    
    This patch adds encoder-specific parameters to the meta which can be
    used to configure the encoding of a specific ROI.
    
    A typical use case would be: source ! roi-detector ! encoder
    with a buffer probe on the encoder sink pad set by the application.
    Thanks to the probe the application will be able to tell to the encoder
    how this specific region should be encoded.
    
    Users could also develop their specific roi detectors meant to be used with a
    specific encoder and directly putting the encoder parameters when
    detecting the ROI.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=793338
    f5855d50