interface of autovideosynk for android

Anton Olegovich ivanushkin.anton.olegovich at gmail.com
Tue Aug 26 03:30:28 PDT 2014


On 26.08.2014 12:09, Sebastian Dröge wrote:
> On Di, 2014-08-26 at 11:55 +0400, Anton Olegovich wrote:
>> On 26.08.2014 10:36, Sebastian Dröge wrote:
>>> On Mo, 2014-08-25 at 18:33 +0400, Anton Olegovich wrote:
>>>> Hi.
>>>>
>>>> I've downloaded the new version of GST (1.4.0) for android development....
>>>>
>>>> I'm using some concepts, described at tutorial #3 for droid.
>>>>
>>>> Here was my pipe worked at Congo version:
>>>>
>>>> gst_bin_add_many(GST_BIN(data->video_pipeline),udpsrc,rtph264depay,avdec_h264,videorate,clockoverlay,tee,queue,autovideosink,NULL);
>>>>
>>>> And now i can't retrive autovideosink by interface:
>>>> data->video_sink =
>>>> gst_bin_get_by_interface(GST_BIN(data->video_pipeline),
>>>> GST_TYPE_VIDEO_OVERLAY)
>>>>
>>>> What is it?
>>> You either have to create glimagesink instead of autovideosink, or set
>>> the pipeline or autovideosink to the READY state before trying to get
>>> the actual sink.
>>>
>>>
>>>
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> It can't to create glimagesink-element, and I'm setting the state of all
>> pipe before getting sink, like this:
>>
>>     gst_element_set_state(data->video_pipeline, GST_STATE_READY);
>>
>>     data->video_sink =
>> gst_bin_get_by_interface(GST_BIN(data->video_pipeline),
>> GST_TYPE_VIDEO_OVERLAY);
> How can it not create glimagesink? gst_element_factory_make() returns
> NULL? What's the content of your jni/Android.mk?
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Yes, gst_element_factory_make() returns NULL

Here is the content of Android.mk:

##Piovra Manifest
#
#

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := Piovra
LOCAL_SRC_FILES := Piovra.c
LOCAL_SHARED_LIBRARIES := gstreamer_android
LOCAL_LDLIBS := -llog -landroid
include $(BUILD_SHARED_LIBRARY)
#GSTREAMER_SDK_ROOT_ANDROID := /home/ivanushkin/android-gstreamer/gst-debug
ifndef GSTREAMER_SDK_ROOT
ifndef GSTREAMER_SDK_ROOT_ANDROID
$(error GSTREAMER_SDK_ROOT_ANDROID is not defined!)
endif
GSTREAMER_SDK_ROOT        := $(GSTREAMER_SDK_ROOT_ANDROID)
endif
GSTREAMER_ROOT 			  := $(GSTREAMER_SDK_ROOT)#эта строчка добавлена

GSTREAMER_NDK_BUILD_PATH  := $(GSTREAMER_SDK_ROOT)/share/gst-android/ndk-build
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
#GSTREAMER_PLUGINS         := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_EFFECTS)   $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_BASE)
#GSTREAMER_PLUGINS         := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_GOOD) $(GSTREAMER_PLUGINS_BAD)  $(GSTREAMER_PLUGINS_BASE) $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_CODECS_RESTRICTED) $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_EFFECTS) $(GSTREAMER_PLUGINS_CODECS)
GSTREAMER_PLUGINS         := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_GOOD) $(GSTREAMER_PLUGINS_BAD)  $(GSTREAMER_PLUGINS_BASE) $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_CODECS_RESTRICTED) $(GSTREAMER_PLUGINS_CODECS)
#GSTREAMER_EXTRA_DEPS      := gstreamer-interfaces-0.10 gstreamer-video-0.10 #заменено
#GSTREAMER_EXTRA_DEPS      := gstreamer-interfaces-0.10 gstreamer-video-0.10
GSTREAMER_EXTRA_DEPS      :=  gstreamer-video-1.0
#include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer.mk #заменено
#В gstreamer.mk есть изменения
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140826/27483483/attachment-0001.html>


More information about the gstreamer-devel mailing list