no element "x264enc" on android platform

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

no element "x264enc" on android platform

Jesse
dear all:
    I want to re encode a H264 stream on android platform,my pileline is
gst_parse_launch("udpsrc name=source port=5600 ! h264parse ! queue !
decodebin ! tee name=teeone ! queue  ! autovideosink sync=false teeone.!
queue ! x264enc speed-preset=ultrafast tune=zerolatency !flvmux ! queue !
rtmpsink location='rtmp://10.1.98.95:1935/myapp live=true", &error); but the
pipeline create failed, the log is:

  ./gst/gstelementfactory.c:462:gst_element_factory_make no such element
factory "x264enc"!
2020-05-26 11:26:30.241 4585-4789/com.ewatt.android
E/GStreamer+GST_PIPELINE: 0:01:05.189143740 0x6fb0d72950
../gst/parse/grammar.y:816:priv_gst_parse_yyparse no element "x264enc"
2020-05-26 11:26:30.241 4585-4789/com.ewatt.android
E/GStreamer+GST_PIPELINE: 0:01:05.189215615 0x6fb0d72950
../gst/parse/grammar.y:901:priv_gst_parse_yyparse link has no sink
[source=@0x6f81f126f0]
2020-05-26 11:26:30.242 4585-4789/com.ewatt.android
E/GStreamer+GST_PIPELINE: 0:01:05.189447906 0x6fb0d72950
../gst/parse/grammar.y:901:priv_gst_parse_yyparse link has no source
[sink=@0x6f81fe61c0]

    my android ndk version is android-ndk-r21b, gstreamer version is
gstreamer-1.0-android-universal-1.16.2. and I have added
"$(GSTREAMER_PLUGINS_ENCODING) $(GSTREAMER_PLUGINS_NET_RESTRICTED)" in the
Android.mk, I noticed there is a x264 plugin in the
 GSTREAMER_PLUGINS_CODECS_RESTRICTED,so where is my problem? thank you all!
 




 



 



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: no element "x264enc" on android platform

Nicolas Dufresne-5
Le lundi 25 mai 2020 à 22:41 -0500, Jesse a écrit :
> dear all:
>     I want to re encode a H264 stream on android platform,my pileline is
> gst_parse_launch("udpsrc name=source port=5600 ! h264parse ! queue !
> decodebin ! tee name=teeone ! queue  ! autovideosink sync=false teeone.!
> queue ! x264enc speed-preset=ultrafast tune=zerolatency !flvmux ! queue !
> rtmpsink location='rtmp://10.1.98.95:1935/myapp live=true", &error); but the
> pipeline create failed, the log is:

Warning: Make sure you application is GPL before shipping a software using that
(or make sure to make appropriate arrangement with VideoLAN).

>
>   ./gst/gstelementfactory.c:462:gst_element_factory_make no such element
> factory "x264enc"!
> 2020-05-26 11:26:30.241 4585-4789/com.ewatt.android
> E/GStreamer+GST_PIPELINE: 0:01:05.189143740 0x6fb0d72950
> ../gst/parse/grammar.y:816:priv_gst_parse_yyparse no element "x264enc"
> 2020-05-26 11:26:30.241 4585-4789/com.ewatt.android
> E/GStreamer+GST_PIPELINE: 0:01:05.189215615 0x6fb0d72950
> ../gst/parse/grammar.y:901:priv_gst_parse_yyparse link has no sink
> [source=@0x6f81f126f0]
> 2020-05-26 11:26:30.242 4585-4789/com.ewatt.android
> E/GStreamer+GST_PIPELINE: 0:01:05.189447906 0x6fb0d72950
> ../gst/parse/grammar.y:901:priv_gst_parse_yyparse link has no source
> [sink=@0x6f81fe61c0]
>
>     my android ndk version is android-ndk-r21b, gstreamer version is
> gstreamer-1.0-android-universal-1.16.2. and I have added
> "$(GSTREAMER_PLUGINS_ENCODING) $(GSTREAMER_PLUGINS_NET_RESTRICTED)" in the
> Android.mk, I noticed there is a x264 plugin in the
>  GSTREAMER_PLUGINS_CODECS_RESTRICTED,so where is my problem? thank you all!

You said you have GSTREAMER_PLUGINS_NET_RESTRICTED, you need
GSTREAMER_PLUGINS_CODECS_RESTRICTED (NET != CODECS).

Nicolas

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel