[gst-devel] Using videoscale with custom video sink
Andrey Nechypurenko
andreynech at googlemail.com
Thu Oct 7 10:47:29 CEST 2010
Hi,
How about looking in the documentation first? ;-)
Here is an example which could be found at the beginning of the
documentation for videoscale element:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-videoscale.html
--------
gst-launch -v filesrc location=videotestsrc.ogg ! oggdemux ! theoradec
! videoscale ! video/x-raw-yuv, width=50 ! xvimagesink
Decode an Ogg/Theora and display the video using xvimagesink with a
width of 50.
--------
You need a caps filter after videoscale element to specify the desired
width and height as shown in the example above.
Andrey.
On Thu, Oct 7, 2010 at 10:09 AM, perjg <perjg at opera.com> wrote:
>
> Hi,
>
> I'm working on an application that has a gstreamer pipeline with a custom
> video sink plugin. The plugin is quite simple, it simply pulls video frames
> and puts them into bitmaps that is then blitted into the application.
>
> I want to add support for scaling the video to different sizes. I tried to
> add a videoscale element just before the video sink, but it does nothing.
>
> (if I for instance use dfbvideosink, adding a videoscale works perfectly)
>
> Is there something special that must be added to the video sink in order for
> it to work properly together with videoscale. How are you supposed to tell
> videoscale what size you want the video scaled to?
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Using-videoscale-with-custom-video-sink-tp2966340p2966340.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
More information about the gstreamer-devel
mailing list