GStreamer android SDK no element vorbisenc

Denis Green zagre.torez at gmail.com
Sun Dec 2 12:30:29 PST 2012


Ok.

1.
Now it could create the socket.

But it fails just after some seconds with:
12-02 22:17:18.410: A/libc(5806): @@@ ABORTING: INVALID HEAP ADDRESS
IN dlfree addr=0x4d8ce770
12-02 22:17:18.410: A/libc(5806): Fatal signal 11 (SIGSEGV) at
0xdeadbaad (code=1), thread 5915 (audiotestsrc0:s)

2. I try to see the video
Make file is the same.
line 149 in tutorial-2.c
data->pipeline = gst_parse_launch("videotestsrc ! vp8enc ! webmmux
streamable=true ! tcpserversink port=8554", &error);

I get:
Error received from element vp8enc0: Failed to initialize encoder.





On Sun, Dec 2, 2012 at 3:14 PM, Andoni Morales <ylatuya at gmail.com> wrote:
> 2012/12/2 Denis Green <zagre.torez at gmail.com>:
>> Hi,
>> Sorry for the some mess, it was my error (a misspelled word).
>>
>> Now I do have correct pipeline, but theres is some problem with permissions.
>
> Android applications require to add permissions to use some features
> of the OS for security reasons:
> http://developer.android.com/guide/topics/security/permissions.html
>
> In your case, you will need to allow your applications to open network sockets.:
> http://developer.android.com/reference/android/Manifest.permission.html#INTERNET
>
> Andoni
>>
>> Output on device:
>> tcpserversink0 could not open resource for writing
>>
>> LogCat output:
>> 12-02 21:18:42.332: W/GStreamer+tcpserversink(3759): 0:00:01.338751000
>> 0x4d88c000 gsttcpserversink.c:328:gst_tcp_server_sink_init_send:<tcpserversink0>
>> error: system error: Permission denied
>>
>> Example:
>> I use Tutorial2 as a template.
>>
>> line 149 in turoeial-2.c:
>> data->pipeline = gst_parse_launch("audiotestsrc ! audioconvert !
>> audiorate tolerance=0 ! audioresample quality=3 ! vorbisenc ! webmmux
>> streamable=true ! tcpserversink port=8554", &error);
>>
>> Make file:
>> LOCAL_PATH := $(call my-dir)
>>
>> include $(CLEAR_VARS)
>>
>> LOCAL_MODULE    := tutorial-2
>> LOCAL_SRC_FILES := tutorial-2.c
>> LOCAL_SHARED_LIBRARIES := gstreamer_android
>> LOCAL_LDLIBS := -llog
>> include $(BUILD_SHARED_LIBRARY)
>>
>> 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_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_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS)
>> $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS)
>> include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer.mk
>>
>>
>> On Sun, Dec 2, 2012 at 5:22 AM, Sebastian Dröge
>> <sebastian.droege at collabora.co.uk> wrote:
>>> On So, 2012-12-02 at 11:22 +0200, Denis Green wrote:
>>>> Hi,
>>>>
>>>> I use Collabora & Fluendo GStreamer Android SDK.
>>>>
>>>> I try to set up pipeline with vorbisenc.
>>>>
>>>> Example:
>>>>  audiotestsrc ! audioconvert ! audioresample ! vorbisenc ! autoaudiosink
>>>>
>>>> I get error message: Unable to build pipeline: no element "vorbisenc"
>>>
>>> Can you provide the relevant parts of your code and the Android.mk file
>>> you're using for building this?
>>>
>>> _______________________________________________
>>> gstreamer-android mailing list
>>> gstreamer-android at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
>>>
>> _______________________________________________
>> gstreamer-android mailing list
>> gstreamer-android at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
>
>
>
> --
> Andoni Morales Alastruey
>
> LongoMatch:The Digital Coach
> http://www.longomatch.ylatuya.es
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android


More information about the gstreamer-android mailing list