After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 527907 - ximagesink and xvimagesink have different results on cropping
ximagesink and xvimagesink have different results on cropping
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-13 18:09 UTC by Thijs Vermeir
Modified: 2011-05-19 07:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output for ximagesink (1.95 KB, image/png)
2008-04-13 18:10 UTC, Thijs Vermeir
Details
output for xvimagesink (1.87 KB, image/png)
2008-04-13 18:11 UTC, Thijs Vermeir
Details

Description Thijs Vermeir 2008-04-13 18:09:56 UTC
When you try the following python script with the ximagesink or xvimagesink as the sink element in the pipeline. the output is different in the cropping of the image.

import pygst
pygst.require ("0.10")
import gst
import time

pipeline = gst.Pipeline ("pipeline")
source = gst.element_factory_make ("videotestsrc")
videocrop = gst.element_factory_make ("videocrop")
sink = gst.element_factory_make ("ximagesink")
#sink = gst.element_factory_make ("xvimagesink")

pipeline.add (source)
pipeline.add (videocrop)
pipeline.add (sink)

source.link (videocrop)
videocrop.link (sink)

pipeline.set_state (gst.STATE_PLAYING)
time.sleep (2)
videocrop.set_property ("bottom", 100)
time.sleep (2)
Comment 1 Thijs Vermeir 2008-04-13 18:10:33 UTC
Created attachment 109186 [details]
output for ximagesink
Comment 2 Thijs Vermeir 2008-04-13 18:11:02 UTC
Created attachment 109187 [details]
output for xvimagesink
Comment 3 Sebastian Dröge (slomo) 2011-05-19 07:12:48 UTC
This happens because xvimagesink supports automatic scaling while ximagesink only crops and prefers the window size as video size. If you want consistent behaviour you need to force a video size.