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

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 17 08:42:20 PST 2013


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

--- Comment #14 from pavan goyal <pavan.goyal at st.com> 2013-01-17 16:42:17 UTC ---
Hello Philipp,
              Thanks for your analysis. it realy helps.

yes, without setting any pixel-aspect-ratio, i get same string as you
mentioned.

root at PAVAN-SDK2:~# gst-launch filesrc location=test-2048x2048.jpg ! jpegdec !
ffmpegcolorspace ! videoscale ! freeze ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
gst_st_v4l2_object_get_caps_info-525:video/x-raw-rgb, bpp=(int)32,
depth=(int)32, red_mask=(int)-16777216, green_mask=(int)16711680,
blue_mask=(int)65280, alpha_mask=(int)255, endianness=(int)4321,
width=(int)1920, height=(int)1080, framerate=(fraction)0/1,
pixel-aspect-ratio=(fraction)9/16;

Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 5201580732 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
root at PAVAN-SDK2:~# 

but if i set pixel-aspect-ratio to 1/1, i get width=1 and height=1980 not 1080
& 1080 as you got.

with,    
     if (gst_st_v4l2_formats[i].dimensions) {
          gst_structure_set (structure,
              "width", GST_TYPE_INT_RANGE, 1, MAX_ALLOC_WIDTH,
              "height", GST_TYPE_INT_RANGE, 1, MAX_ALLOC_HEIGHT,
              "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1, NULL);
        }

root at PAVAN-SDK2:~# gst-launch filesrc location=test-2048x2048.jpg ! jpegdec !
ffmpegcolorspace ! videoscale ! freeze ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
gst_st_v4l2_object_get_caps_info-525:video/x-raw-rgb, bpp=(int)32,
depth=(int)32, red_mask=(int)-16777216, green_mask=(int)16711680,
blue_mask=(int)65280, alpha_mask=(int)255, endianness=(int)4321, width=(int)1,
height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)0/1;

Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 34845658113 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

am i missing something!!

Thanks & Regards,
Pavan Goyal

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