[gstreamer-bugs] [Bug 617506] New: [videoscale(/videobox?)] Need an automatic way to add black borders while scaling

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon May 3 02:23:23 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=617506
  GStreamer | gst-plugins-base | git

           Summary: [videoscale(/videobox?)] Need an automatic way to add
                    black borders while scaling
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: bilboed at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


Currently there is no *automatic* way to resize a video while adding black
borders. That is:
* keep DAR (see bug #371108 regarding videoscale)
* maximize usage of downstream caps by adding black borders

One can of course do this manually (by setting the values on videobox), but
requires outside intervention to parse upstream/downstream caps and decide what
values to set.

Ideally we shouldn't need videobox for this use case, but instead have a
'add-black-borders' mode on videoscale which respects the two points at the top
of this comment.

To demonstrate what's needed, you should be able to use the following pipeline
and when you resize the output window, the video should be scaled as much as
possible, and have black borders added if/where neeeded :
videotestsrc ! video/x-raw-yuv,width=320,height=240 ! videoscale
add-black-borders=True ! ximagesink

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list