[gst-devel] Need help for rezising video.
Nicolas
c.r.n.a at wanadoo.fr
Tue Jan 4 20:02:30 CET 2011
Hi,
Thanks for your reply.
Ok, i do:
pipeline = gst_pipeline_new ("pipeline");
playbin = gst_element_factory_make ("playbin2", "playbin");
// Filter
filter = gst_element_factory_make ("capsfilter", "filter");
caps = gst_caps_new_simple ("video/x-raw-yuv", "format",
GST_TYPE_FOURCC, GST_MAKE_FOURCC ('I', '4', '2', '0'), "width",
G_TYPE_INT, 800, "height", G_TYPE_INT, 600, NULL);
g_object_set ((GObject*) filter, "caps", caps, NULL);
// My sink
sink = gst_element_factory_make ("evasvideosink", "sink");
g_object_set ((GObject*) playbin, "video-sink", sink, NULL); // Tell to
playbin2 to use my sink
g_object_set ((GObject*) playbin, "uri", argv[1], NULL);
g_object_set ((GObject*) sink, "evas-object", video, NULL); // Tell my
sink to use evas image
gst_bin_add_many (GST_BIN (pipeline), playbin, filter, NULL);
gst_element_set_state (pipeline, GST_STATE_PLAYING);
It does not change the size of the video, is this the correct way ?
Thanks in advance for your reply,
Nicolas.
More information about the gstreamer-devel
mailing list