projects
/
experiments
/
gstreamer.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
511d60c
)
Move the capsfilter meant for videoscale _after_ the element
author
Antonio Ospite <ospite@studenti.unina.it>
Tue, 5 Mar 2013 14:24:20 +0000
(15:24 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Tue, 5 Mar 2013 14:29:37 +0000
(15:29 +0100)
gst-custom-player.py
patch
|
blob
|
history
diff --git
a/gst-custom-player.py
b/gst-custom-player.py
index
150163e
..
eef3f6b
100755
(executable)
--- a/
gst-custom-player.py
+++ b/
gst-custom-player.py
@@
-42,21
+42,21
@@
class CustomVideoBin(gst.Bin):
queue = gst.element_factory_make('queue', 'vqueue')
self.add(queue)
queue = gst.element_factory_make('queue', 'vqueue')
self.add(queue)
+ rescale = gst.element_factory_make("videoscale", "rescale")
+ self.add(rescale)
+
caps = gst.Caps("video/x-raw-yuv,format=(fourcc)AYUV,width=%d,height=%d" % (WIDTH, HEIGHT))
capsfilter = gst.element_factory_make("capsfilter", "filter")
capsfilter.set_property("caps", caps)
self.add(capsfilter)
caps = gst.Caps("video/x-raw-yuv,format=(fourcc)AYUV,width=%d,height=%d" % (WIDTH, HEIGHT))
capsfilter = gst.element_factory_make("capsfilter", "filter")
capsfilter.set_property("caps", caps)
self.add(capsfilter)
- rescale = gst.element_factory_make("videoscale", "rescale")
- self.add(rescale)
-
colorspace = gst.element_factory_make("colorspace", "colorspace")
self.add(colorspace)
videosink = gst.element_factory_make("autovideosink", "vidoesink")
self.add(videosink)
colorspace = gst.element_factory_make("colorspace", "colorspace")
self.add(colorspace)
videosink = gst.element_factory_make("autovideosink", "vidoesink")
self.add(videosink)
- gst.element_link_many(queue,
capsfilter, rescale
, colorspace, videosink)
+ gst.element_link_many(queue,
rescale, capsfilter
, colorspace, videosink)
sink = queue.get_pad('sink')
self.add_pad(gst.GhostPad('sink', sink))
sink = queue.get_pad('sink')
self.add_pad(gst.GhostPad('sink', sink))