[gst-devel] video scaling elemen in application

karmendra jain karmendra.jain at gmail.com
Fri Oct 5 10:31:32 CEST 2007


yaa i think u need this

/* setup */
  g_object_set (G_OBJECT (flt), "caps",
  		gst_caps_new_simple ("video/x-raw-rgb",
				     "width", G_TYPE_INT, 384,
				     "height", G_TYPE_INT, 288,
				     "framerate", GST_TYPE_FRACTION, 1, 1,
				     "bpp", G_TYPE_INT, 16,
				     "depth", G_TYPE_INT, 16,
				     "endianness", G_TYPE_INT, G_BYTE_ORDER,
				     NULL), NULL);


read this link .. it'll solve the problem
http://gstreamer.freedesktop.org/data/doc/gstreamer/stable/manual/html/section-data-spoof.html

Regards
Karmendra

On 10/5/07, Pete Nam <devpersoaccount at yahoo.com> wrote:
>
> 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
>
>  ________________________________
> Pinpoint customers who are looking for what you sell.
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> 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