gst-plugins-bad: avtp: error on gst_avtp_src_start:<avtpsrc0> Failed to open socket: Operation not permitted

John Rama john.rama01 at gmail.com
Thu Jul 16 16:09:29 UTC 2020


According to this documentation, 
https://gstreamer.freedesktop.org/documentation/avtp/index.html?gi-language=c
It seems that we need to add capability "cap_net_raw+ep" to gst-launch-1.0. 

$ sudo setcap cap_net_raw+ep /home/makoto/Work/src/gstreamer/gst-build-master/build/subprojects/gstreamer/tools/gst-launch-1.0

Then I got the following error.
------------------------------------------------------------------------------------------------------------
$gst-launch-1.0  avtpsrc ifname=enp8s0  ! avtpcvfdepay ! avdec_h264 ! fakevideosink

(gst-launch-1.0:8639): GStreamer-WARNING **: Failed to load plugin '/home/makoto/Work/src/gstreamer/gst-build-master/build/subprojects/gst-plugins-bad/ext/avtp/libgstavtp.so': /home/makoto/Work/src/gstreamer/gst-build-master/build/subprojects/gst-plugins-bad/ext/avtp/../../../gstreamer/libs/gst/base/libgstbase-1.0.so.0: undefined symbol: gst_message_new_instant_rate_request

(gst-launch-1.0:8639): GStreamer-WARNING **: Failed to load plugin '/home/makoto/Work/src/gstreamer/gst-build-master/build/subprojects/gst-plugins-bad/ext/avtp/libgstavtp.so': /home/makoto/Work/src/gstreamer/gst-build-master/build/subprojects/gst-plugins-bad/ext/avtp/../../../gstreamer/libs/gst/base/libgstbase-1.0.so.0: undefined symbol: gst_message_new_instant_rate_request

(gst-launch-1.0:8639): GStreamer-WARNING **: Failed to load plugin '/home/makoto/Work/src/gstreamer/gst-build-master/build/subprojects/gst-libav/ext/libav/libgstlibav.so':/home/makoto/Work/src/gstreamer/gst-build-master/build/subprojects/gst-libav/ext/libav/../../../gstreamer/libs/gst/base/libgstbase-1.0.so.0: undefined symbol: gst_message_new_instant_rate_request

(gst-launch-1.0:8639): GStreamer-WARNING **: Failed to load plugin '/home/makoto/Work/src/gstreamer/gst-build-master/build/subprojects/gst-plugins-bad/gst/debugutils/libgstdebugutilsbad.so': /home/makoto/Work/src/gstreamer/gst-build-master/build/subprojects/gst-plugins-bad/gst/debugutils/../../../gstreamer/libs/gst/base/libgstbase-1.0.so.0: undefined symbol: gst_message_new_instant_rate_request
gst-launch-1.0: symbol lookup error: gst-launch-1.0: undefined symbol: gst_printerr
------------------------------------------------------------------------------------------------------------

Any comment are welcome. Thanks for the help !!

John


On 2020/07/16 10:56, John Rama wrote:
> Hello,
> 
> I'm trying to run avtp plugin as follows. 
> I would like to use interface "enp8s0", but no success with following error.
> Would someone please help on this ?
> 
> $ ninja -C build devenv
> 
> $gst-launch-1.0 avtpsrc ifname=enp8s0 ! avtpcvfdepay ! avdec_h264 ! fakevideosink 
> Setting pipeline to PAUSED ...
> 0:00:00.029821666 26687 0x56526bbeca10 ERROR                avtpsrc gstavtpsrc.c:213:gst_avtp_src_start:<avtpsrc0> Failed to open socket: Operation not permitted
> ERROR: from element /GstPipeline:pipeline0/GstAvtpSrc:avtpsrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
> Additional debug info:
> ../subprojects/gstreamer/libs/gst/base/gstbasesrc.c(3557): gst_base_src_start (): /GstPipeline:pipeline0/GstAvtpSrc:avtpsrc0:
> Failed to start
> ERROR: pipeline doesn't want to preroll.
> Failed to set pipeline to PAUSED.
> Setting pipeline to NULL ...
> Freeing pipeline ...
> 
> $sudo gst-launch-1.0 avtpsrc ifname=enp8s0 ! avtpcvfdepay ! avdec_h264 ! fakevideosink 
> WARNING: erroneous pipeline: no element "avtpsrc"
> 
> John
> 



More information about the gstreamer-devel mailing list