Compositor doesn't show input video at correct scale
Submitted by Mathieu Hinderyckx
Link to original bug (#752913)
Description
When using the compositor to display videos with the width parameter, compositor doesn't lead to correct displaying (videomixer does)
VIDEOMIXER (correct):
gst-launch-1.0 videomixer name=mix sink_1::xpos=1920 sink_2::ypos=1080 sink_3::xpos=1920 sink_3::ypos=1080 ! videoconvert ! xvimagesink \
videotestsrc pattern=1 ! \
video/x-raw,format=I420,framerate=(fraction)10/1,width=1920,height=1080 ! \
timeoverlay text="Lossless:" shaded-background=true ! queue ! \
mix.sink_0 \
videotestsrc pattern=5 ! \
video/x-raw,format=I420,framerate=(fraction)10/1,width=1920,height=1080 ! \
timeoverlay text="1080p " shaded-background=true ! queue ! \
mix.sink_1 \
videotestsrc pattern=9 ! \
video/x-raw,format=I420,framerate=(fraction)10/1,width=1280,height=720 ! \
videoscale ! video/x-raw,width=1920 ! \
timeoverlay text="720p" shaded-background=true ! queue ! \
mix.sink_2 \
videotestsrc pattern=1 ! \
video/x-raw,format=I420,framerate=(fraction)10/1,width=960,height=540 ! \
videoscale ! video/x-raw,width=1920 ! \
timeoverlay text="540p" shaded-background=true ! queue ! \
mix.sink_3
COMPOSITOR (wrong):
gst-launch-1.0 compositor name=mix sink_1::xpos=1920 sink_2::ypos=1080 sink_3::xpos=1920 sink_3::ypos=1080 ! videoconvert ! xvimagesink \
videotestsrc pattern=1 ! \
video/x-raw,format=I420,framerate=(fraction)10/1,width=1920,height=1080 ! \
timeoverlay text="Lossless:" shaded-background=true ! queue ! \
mix.sink_0 \
videotestsrc pattern=5 ! \
video/x-raw,format=I420,framerate=(fraction)10/1,width=1920,height=1080 ! \
timeoverlay text="1080p " shaded-background=true ! queue ! \
mix.sink_1 \
videotestsrc pattern=9 ! \
video/x-raw,format=I420,framerate=(fraction)10/1,width=1280,height=720 ! \
videoscale ! video/x-raw,width=1920 ! \
timeoverlay text="720p" shaded-background=true ! queue ! \
mix.sink_2 \
videotestsrc pattern=1 ! \
video/x-raw,format=I420,framerate=(fraction)10/1,width=960,height=540 ! \
videoscale ! video/x-raw,width=1920 ! \
timeoverlay text="540p" shaded-background=true ! queue ! \
mix.sink_3
The compositor adds a gray area to the right and does not show the correct height for the lowest 2 videos. When adding the height=1080 as parameter to the last 2 videoscale elements, displaying is correct.
Version: 1.5.2