<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: gstreamer/srtp: srtpenc unknow</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1205216#M167101</link>
    <description>&lt;P&gt;Right command is&amp;nbsp;dtlssrtpenc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;root@imx8mmevk:~# /usr/bin/gst-inspect-1.0 --plugin&lt;BR /&gt;level: level: Level&lt;BR /&gt;deinterlace: deinterlace: Deinterlacer&lt;BR /&gt;dtls: dtlsenc: DTLS Encoder&lt;BR /&gt;dtls: dtlsdec: DTLS Decoder&lt;BR /&gt;dtls: dtlssrtpdec: DTLS-SRTP Decoder&lt;BR /&gt;&lt;STRONG&gt;dtls: dtlssrtpenc: DTLS-SRTP Encoder&lt;/STRONG&gt;&lt;BR /&gt;dtls: dtlssrtpdemux: DTLS SRTP Demultiplexer&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 09:01:33 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2020-12-30T09:01:33Z</dc:date>
    <item>
      <title>gstreamer/srtp: srtpenc unknow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1204134#M166952</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I asked Santa for an answer but I doubt I'll receive anything from him, so here we are. I bitbaked with Yocto the "imx-image-multimedia" recipe and flashed on an sd card easily but I'm having issues with the srtp encoder included (or more, that should be included it it was working) with gstreamer bad plugins.&lt;/P&gt;&lt;P&gt;Here is a sample pipeline I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/usr/bin/gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=YUY2,width=1920,height=1080,framerate=30/1 ! vpuenc_h264 ! rtph264pay config-interval=10 pt=96 ! srtpenc key=aaaaaaaaaaaaaaaaaaaaaa rtp-cipher=aes-128-icm rtp-auth=hmac-sha1-80 rtcp-cipher=aes-128-icm rtcp-auth=hmac-sha1-80 ! udpsink host=10.0.99.149 port=62994&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And here is what I get back:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WARNING: erroneous pipeline: no element "srtpenc"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is normal considering that the plugin srtpenc isn't properly installed, gst-inspect confirms it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8mmevk:~# gst-inspect-1.0 | grep srtpenc
dtls:  dtlssrtpenc: DTLS-SRTP Encoder&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An analysis of the imx-image-multimedia.bb file shows that :&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;packagegroup-fsl-gstreamer1.0 \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="lia-indent-padding-left-30px"&gt;packagegroup-fsl-gstreamer1.0-full \&lt;/P&gt;&lt;P&gt;are included by default, so why don't I have my plugin in my image ? (the packagegroup-fsl-gstreamer1.0-full includes all plugins: base, good, bad, ugly)&lt;/P&gt;&lt;P&gt;I then tried to add the in my local.conf file in the IMAGE_INSTALL_append section, no luck either.&lt;/P&gt;&lt;P&gt;BTW the default images provided by NXP have the same problem.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 13:25:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1204134#M166952</guid>
      <dc:creator>Shinra</dc:creator>
      <dc:date>2020-12-24T13:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: gstreamer/srtp: srtpenc unknow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1204672#M167012</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;bitbake gstream alone&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 02:00:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1204672#M167012</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2020-12-29T02:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: gstreamer/srtp: srtpenc unknow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1205202#M167099</link>
      <description>&lt;P&gt;What do you mean exactly ? I tried to remove:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;packagegroup-fsl-gstreamer1.0 \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="lia-indent-padding-left-30px"&gt;packagegroup-fsl-gstreamer1.0-full \&lt;/P&gt;&lt;P&gt;and added instead:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;gstreamer1.0 \&lt;BR /&gt;gstreamer1.0-plugins-bad \&lt;/P&gt;&lt;P&gt;but still have the same issue.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 08:25:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1205202#M167099</guid>
      <dc:creator>Shinra</dc:creator>
      <dc:date>2020-12-30T08:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: gstreamer/srtp: srtpenc unknow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1205216#M167101</link>
      <description>&lt;P&gt;Right command is&amp;nbsp;dtlssrtpenc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;root@imx8mmevk:~# /usr/bin/gst-inspect-1.0 --plugin&lt;BR /&gt;level: level: Level&lt;BR /&gt;deinterlace: deinterlace: Deinterlacer&lt;BR /&gt;dtls: dtlsenc: DTLS Encoder&lt;BR /&gt;dtls: dtlsdec: DTLS Decoder&lt;BR /&gt;dtls: dtlssrtpdec: DTLS-SRTP Decoder&lt;BR /&gt;&lt;STRONG&gt;dtls: dtlssrtpenc: DTLS-SRTP Encoder&lt;/STRONG&gt;&lt;BR /&gt;dtls: dtlssrtpdemux: DTLS SRTP Demultiplexer&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 09:01:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1205216#M167101</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2020-12-30T09:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: gstreamer/srtp: srtpenc unknow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1206120#M167207</link>
      <description>&lt;P&gt;Interesting, "gst-inspect-1.0 dtlssrtpenc" on the i.MX8M EVK shows more capabilities than the official api reference. But still, it looks like "dtlssrtpenc" depends somehow on the "srtpenc" plugin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8mmevk:~# gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=YUY2,width=1920,height=1080,framerate=30/1 ! vpuenc_h264 ! rtph264pay ! .rtp_sink_0 dtlssrtpenc key=987654321001234567890123456789012345678901234567890123456789 rtp-cipher=aes-128-icm rtp-auth=hmac-sha1-80 rtcp-cipher=aes-128-icm rtcp-auth=hmac-sha1-80 .src ! udpsink host=10.0.99.149 port=62994

** (gst-launch-1.0:900): CRITICAL **: 13:30:24.985: gst_dtls_srtp_enc_request_new_pad: assertion 'self-&amp;gt;srtp_enc' failed
WARNING: erroneous pipeline: could not link rtph264pay0 to dtlssrtpenc0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I think the critical error comes from the nonavailability of the srtp_enc. Or maybe I'm missing something else. The same pipeline (with x264enc instead of vpuenc_h264) works fine under mac OS.&lt;/P&gt;&lt;P&gt;EDIT: I changed the pipeline so that I don't have the second error anymore.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 13:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1206120#M167207</guid>
      <dc:creator>Shinra</dc:creator>
      <dc:date>2021-01-04T13:33:13Z</dc:date>
    </item>
    <item>
      <title>gstreamer/srtp: srtpenc unknow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1206789#M167270</link>
      <description>&lt;P&gt;Ok it looks like I was right, dtlssrtpenc relies on srtpenc, thus it can't be used alone. Here is what happens when I turn on gstreamer debug mode:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;root@imx8mmevk:~# export GST_DEBUG=2
root@imx8mmevk:~# gst-launch-1.0 videotestsrc ! videoconvert ! vpuenc_h264 ! rtph264pay ! kk.rtp_sink_0 dtlssrtpenc name=kk  key=987654321001234567890123456789012345678901234567890123456789 rtp-cipher=aes-128-icm rtp-auth=hmac-sha1-80 rtcp-cipher=aes-128-icm rtcp-auth=hmac-sha1-80 async-handling=true connection-id=dada is-client=true message-forward=false
0:00:00.066575146   773 0xaaaafedffd90 WARN     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "srtpenc"!
0:00:00.066661772   773 0xaaaafedffd90 ERROR            dtlssrtpenc gstdtlssrtpenc.c:177:gst_dtls_srtp_enc_init:&amp;lt;GstDtlsSrtpEnc@0xaaaafee170d0&amp;gt; failed to create srtp encoder, is the srtp plugin registered?&lt;/LI-CODE&gt;&lt;P&gt;So back to my initial question, why isn't the srtp module added in my Yocto image ?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 10:14:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1206789#M167270</guid>
      <dc:creator>Shinra</dc:creator>
      <dc:date>2021-01-05T10:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: gstreamer/srtp: srtpenc unknow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1207084#M167299</link>
      <description>&lt;P&gt;Ok, so I finally got it working.&lt;/P&gt;&lt;P&gt;A deeper analysis revealed that, by default, the srtp plugin is not compiled in Yocto with the default configuration. This can easily be verified using:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;bitbake gstreamer1.0-plugins-bad -e | grep ^PACKAGECONFIG=&lt;/LI-CODE&gt;&lt;P&gt;So although the srtp plugin is enabled by default in the official source code, here for some reason some people though it wasn't that useful and disabled it.&lt;/P&gt;&lt;P&gt;To include it simply create a .bbappend next to the original file (in this case gstreamer1.0-plugins-bad-1.16.0.bbappend) and add into it:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;PACKAGECONFIG_append = " srtp"&lt;/LI-CODE&gt;&lt;P&gt;then you can bitbake your image as usual.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 20:57:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gstreamer-srtp-srtpenc-unknow/m-p/1207084#M167299</guid>
      <dc:creator>Shinra</dc:creator>
      <dc:date>2021-01-05T20:57:18Z</dc:date>
    </item>
  </channel>
</rss>

