Videoscale aspect fill

Hoël VASSEUR hoel.vasseur at smile.fr
Wed May 4 12:11:18 UTC 2016


 

Hi Johan, 

I think you could crop the video with videocrop before
using videoscale. 

Your pipeline would look to something like :
videocrop ! videoscale ! capsfilter. 

In videocrop you'll have to set
top, bottom, right and left properties to the correct values. 

In the
capsfilter you'll set the final display resolution you want. 

Hoël 

Le
2016-05-04 13:31, Johan Basore a écrit : 

> Hello everyone, I am using
videoscale and filter to resize video. But I can't aspect fill option,
just it resize video with aspect fit. Here are my videoscale codes.
************************* filtercaps1 =
gst_caps_new_simple("video/x-raw", "width", G_TYPE_INT, 200, "height",
G_TYPE_INT, 400, nil); g_object_set(G_OBJECT (filter1), "caps",
filtercaps1, nil); gst_caps_unref(filtercaps1);
gst_element_link_many(clrspace1, videoscale1, filter1, videomixer, nil);
************************* 
> -------------------------
> View this
message in context: Videoscale aspect fill [2]
> Sent from the
GStreamer-devel mailing list archive [3] at Nabble.com.
> 
>
_______________________________________________
> gstreamer-devel
mailing list
> gstreamer-devel at lists.freedesktop.org
>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel [1]



Links:
------
[1]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
[2]
http://gstreamer-devel.966125.n4.nabble.com/Videoscale-aspect-fill-tp4677324.html
[3]
http://gstreamer-devel.966125.n4.nabble.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160504/02a6330a/attachment-0001.html>


More information about the gstreamer-devel mailing list