no element "x264enc" on android platform

Nicolas Dufresne nicolas at ndufresne.ca
Fri May 29 01:38:44 UTC 2020


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



More information about the gstreamer-devel mailing list