[Bug 691827] videoscale: display aspect ratio is not maintained

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 17 02:49:21 PST 2013


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

--- Comment #3 from pavan goyal <pavan.goyal at st.com> 2013-01-17 10:49:14 UTC ---
Hello Sebastian,
                 like a below pipeline can be used,

gst-launch filesrc location=colorbar.jpg ! jpegdec ! ffmpegcolorspace !
videoscale ! freeze ! autovideosink

i am using a custom displaysink as per my hardware. my display plane size is
1920 * 1080.

so when in my displaysink, 

get_caps is called, i return

          gst_structure_set (structure,
              "width", GST_TYPE_INT_RANGE, 1, 1920,
              "height", GST_TYPE_INT_RANGE, 1, 1080,
              "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1, NULL);
        }

so in set caps, for an image of resolution say 1920*1920, i get width=1920 and
height 1080 but i should get width 1080 and height 1080.


Thanks & Regards,
Pavan Goyal

(In reply to comment #2)
> Can you provide a testcase for this, e.g. a gst-launch line?

-- 
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