失踪的GStreamer插件,Android SDK中 [英] Missing plugin for GStreamer for Android SDK
问题描述
我改变了流网址所包含的教程5 的(一个基本的媒体播放器)连接到H.264 / MP3媒体流(从原来的远洋船流),并开始抱怨缺少一些插件
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.
在做一些google搜索后,我发现为Android https://github.com/prajnashi/gst-ffmpeg ,但它肯定是不适合的SDK。
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.
如果该SDK没有所需的插件,我该如何去解决呢?我是新来的GStreamer和不知道如何来编译任何现有的插件为Android。
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.
推荐答案
您只需要添加
$(GSTREAMER_PLUGINS_CODECS_RESTRICTED)
您Android.mk在Android的教程5 JNI的文件夹
to your Android.mk in the jni folder for android-tutorial-5
像这样:
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_CODECS_RESTRICTED)
这篇关于失踪的GStreamer插件,Android SDK中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!