Missing plugin for GStreamer for Android SDK

江枫思渺然 提交于 2019-12-22 05:54:19

问题


I changed the stream url in the included Tutorial 5 (a basic media player) to a h.264/mp3 media stream (from its original ogv stream) and it started complaining about some missing plugins.

After doing some googling I found Prajnashi's gst-ffmpeg plugin for Android https://github.com/prajnashi/gst-ffmpeg but it is certainly not suitable for the SDK.

If the SDK does not have the required plugin how do I go about resolving this? I am new to GStreamer and have no idea how to compile any of the existing plugins for Android.


回答1:


You just need to add

$(GSTREAMER_PLUGINS_CODECS_RESTRICTED)

to your Android.mk in the jni folder for android-tutorial-5

Like so:

GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS)  $(GSTREAMER_PLUGINS_CODECS_RESTRICTED)


来源:https://stackoverflow.com/questions/13994808/missing-plugin-for-gstreamer-for-android-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!