Difference between videoscale and videobox
Nicolas Dufresne
nicolas.dufresne at collabora.co.uk
Sun Nov 25 14:54:58 PST 2012
Le vendredi 23 novembre 2012 à 06:26 -0800, Baby Octopus a écrit :
> I would want to scale an image with letter box for maintaining display
> aspect
> ratio. I tried to upscale a 352x288 image to 640x360 by running the
> below
> mentioned command. I'm not satisfied with the result. Input is
> http://i49.tinypic.com/os51r6.png but the result is
> http://i47.tinypic.com/25ksm6s.png
This looks like a bug to me, it's seems that width and height is being
inverted somewhere. Please file a bug,
https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer. Another way
to show the problem:
Broken with xvimagesink:
gst-launch-1.0 videotestsrc ! video/x-raw,width=352,height=288,aspect-ratio=1/1 ! videoscale add-borders=1 ! video/x-raw,width=640,height=360 ! xvimagesink
Good with ximagesink:
gst-launch-1.0 videotestsrc ! video/x-raw,width=352,height=288,aspect-ratio=1/1 ! videoscale add-borders=1 ! video/x-raw,width=640,height=360 ! ximagesink
Nicolas
More information about the gstreamer-devel
mailing list