[gst-devel] video scaling elemen in application
René Stadler
mail at renestadler.de
Thu Oct 4 23:46:33 CEST 2007
Am Donnerstag, den 04.10.2007, 14:15 -0700 schrieb Pete Nam:
> Hi,
> I have a simple yet unsolved question:
> let says i have the command line:
> gst-launch filesrc location=myfile.avi ! decodebin !
> video/x-raw-rgb,width=1200 ! ffmpegcolorspace ! directdrawsink
>
> This works fine, and I'm able to rescale the video to desired width.
>
> Now I want to have the same in my application. I am able to create and
> link together all elements (filesrc, decodebin, ffmpegcolorspace and
> directdrawsink), and it displays my video as well. But how to make the
> "video/x-raw-rgb,width=1200" part into an element to create? If I look
> at the videoscale plugin for ex, I don't see any property to set for
> video dimensions....
> Can anyone tell me what I should use for this purpose?
> Regards,
> Pete
When gst-launch sees a caps string, it creates a capsfilter element.
The capsfilter element has a "caps" property, which is set to the result
of running gst_caps_from_string on the provided caps string. You can
replicate that easily, creating the capsfilter element just like any
other element, adding it to the pipeline and linking it in.
--
Regards,
René Stadler
More information about the gstreamer-devel
mailing list