[Bug 777475] compositor : Issue in computing position when pixel-aspect-ratio is not 1/1

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Jan 19 11:09:48 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=777475

--- Comment #4 from Baby octopus <jagadishkamathk at gmail.com> ---
Thanks for the feedback. I understand that the position is based on output par

Should the user know incoming PAR well in advance so that he can set output_par
= input_par, in order the position to be as per coordinate system?
Is this is a bug or by design

Pipeline1 : Positions wrongly
gst-launch-1.0 videotestsrc pattern=0 !
video/x-raw,width=100,height=100,pixel-aspect-ratio=2/1 ! comp. videotestsrc
pattern=18 ! video/x-raw,width=100,height=100,pixel-aspect-ratio=2/1 ! comp.
compositor name=comp sink_0::xpos=0  sink_0::ypos=0 sink_1::xpos=100
sink_1::ypos=0 ! video/x-raw,pixel-aspect-ratio=1/1 ! videoconvert !
autovideosink

Pipeline2 : Positions perfectly
gst-launch-1.0 videotestsrc pattern=0 !
video/x-raw,width=100,height=100,pixel-aspect-ratio=2/1 ! comp. videotestsrc
pattern=18 ! video/x-raw,width=100,height=100,pixel-aspect-ratio=2/1 ! comp.
compositor name=comp sink_0::xpos=0  sink_0::ypos=0 sink_1::xpos=100
sink_1::ypos=0 ! video/x-raw,pixel-aspect-ratio=2/1 ! videoconvert !
autovideosink

For pipeline2 to work, I need to force output_par same as input_par. I may not
know input-par well in advance. And if input_par changes on the fly? Then
output par too needs to be forced dynamically

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