Strange error using "gst_parse_launch" under Windows

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Strange error using "gst_parse_launch" under Windows

Myzhar
Hello,

I have a C++ code that works pretty well under Ubuntu using appsink.

The same code under windows fails when I call "gst_parse_launch" with the following pipeline:

udpsrc multicast-iface=ethernet_0 multicast-group=239.0.0.105 auto-multicast=true port=16000 caps="application/x-rtp, encoding-name=H264, payload=96" ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! appsink name=sink caps="video/x-raw,format=BGR,pixel-aspect-ratio=1/1"

The error is really weird:

*** Error *** could not construct pipeline: no element "udpsrc"

it seems link udpsrc element is not available, but I do not have any dll error

Any idea?

Thank you
Walter

PS I'm using GStreamer 1.9.90 32bit
Walter Lucetti
www.myzhar.com
Reply | Threaded
Open this post in threaded view
|

Re: Strange error using "gst_parse_launch" under Windows

Sebastian Dröge-3
On Fri, 2016-11-04 at 06:29 -0700, Myzhar wrote:

> Hello,
>
> I have a C++ code that works pretty well under Ubuntu using appsink.
>
> The same code under windows fails when I call "gst_parse_launch" with
> the
> following pipeline:
>
> *udpsrc multicast-iface=ethernet_0 multicast-group=239.0.0.105
> auto-multicast=true port=16000 caps="application/x-rtp, encoding-
> name=H264,
> payload=96" ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert !
> appsink
> name=sink caps="video/x-raw,format=BGR,pixel-aspect-ratio=1/1"*
>
> The error is really weird:
>
> **** Error *** could not construct pipeline: no element "udpsrc"*
>
> it seems link udpsrc element is not available, but I do not have any
> dll error
Does it work with gst-launch-1.0.exe, does "gst-inspect-1.0.exe udpsrc"
output something meaningful?

You need to have libgstudp.dll in your lib/gstreamer-1.0 for udpsrc to
be available.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Strange error using "gst_parse_launch" under Windows

Myzhar

The pipeline works correctly with gst-launch-1.0 .

If I run gst-inspect-1.0 udpsrc I get all the information about the element and the dll reported is correct.

What is not clear for me is where GStreamer searches for the plugins. I also tried to put the dll of the plugin in the folder of my application, but it has not worked.

How can I set the search path?

Thank you
Walter

--
Walter Lucetti

email: [hidden email]
web: www.robot-home.it - www.opencv.it
project:  http://myzharbot.robot-home.it


Il 04 Nov 2016 17:12, "Sebastian Dröge-3 [via GStreamer-devel]" <[hidden email]> ha scritto:
On Fri, 2016-11-04 at 06:29 -0700, Myzhar wrote:

> Hello,
>
> I have a C++ code that works pretty well under Ubuntu using appsink.
>
> The same code under windows fails when I call "gst_parse_launch" with
> the
> following pipeline:
>
> *udpsrc multicast-iface=ethernet_0 multicast-group=239.0.0.105
> auto-multicast=true port=16000 caps="application/x-rtp, encoding-
> name=H264,
> payload=96" ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert !
> appsink
> name=sink caps="video/x-raw,format=BGR,pixel-aspect-ratio=1/1"*
>
> The error is really weird:
>
> **** Error *** could not construct pipeline: no element "udpsrc"*
>
> it seems link udpsrc element is not available, but I do not have any
> dll error
Does it work with gst-launch-1.0.exe, does "gst-inspect-1.0.exe udpsrc"
output something meaningful?

You need to have libgstudp.dll in your lib/gstreamer-1.0 for udpsrc to
be available.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment



If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Strange-error-using-gst-parse-launch-under-Windows-tp4680451p4680463.html
To unsubscribe from Strange error using "gst_parse_launch" under Windows, click here.
NAML

Walter Lucetti
www.myzhar.com
Reply | Threaded
Open this post in threaded view
|

Re: Strange error using "gst_parse_launch" under Windows

Sebastian Dröge-3
On Fri, 2016-11-04 at 15:10 -0700, Myzhar wrote:
> The pipeline works correctly with gst-launch-1.0 .
> If I run gst-inspect-1.0 udpsrc I get all the information about the
> element and the dll reported is correct.
> What is not clear for me is where GStreamer searches for the plugins.
> I also tried to put the dll of the plugin in the folder of my
> application, but it has not worked.
> How can I set the search path?

GStreamer looks by default in GST_PLUGIN_PATH and
GST_PLUGIN_SYSTEM_PATH environment variables if set, or related to the
libgstreamer-1.0-0.dll (in ../lib/gstreamer-1.0).

Check the GStreamer debug logs, at the very beginning there's
information about where plugins are searched, which are found and what
possibly goes wrong when loading them.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Strange error using "gst_parse_launch" under Windows

Myzhar
Hi Sebastian,

I finally faced the problem. GST_PLUGIN_PATH was not set in my system environment.
After a few test I can use the pipeline in my application with udpsrc and appsrc.

Thank you very much for your help
Walter

2016-11-07 10:35 GMT+01:00 Sebastian Dröge-3 [via GStreamer-devel] <[hidden email]>:
On Fri, 2016-11-04 at 15:10 -0700, Myzhar wrote:
> The pipeline works correctly with gst-launch-1.0 .
> If I run gst-inspect-1.0 udpsrc I get all the information about the
> element and the dll reported is correct.
> What is not clear for me is where GStreamer searches for the plugins.
> I also tried to put the dll of the plugin in the folder of my
> application, but it has not worked.
> How can I set the search path?

GStreamer looks by default in GST_PLUGIN_PATH and
GST_PLUGIN_SYSTEM_PATH environment variables if set, or related to the
libgstreamer-1.0-0.dll (in ../lib/gstreamer-1.0).

Check the GStreamer debug logs, at the very beginning there's
information about where plugins are searched, which are found and what
possibly goes wrong when loading them.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment



If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Strange-error-using-gst-parse-launch-under-Windows-tp4680451p4680508.html
To unsubscribe from Strange error using "gst_parse_launch" under Windows, click here.
NAML



--
Walter Lucetti
www.myzhar.com