Change resolution on the fly
Nicolas Dufresne
nicolas at ndufresne.ca
Wed Jan 22 02:23:44 UTC 2020
Le mardi 21 janvier 2020 à 17:43 -0600, bobsaccamano a écrit :
> Hi,
>
> I'm facing a similar problem: my pipeline is:
> v4l2src --> capsfilter1 --> nvvidconv --> videoscale --> capsfilter2 -->
> enc --> parse --> rtppay --> udpsink.
>
> It seems to be working from gst-launch. When I use g_object_set on
> capsfilter2 I cannot use gst_caps_new_simple as I am changing the image
> format to NVMM (Nvidia)) after nvvidconv. Instead I use gst_caps_from_string
> for capsfilter2 modification. However, now there is no way to set NVMM
> memory with gst_caps_new_simple. See the issue here
> <
> https://devtalk.nvidia.com/default/topic/934515/using-x-raw-memory-nvmm-in-gstreamer-program/
No way ?
caps = gst_caps_new_simple ("video/x-raw", "width", G_TYPE_INT, 1280,
"height", G_TYPE_INT, 720,
NULL);
features = gst_caps_get_features (caps, 0);
gst_caps_features_add (featurs, "memory:NVMM");
g_object_set (capsfilter, "caps", cpas, NULL);
> >
> .
>
> Any help is much appreciated.
>
> ~Bob
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list